Bug 15789

Summary: SPDX output doesn't include vex metadata for patched CVEs
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Joshua Watt <JPEWhacker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher
Version: 5.2   
Target Milestone: 0.0.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Ross Burton 2025-03-06 18:17:39 UTC
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.
Comment 2 Joshua Watt 2025-03-13 14:36:47 UTC
Fixed in OE-core: 1ff496546279d8a97df5ec475007cfb095c2a0bc