Bug 15789 - SPDX output doesn't include vex metadata for patched CVEs
Summary: SPDX output doesn't include vex metadata for patched CVEs
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 5.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.0.0
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-03-06 18:17 UTC by Ross Burton
Modified: 2025-03-13 14:36 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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