Skip to content

RFC Add exportable vulnerability informations

Thomas Perale via buildroot buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14docs/manual: add vulnerability status and justificationdocs/manual/adding-packages-generic.adoc+35 -01 reply
2/14utils/checkpackagelib/lib_mk.py: check _STATUS value is supportedutils/checkpackagelib/lib_mk.py+22 -00 replies
3/14package/pkg-utils: show-info expose vuln detailspackage/pkg-utils.mk+19 -01 reply
4/14utils/generate-cyclonedx: support vulnerability detailsutils/generate-cyclonedx+69 -141 reply
5/14package/sox: add vulnerabilities detailspackage/sox/sox.mk+28 -130 replies
6/14package/php: add vulnerability detailspackage/php/php.mk+2 -10 replies
7/14package/mupdf: add vulnerabilities detailspackage/mupdf/mupdf.mk+5 -50 replies
8/14package/python-pip: add detail to vulnerabilitypackage/python-pip/python-pip.mk+3 -22 replies
9/14package/luajit: add details to vulnerabilitiespackage/luajit/luajit.mk+10 -50 replies
10/14package/libuci: add vulnerability detailspackage/libuci/libuci.mk+2 -10 replies
11/14package/glibc: add vulnerability detailspackage/glibc/glibc.mk+20 -122 replies
12/14package/freeradius-server: add vulnerabilities detailspackage/freeradius-server/freeradius-server.mk+4 -30 replies
13/14package/flex: add vulnerability detailspackage/flex/flex.mk+4 -30 replies
14/14package/clamav: add vulnerability detailspackage/clamav/clamav.mk+4 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Buildroot] [RFC PATCH 00/14] Add exportable vulnerability informations

In Buildroot, we can put the ignore CVEs entries in different categories:

- Vulnerability fixed by a patch.
- Vulnerability ignored because the internal tooling detect it as a false positive
- Vulnerability ignored because the database is wrong or not up-to-date.
- Vulnerability ignored because it doesn't apply to Buildroot (platform/hardware specific, ...).
- Vulnerability ignored because Buildroot is using an upstream fixed version (based on a hash for instance) while the CPE metadata reference the latest known version.

Since the introduction of _IGNORE_CVES the justification for the vulnerability were added as a comment on top of the ignored vulnerability.

With the introduction of the rule for the CVE: trailer it's now possible to distinguish the vulnerabilities that are patched from the one that are not-applicable for another unknown reason.

This series add support to tag the remaining 'IGNORE_CVES' entry with a set of information that can then be exported with 'show-info'.

This was discussed during the post-FOSDEM buildroot hackathon. The idea of using OpenVex for the annotation format as in the future multiple SBOM output format might be supported and OpenVex looked like a good candidate for the base annotation without re-inventing our own format.

This RFC to discuss:
- The OpenVex annotation used and how we make them map to the Buildroot cases (see the doc change). I also provided some example of ignored entries and how I make them map to give more context. Not all the entries are mapped yet.
- Should we consider another format ?
- How I translate this format to CycloneDX analysis.

Still TODO:

- The CycloneDX translation needs to change as it depends on
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/.
The current implementation is a rough draft that is used only for testing
- The STATUS and DETAIL variables needs to be replicated for host packages.
- Add a test case that run 'make show-info-all | utils/generate-cyclonedx' and verify no "in_triage" analysis remains. This depends on the two previous TODOs.

Thomas Perale (14):
docs/manual: add vulnerability status and justification utils/checkpackagelib/lib_mk.py: check _STATUS value is supported package/pkg-utils: show-info expose vuln details utils/generate-cyclonedx: support vulnerability details package/sox: add vulnerabilities details
package/php: add vulnerability details
package/mupdf: add vulnerabilities details package/python-pip: add detail to vulnerability package/luajit: add details to vulnerabilities package/libuci: add vulnerability details package/glibc: add vulnerability details package/freeradius-server: add vulnerabilities details package/flex: add vulnerability details package/clamav: add vulnerability details

 docs/manual/adding-packages-generic.adoc      | 35 ++++++++
 package/clamav/clamav.mk                      |  6 +-
 package/flex/flex.mk                          |  7 +-
 .../freeradius-server/freeradius-server.mk    |  7 +-
 package/glibc/glibc.mk                        | 32 ++++---
 package/libuci/libuci.mk                      |  3 +-
 package/luajit/luajit.mk                      | 15 ++--
 package/mupdf/mupdf.mk                        | 10 +--
 package/php/php.mk                            |  3 +-
 package/pkg-utils.mk                          | 19 +++++
 package/python-pip/python-pip.mk              |  5 +-
 package/sox/sox.mk                            | 41 ++++++---
 utils/checkpackagelib/lib_mk.py               | 22 +++++
 utils/generate-cyclonedx                      | 83 +++++++++++++++----
 14 files changed, 227 insertions(+), 61 deletions(-)
Signature · 6 lines
2.54.0

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