Skip to content

Support "resolved_with_pedigree" vulnerability status

Thomas Perale via buildroot buildroot 1 version Applied

Status from this message: Applied to 2025.02.x and 2025.11.x. Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2utils/generate-cyclonedx: add support for 'resolved_with_pedigree'utils/generate-cyclonedx+118 -192 replies
2/2docs/manual: mention CVE trailerdocs/manual/adding-packages-generic.adoc docs/manual/patch-policy.adoc+15 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/2] Support "resolved_with_pedigree" vulnerability status

Hi,

The CycloneDX specification for vulnerabilities defines four analysis states ([1]) for cases where a vulnerability does not affect a component:

* 'resolved'
* 'resolved_with_pedigree'
* 'not_affected'
* 'false_positive'

Currently, the metadatas present in Buildroot does not allow an accurate mapping of ignored CVEs to the appropriate CycloneDX vulnerability categories. As a result, all ignored CVEs are currently marked as 'in_triage' by default.

This default analysis was was established during the introduction of the 'generate-cyclonedx' script.
The reasoning at the time was that SBOM consumers might want to re-evaluate ignored vulnerabilities, as the Buildroot infrastructure could not reliably determine their actual state.

To improve the association between patches and the vulnerabilities they address, I proposed during the Amsterdam Buildroot Dev Meeting to introduce a new 'CVE:' tag in the patch header, referencing the vulnerability the patch address. This approach is similar to what Yocto currently implements.

Further details are provided in the individual commit messages.

One of the challenges of this work was correctly splitting the patch header from the patch content. I believe the implementation now supports the various patch formats found in the Buildroot tree, but please let me know if I missed any cases.

If this series is accepted, I plan to submit a follow-up series adding 'CVE:' tags to patches that address known vulnerabilities.

[1] https://cyclonedx.org/docs/1.6/json/#vulnerabilities_items_analysis_state

Thomas Perale (2):
utils/generate-cyclonedx: add support for 'resolved_with_pedigree' docs/manual: mention CVE trailer

 docs/manual/adding-packages-generic.adoc |   6 +-
 docs/manual/patch-policy.adoc            |  13 ++-
 utils/generate-cyclonedx                 | 137 +++++++++++++++++++----
 3 files changed, 133 insertions(+), 23 deletions(-)
Signature · 6 lines
2.51.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot