Random "Custom" material with black color?

Some files started making a random new Custom materials as black. Oftentimes, it will apply to any objects with the default material so that all those show up as black. I think it happens when there’s PDF inserted or linked in the file. Is this a known bug?