If a recipe uses CVE_STATUS to mark a CVE as not relevant, that knowledge is transferred into the SPDX as an eg security_VexNotAffectedVulnAssessmentRelationship element. However if a CVE is resolved via a patch, then that knowledge is not present in the SPDX. The logic that the cve-check tool uses is basically if a patch filename is a CVE name or the patch has a "CVE: ..." line in the header, then that patch mitigates the CVE somehow.
https://lists.openembedded.org/g/openembedded-core/message/212404
Fixed in OE-core: 1ff496546279d8a97df5ec475007cfb095c2a0bc