poky/scripts/contrib
Daniel Turull 5dff1c40db improve_kernel_cve_report: add script for postprocesing of kernel CVE data
Adding postprocessing script to process data from linux CNA that includes more accurate metadata and it is updated directly by the source.

Example of enhanced CVE from a report from cve-check:

{
  "id": "CVE-2024-26710",
  "status": "Ignored",
  "link": "https://nvd.nist.gov/vuln/detail/CVE-2024-26710",
  "summary": "In the Linux kernel, the following vulnerability [...]",
  "scorev2": "0.0",
  "scorev3": "5.5",
  "scorev4": "0.0",
  "modified": "2025-03-17T15:36:11.620",
  "vector": "LOCAL",
  "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "detail": "not-applicable-config",
  "description": "Source code not compiled by config. ['arch/powerpc/include/asm/thread_info.h']"
},

And same from a report generated with vex:
{
  "id": "CVE-2024-26710",
  "status": "Ignored",
  "link": "https://nvd.nist.gov/vuln/detail/CVE-2024-26710",
  "detail": "not-applicable-config",
  "description": "Source code not compiled by config. ['arch/powerpc/include/asm/thread_info.h']"
},

For unpatched CVEs, provide more context in the description:
Tested with 6.12.22 kernel
{
  "id": "CVE-2025-39728",
  "status": "Unpatched",
  "link": "https://nvd.nist.gov/vuln/detail/CVE-2025-39728",
  "summary": "In the Linux kernel, the following vulnerability has been [...],
  "scorev2": "0.0",
  "scorev3": "0.0",
  "scorev4": "0.0",
  "modified": "2025-04-21T14:23:45.950",
  "vector": "UNKNOWN",
  "vectorString": "UNKNOWN",
  "detail": "version-in-range",
  "description": "Needs backporting (fixed from 6.12.23)"
},

CC: Peter Marko <peter.marko@siemens.com>
CC: Marta Rybczynska <rybczynska@gmail.com>
(From OE-Core rev: e60b1759c1aea5b8f5317e46608f0a3e782ecf57)

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-19 21:54:43 +01:00
..
bb-perf bb-matrix-plot.sh: Show underscores correctly in labels 2023-10-23 10:49:19 +01:00
oe-image-files-spdx scripts/contrib: Add oe-image-files-spdx script 2025-02-18 11:56:03 +00:00
bbvars.py scripts: python 3.12 regex 2024-02-13 13:51:41 +00:00
build-perf-test-wrapper.sh perf-build-test/report: Drop phantomjs and html email reports support 2022-03-16 10:31:41 +00:00
convert-overrides.py scripts: python 3.12 regex 2024-02-13 13:51:41 +00:00
convert-spdx-licenses.py licenses: Map SGIv1 to SGI-OpenGL 2025-02-05 12:49:55 +00:00
convert-srcuri.py convert-srcuri.py: use regex to check space in SRC_URI 2021-11-11 17:09:17 +00:00
convert-variable-renames.py convert-variable-renames: Fix typo in description 2022-03-31 17:52:58 +01:00
ddimage scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00
devtool-stress.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
dialog-power-control scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00
documentation-audit.sh scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00
graph-tool graph-tool: add filter subcommand 2020-06-16 23:39:28 +01:00
image-manifest meta: remove True option to getVar and getVarFlag calls (again) 2023-02-02 09:50:02 +00:00
improve_kernel_cve_report.py improve_kernel_cve_report: add script for postprocesing of kernel CVE data 2025-06-19 21:54:43 +01:00
list-packageconfig-flags.py scripts/contrib/list-packageconfig-flags: Upate for tinfoil API changes 2021-03-15 14:49:09 +00:00
make-spdx-bindings.sh Add script to make SPDX bindings 2024-09-30 17:07:18 +01:00
oe-build-perf-report-email.py scripts/contrib/oe-build-perf-report-email.py: remove obsolete check for phantomjs and optipng 2022-04-30 22:00:20 +01:00
patchreview.py scripts: patchreview: fix failure when running from a different folder 2024-11-21 12:16:28 +00:00
patchtest.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
serdevtry meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
test_build_time_worker.sh scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00
test_build_time.sh meta/scripts: Change BB_ENV_EXTRA_WHITE -> BB_ENV_PASSTHROUGH_ADDITIONS 2022-02-21 23:37:26 +00:00
uncovered meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
verify-homepage.py scripts: Add copyright statements to files without one 2022-08-12 11:58:01 +01:00