Skip to contentSkip to conversation

add missing CVE_PRODUCT

PATCH In review Emil Kronborg Andersen 3 participants 6 messages Aug 24, 2023 – Aug 25, 2023

lore
Share & tools
lore
#0 lore raw

cover add missing CVE_PRODUCT

Some recipes does not have 'CVE_PRODUCT' set, and will thus pass a check against the NIST database with 0 CVEs, even though there could be several.

Emil Kronborg Andersen (3):
libopus: add CVE_PRODUCT
lcms: add CVE_PRODUCT
snappy: add CVE_PRODUCT

 meta-oe/recipes-extended/snappy/snappy_1.1.9.bb   | 2 ++
 meta-oe/recipes-multimedia/libopus/libopus_1.4.bb | 2 ++
 meta-oe/recipes-support/lcms/lcms_2.15.bb         | 2 ++
 3 files changed, 6 insertions(+)
Signature · 1 line
2.41.0
#1 lore raw

PATCH 1/3 libopus: add CVE_PRODUCT

---
 meta-oe/recipes-multimedia/libopus/libopus_1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-multimedia/libopus/libopus_1.4.bb +2 -0
index 200211774..65ee2435b 100644
@@ -52,3 +52,5 @@ python () {
 ARM_INSTRUCTION_SET:armv5 = "arm"
 
 BBCLASSEXTEND = "native nativesdk"
+
+CVE_PRODUCT += "opus-codec:opus"
Signature · 1 line
2.41.0
#2 lore raw

PATCH 2/3 lcms: add CVE_PRODUCT

In reply to Emil Kronborg Andersen
---
 meta-oe/recipes-support/lcms/lcms_2.15.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-support/lcms/lcms_2.15.bb +2 -0
index 3656e1cfd..6c5766a0e 100644
@@ -13,3 +13,5 @@ BBCLASSEXTEND = "native"
 S = "${WORKDIR}/lcms2-${PV}"
 
 inherit autotools
+
+CVE_PRODUCT += "littlecms:little_cms_color_engine"
Signature · 1 line
2.41.0
#3 lore raw

PATCH 3/3 snappy: add CVE_PRODUCT

In reply to Emil Kronborg Andersen

If CVE_PRODUCT is not explicitly set to google:snappy, CVEs are found for https://github.com/KnpLabs/snappy instead.

---
 meta-oe/recipes-extended/snappy/snappy_1.1.9.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/snappy/snappy_1.1.9.bb +2 -0
index 0d58345d7..9e0e43ce8 100644
@@ -24,3 +24,5 @@ PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
 TARGET_CFLAGS += "-fPIC"
 
 EXTRA_OECMAKE += '-DBUILD_SHARED_LIBS="ON" -DSNAPPY_BUILD_TESTS="OFF" -DSNAPPY_BUILD_BENCHMARKS="OFF"'
+
+CVE_PRODUCT = "google:snappy"
Signature · 1 line
2.41.0
#4 lore raw
In reply to Emil Kronborg Andersen

Hello Emil,

Quoted 4 lines · On Thu, 24 Aug 2023 16:07:44 +0200 "Emil Kronborg Andersen via…

Some recipes does not have 'CVE_PRODUCT' set, and will thus pass a check against the NIST database with 0 CVEs, even though there could be several.

Quoted 8 lines

Emil Kronborg Andersen (3):
libopus: add CVE_PRODUCT
lcms: add CVE_PRODUCT
snappy: add CVE_PRODUCT

 meta-oe/recipes-extended/snappy/snappy_1.1.9.bb   | 2 ++
 meta-oe/recipes-multimedia/libopus/libopus_1.4.bb | 2 ++
 meta-oe/recipes-support/lcms/lcms_2.15.bb         | 2 ++

These patches should be sent to the meta-oe mailing list.

Best regards,
Luca

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

Hi Luca,

Sorry about that. I sent them to the meta-oe mailing list now.

Best regards,
Emil
________________________________
From: Luca Ceresoli <[email protected]>
Sent: Friday, August 25, 2023 10:24
To: Emil Kronborg Andersen via lists.openembedded.org <[email protected]>
Cc: Emil Kronborg Andersen <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [meta-oe][PATCH 0/3] add missing CVE_PRODUCT

Hello Emil,

Quoted 4 lines · On Thu, 24 Aug 2023 16:07:44 +0200 "Emil Kronborg Andersen via…

Some recipes does not have 'CVE_PRODUCT' set, and will thus pass a check against the NIST database with 0 CVEs, even though there could be several.

Quoted 8 lines

Emil Kronborg Andersen (3):
libopus: add CVE_PRODUCT
lcms: add CVE_PRODUCT
snappy: add CVE_PRODUCT

 meta-oe/recipes-extended/snappy/snappy_1.1.9.bb   | 2 ++
 meta-oe/recipes-multimedia/libopus/libopus_1.4.bb | 2 ++
 meta-oe/recipes-support/lcms/lcms_2.15.bb         | 2 ++

These patches should be sent to the meta-oe mailing list.

Best regards,
Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com