Add exact CPE name including vendor to several components.
cover Add exact CPE name including vendor to several components.
Benjamin Bouvier (3):
net-snmp: add CVE_PRODUCT
bridge-utils: add CVE_PRODUCT
tcpdump: add CVE_PRODUCT
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 2 ++ .../recipes-support/bridge-utils/bridge-utils_1.7.1.bb | 2 ++ meta-networking/recipes-support/tcpdump/tcpdump_4.99.5.bb | 2 ++ 3 files changed, 6 insertions(+)
Signature · 1 line
2.34.1
PATCH 1/3 net-snmp: add CVE_PRODUCT
Add exact CPE name in CVE_PRODUCT.
--- meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +2 -0
@@ -34,6 +34,8 @@ SRC_URI[sha256sum] = "8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f493074 UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" +CVE_PRODUCT = "net-snmp:net-snmp" + inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest multilib_script multilib_header EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
Signature · 1 line
2.34.1
PATCH 2/3 bridge-utils: add CVE_PRODUCT
In reply to Benjamin BouvierAdd exact CPE name in CVE_PRODUCT.
--- .../recipes-support/bridge-utils/bridge-utils_1.7.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb +2 -0
@@ -19,6 +19,8 @@ S = "${WORKDIR}/git" DEPENDS = "sysfsutils" +CVE_PRODUCT = "kernel:bridge-utils" + inherit autotools-brokensep update-alternatives ALTERNATIVE:${PN} = "brctl"
Signature · 1 line
2.34.1
RE: [oe] [meta-networking][PATCH 2/3] bridge-utils: add CVE_PRODUCT
I did not find any CVE for bridge-utils in our nvdcve_2-2.db. Based on what did you choose the vendor?
I think that until there is a CVE where we can the base data from and also a conflicting CVE which would show this need, we should not limit the vendor string.
And regarding the other patches, it would be great if the commit message Would contain description why it is needed (e.g. which vendor in existing CVEs you want to filter out).
Peter
Quoted 33 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Benjamin Bouvier via lists.openembedded.org
Sent: Thursday, November 21, 2024 9:29
To: [email protected]
Cc: Benjamin Bouvier <[email protected]>
Subject: [oe] [meta-networking][PATCH 2/3] bridge-utils: addCVE_PRODUCTAdd exact CPE name in
CVE_PRODUCT.Signed-off-by Benjamin Bouvier <[email protected]>--- .../recipes-support/bridge-utils/bridge-utils_1.7.1.bb | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0utils_1.7.1.bb b/meta-networking/recipes-support/bridge-utils/bridge- utils_1.7.1.bb
indexcf0fc1c33..66c8f2d05100644meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb +2
-1@@ -19,6 +19,8 @@ S = "${WORKDIR}/git" DEPENDS = "sysfsutils" +CVE_PRODUCT = "kernel:bridge-utils" + inherit autotools-brokensep update-alternatives ALTERNATIVE:${PN} = "brctl" --2.34.1
Re: [oe] [meta-networking][PATCH 2/3] bridge-utils: add CVE_PRODUCT
Quoted 2 lines · Peter
I did not find any CVE for bridge-utils in our nvdcve_2-2.db. Based on what did you choose the vendor?
I've looked at nvd database to get vendor name associated for each component:https://nvd.nist.gov/products/cpe/search For bridge-utils, it returns kernel as the vendor name.
Quoted 4 lines
I think that until there is a CVE where we can the base data from and also a conflicting CVE which would show this need, we should not limit the vendor string.
A component only relies on a specific source, which is always associated to a vendor:component pair. Setting the complete name should help to anticipate false-positive CVE reporting before facing that issue. It is also interesting in order to supply more precise information for meta-layers like meta-dependencytrack of meta-cyclonedx which rely on CVE_PRODUCT variable to produce SBOM.
Quoted 4 lines
And regarding the other patches, it would be great if the commit message Would contain description why it is needed (e.g. which vendor in existing CVEs you want to filter out).
OK, I will update with additional explanation.
Quoted 36 lines
Peter
Quoted 33 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Benjamin Bouvier via lists.openembedded.org
Sent: Thursday, November 21, 2024 9:29
To: [email protected]
Cc: Benjamin Bouvier <[email protected]>
Subject: [oe] [meta-networking][PATCH 2/3] bridge-utils: addCVE_PRODUCTAdd exact CPE name in
CVE_PRODUCT.Signed-off-by Benjamin Bouvier <[email protected]>--- .../recipes-support/bridge-utils/bridge-utils_1.7.1.bb | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0utils_1.7.1.bb b/meta-networking/recipes-support/bridge-utils/bridge- utils_1.7.1.bb
indexcf0fc1c33..66c8f2d05100644meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb +2
-1@@ -19,6 +19,8 @@ S = "${WORKDIR}/git" DEPENDS = "sysfsutils" +CVE_PRODUCT = "kernel:bridge-utils" + inherit autotools-brokensep update-alternatives ALTERNATIVE:${PN} = "brctl" --2.34.1
RE: [oe] [meta-networking][PATCH 2/3] bridge-utils: add CVE_PRODUCT
Quoted 3 lines
I've looked at nvd database to get vendor name associated for each component:https://nvd.nist.gov/products/cpe/search For bridge-utils, it returns kernel as the vendor name.
Thanks!
Quoted 2 lines
A component only relies on a specific source, which is always associated to a vendor:component pair. Setting the complete name should help to anticipate false-positive CVE reporting before facing that issue. It is also interesting in order to supply more precise information for meta-layers like meta-dependencytrack of meta-cyclonedx which rely on
CVE_PRODUCTvariable to produce SBOM.
I have a bad experience with relying on cpe being exact, especially for first CVEs where random names are assigned as there is no former example. I hope this improves with the new CVE annotations, let's see.
I'd rather change the CVE_PRODUCT on first false positive in fear that someone invents new cpe and we have a false negative.
Peter
PATCH 3/3 tcpdump: add CVE_PRODUCT
In reply to Benjamin BouvierAdd exact CPE name in CVE_PRODUCT.
--- meta-networking/recipes-support/tcpdump/tcpdump_4.99.5.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-support/tcpdump/tcpdump_4.99.5.bb +2 -0
@@ -30,6 +30,8 @@ SRC_URI[sha256sum] = "d76395ab82d659d526291b013eee200201380930793531515abfc6e77b UPSTREAM_CHECK_REGEX = "tcpdump-(?P<pver>\d+(\.\d+)+)\.tar" +CVE_PRODUCT = "tcpdump:tcpdump" + inherit autotools-brokensep pkgconfig ptest PACKAGECONFIG ?= "openssl"
Signature · 1 line
2.34.1