From: Marta Rybczynska <rybczynska@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Marta Rybczynska <marta.rybczynska@syslinbit.com>
Subject: [PATCH 3/3] classes/kernel.bbclass: update CVE_PRODUCT
Date: Mon, 15 Jul 2024 12:20:02 +0200 [thread overview]
Message-ID: <20240715102003.10122-3-marta.rybczynska@syslinbit.com> (raw)
In-Reply-To: <20240715102003.10122-1-marta.rybczynska@syslinbit.com>
Add linux:linux to CVE_PRODUCT. linux:linux is used by the kernel CNA
in raw CVE entries. We can't use just linux, because of conflicts with
CPE entries of multiple distributions.
Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com>
---
meta/classes-recipe/kernel.bbclass | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 89badd90f1..2a4f3defda 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -21,7 +21,10 @@ PACKAGE_WRITE_DEPS += "depmodwrapper-cross"
do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot gzip-native:do_populate_sysroot"
do_clean[depends] += "make-mod-scripts:do_clean"
-CVE_PRODUCT ?= "linux_kernel"
+# CPE entries from NVD use linux_kernel, but the raw CVE entries from the kernel CNA have
+# vendor: linux and product: linux. Note that multiple distributions use "linux" as a product
+# name, so we need to fill vendor to avoid false positives
+CVE_PRODUCT ?= "linux_kernel linux:linux"
S = "${STAGING_KERNEL_DIR}"
B = "${WORKDIR}/build"
--
2.43.0
next prev parent reply other threads:[~2024-07-15 10:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 10:20 [PATCH 1/3] cve-check: enrich annotation of CVEs Marta Rybczynska
2024-07-15 10:20 ` [PATCH 2/3] vex.bbclass: add a new class Marta Rybczynska
2024-07-15 10:20 ` Marta Rybczynska [this message]
2024-07-17 7:11 ` [OE-core] [PATCH 1/3] cve-check: enrich annotation of CVEs Marko, Peter
2024-07-18 5:06 ` Marta Rybczynska
2024-07-22 21:15 ` Marko, Peter
2024-07-23 12:51 ` Marta Rybczynska
2024-07-17 10:13 ` Alexandre Belloni
2024-07-18 5:07 ` Marta Rybczynska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240715102003.10122-3-marta.rybczynska@syslinbit.com \
--to=rybczynska@gmail.com \
--cc=marta.rybczynska@syslinbit.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox