diff options
| author | Andrej Valek <andrej.valek@siemens.com> | 2023-07-26 11:50:09 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-07-27 08:54:40 -0700 |
| commit | 8af2f17a6fa8bf282c4c27054adbea1bf0873069 (patch) | |
| tree | 22b6484379a0f3d3e2b89f958dda0fd45f2a1880 /meta-networking | |
| parent | 4c201ede939610946847ccd4221320ed776224aa (diff) | |
| download | meta-openembedded-8af2f17a6fa8bf282c4c27054adbea1bf0873069.tar.gz | |
cve_check: convert CVE_CHECK_IGNORE to CVE_STATUS
- Try to add convert and apply statuses for old CVEs
- Drop some obsolete ignores, while they are not relevant for current
version
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
11 files changed, 30 insertions, 61 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb index 9a2bbab39f..35733c5307 100644 --- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb +++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb | |||
| @@ -43,10 +43,8 @@ SRCREV = "d956f683d37ea40e7977cc5907361f3e6988a439" | |||
| 43 | 43 | ||
| 44 | UPSTREAM_CHECK_GITTAGREGEX = "release_(?P<pver>\d+(\_\d+)+)" | 44 | UPSTREAM_CHECK_GITTAGREGEX = "release_(?P<pver>\d+(\_\d+)+)" |
| 45 | 45 | ||
| 46 | CVE_CHECK_IGNORE = "\ | 46 | CVE_CHECK_STATUS[CVE-2002-0318] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." |
| 47 | CVE-2002-0318 \ | 47 | CVE_CHECK_STATUS[CVE-2011-4966] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." |
| 48 | CVE-2011-4966 \ | ||
| 49 | " | ||
| 50 | 48 | ||
| 51 | PARALLEL_MAKE = "" | 49 | PARALLEL_MAKE = "" |
| 52 | 50 | ||
diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb index ce094d5afb..fff320afd8 100644 --- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb +++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb | |||
| @@ -57,10 +57,8 @@ BBCLASSEXTEND = "native nativesdk" | |||
| 57 | 57 | ||
| 58 | CVE_PRODUCT = "mbed_tls" | 58 | CVE_PRODUCT = "mbed_tls" |
| 59 | 59 | ||
| 60 | # Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310 | 60 | CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310" |
| 61 | CVE_CHECK_IGNORE += "CVE-2021-43666" | 61 | CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c" |
| 62 | # Fix merged upstream https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c | ||
| 63 | CVE_CHECK_IGNORE += "CVE-2021-45451" | ||
| 64 | 62 | ||
| 65 | # Strip host paths from autogenerated test files | 63 | # Strip host paths from autogenerated test files |
| 66 | do_compile:append() { | 64 | do_compile:append() { |
diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb index b8c9662de7..10fb7de8ca 100644 --- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb +++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb | |||
| @@ -58,11 +58,6 @@ BBCLASSEXTEND = "native nativesdk" | |||
| 58 | 58 | ||
| 59 | CVE_PRODUCT = "mbed_tls" | 59 | CVE_PRODUCT = "mbed_tls" |
| 60 | 60 | ||
| 61 | # Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310 | ||
| 62 | CVE_CHECK_IGNORE += "CVE-2021-43666" | ||
| 63 | # Fix merged upstream https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c | ||
| 64 | CVE_CHECK_IGNORE += "CVE-2021-45451" | ||
| 65 | |||
| 66 | # Strip host paths from autogenerated test files | 61 | # Strip host paths from autogenerated test files |
| 67 | do_compile:append() { | 62 | do_compile:append() { |
| 68 | sed -i 's+${S}/++g' ${B}/tests/*.c 2>/dev/null || : | 63 | sed -i 's+${S}/++g' ${B}/tests/*.c 2>/dev/null || : |
diff --git a/meta-networking/recipes-connectivity/openthread/wpantund_git.bb b/meta-networking/recipes-connectivity/openthread/wpantund_git.bb index a7fcc202a4..ebb3fc3c1c 100644 --- a/meta-networking/recipes-connectivity/openthread/wpantund_git.bb +++ b/meta-networking/recipes-connectivity/openthread/wpantund_git.bb | |||
| @@ -22,11 +22,8 @@ S = "${WORKDIR}/git" | |||
| 22 | 22 | ||
| 23 | inherit pkgconfig perlnative autotools | 23 | inherit pkgconfig perlnative autotools |
| 24 | 24 | ||
| 25 | # CVE-2020-8916 has been fixed in commit | ||
| 26 | # 3f108441e23e033b936e85be5b6877dd0a1fbf1c which is included in the SRCREV | ||
| 27 | # CVE-2021-33889 has been fixed in commit | ||
| 28 | # a8f3f761f6753b567d1e5ad22cbe6b0ceb6f2649 which is included in the SRCREV | ||
| 29 | # There has not been a wpantund release as of yet that includes these fixes. | 25 | # There has not been a wpantund release as of yet that includes these fixes. |
| 30 | # That means cve-check can not match them. Once a new release comes we can | 26 | # That means cve-check can not match them. Once a new release comes we can |
| 31 | # remove the ignore statement. | 27 | # remove the statement. |
| 32 | CVE_CHECK_IGNORE = "CVE-2020-8916 CVE-2021-33889" | 28 | CVE_STATUS[CVE-2020-8916] = "backported-patch: fixed via 3f108441e23e033b936e85be5b6877dd0a1fbf1c" |
| 29 | CVE_STATUS[CVE-2021-33889] = "backported-patch: fixed via 3f108441e23e033b936e85be5b6877dd0a1fbf1c" | ||
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.18.4.bb b/meta-networking/recipes-connectivity/samba/samba_4.18.4.bb index 66089edad5..3386b93b5e 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.18.4.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.18.4.bb | |||
| @@ -38,12 +38,7 @@ UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.18(\.\d+)+).tar.gz" | |||
| 38 | 38 | ||
| 39 | inherit systemd waf-samba cpan-base perlnative update-rc.d perl-version pkgconfig | 39 | inherit systemd waf-samba cpan-base perlnative update-rc.d perl-version pkgconfig |
| 40 | 40 | ||
| 41 | # CVE-2011-2411 is valnerble only on HP NonStop Servers. | 41 | CVE_STATUS[CVE-2011-2411] = "not-applicable-platform: vulnerable only on HP NonStop Servers" |
| 42 | CVE_CHECK_IGNORE += "CVE-2011-2411" | ||
| 43 | # Patch for CVE-2018-1050 is applied in version 4.5.15, 4.6.13, 4.7.5. | ||
| 44 | CVE_CHECK_IGNORE += "CVE-2018-1050" | ||
| 45 | # Patch for CVE-2018-1057 is applied in version 4.3.13, 4.4.16. | ||
| 46 | CVE_CHECK_IGNORE += "CVE-2018-1057" | ||
| 47 | 42 | ||
| 48 | # remove default added RDEPENDS on perl | 43 | # remove default added RDEPENDS on perl |
| 49 | RDEPENDS:${PN}:remove = "perl" | 44 | RDEPENDS:${PN}:remove = "perl" |
diff --git a/meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb b/meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb index 46f1b70cb7..aff7954f50 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_1790.80.10.bb | |||
| @@ -46,18 +46,16 @@ PACKAGECONFIG[tls] = ",tls=no,mbedtls" | |||
| 46 | 46 | ||
| 47 | CVE_PRODUCT = "apple:mdnsresponder" | 47 | CVE_PRODUCT = "apple:mdnsresponder" |
| 48 | 48 | ||
| 49 | # CVE-2007-0613 is not applicable as it only affects Apple products | 49 | CVE_STATUS[CVE-2007-0613] = "not-applicable-platform: Issue affects Apple products \ |
| 50 | # i.e. ichat,mdnsresponder, instant message framework and MacOS. | 50 | i.e. ichat,mdnsresponder, instant message framework and MacOS. Also, \ |
| 51 | # Also, https://www.exploit-db.com/exploits/3230 shows the part of code | 51 | https://www.exploit-db.com/exploits/3230 shows the part of code \ |
| 52 | # affected by CVE-2007-0613 which is not preset in upstream source code. | 52 | affected by CVE-2007-0613 which is not preset in upstream source code. \ |
| 53 | # Hence, CVE-2007-0613 does not affect other Yocto implementations and | 53 | Hence, CVE-2007-0613 does not affect other Yocto implementations and \ |
| 54 | # is not reported for other distros can be marked whitelisted. | 54 | is not reported for other distros can be marked whitelisted. \ |
| 55 | # Links: | 55 | Links: https://vulmon.com/vulnerabilitydetails?qid=CVE-2007-0613 \ |
| 56 | # https://vulmon.com/vulnerabilitydetails?qid=CVE-2007-0613 | 56 | https://www.incibe-cert.es/en/early-warning/vulnerabilities/cve-2007-0613 \ |
| 57 | # https://www.incibe-cert.es/en/early-warning/vulnerabilities/cve-2007-0613 | 57 | https://security-tracker.debian.org/tracker/CVE-2007-0613 \ |
| 58 | # https://security-tracker.debian.org/tracker/CVE-2007-0613 | 58 | https://vulmon.com/vulnerabilitydetails?qid=CVE-2007-0613" |
| 59 | # https://vulmon.com/vulnerabilitydetails?qid=CVE-2007-0613 | ||
| 60 | CVE_CHECK_IGNORE += "CVE-2007-0613" | ||
| 61 | 59 | ||
| 62 | PARALLEL_MAKE = "" | 60 | PARALLEL_MAKE = "" |
| 63 | 61 | ||
diff --git a/meta-networking/recipes-protocols/openflow/openflow.inc b/meta-networking/recipes-protocols/openflow/openflow.inc index aaad0e00e1..7062d21462 100644 --- a/meta-networking/recipes-protocols/openflow/openflow.inc +++ b/meta-networking/recipes-protocols/openflow/openflow.inc | |||
| @@ -13,10 +13,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e870c934e2c3d6ccf085fd7cf0a1e2e2" | |||
| 13 | 13 | ||
| 14 | SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git;branch=master" | 14 | SRC_URI = "git://gitosis.stanford.edu/openflow.git;protocol=git;branch=master" |
| 15 | 15 | ||
| 16 | CVE_CHECK_IGNORE = "\ | 16 | CVE_STATUS[CVE-2015-1611] = "not-applicable-config: Not referred to our implementation of openflow" |
| 17 | CVE-2015-1611 \ | 17 | CVE_STATUS[CVE-2015-1612] = "not-applicable-config: Not referred to our implementation of openflow" |
| 18 | CVE-2015-1612 \ | 18 | CVE_STATUS[CVE-2018-1078] = "cpe-incorrect: This CVE is not for this product but cve-check assumes it is \ |
| 19 | " | 19 | because two CPE collides when checking the NVD database" |
| 20 | 20 | ||
| 21 | DEPENDS = "virtual/libc" | 21 | DEPENDS = "virtual/libc" |
| 22 | 22 | ||
| @@ -58,7 +58,3 @@ do_install:append() { | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" | 60 | FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" |
| 61 | |||
| 62 | # This CVE is not for this product but cve-check assumes it is | ||
| 63 | # because two CPE collides when checking the NVD database | ||
| 64 | CVE_CHECK_IGNORE = "CVE-2018-1078" | ||
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb b/meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb index 01e060e2f5..e41dd93f5d 100644 --- a/meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb +++ b/meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb | |||
| @@ -71,5 +71,4 @@ FILES:${PN}-staticdev += "${libdir}/dovecot/*/*.a" | |||
| 71 | FILES:${PN}-dev += "${libdir}/dovecot/libdovecot*.so" | 71 | FILES:${PN}-dev += "${libdir}/dovecot/libdovecot*.so" |
| 72 | FILES:${PN}-dbg += "${libdir}/dovecot/*/.debug" | 72 | FILES:${PN}-dbg += "${libdir}/dovecot/*/.debug" |
| 73 | 73 | ||
| 74 | # CVE-2016-4983 affects only postinstall script on specific distribution | 74 | CVE_STATUS[CVE-2016-4983] = "not-applicable-platform: Affects only postinstall script on specific distribution." |
| 75 | CVE_CHECK_IGNORE += "CVE-2016-4983" | ||
diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb index fba4611b99..e80ea4c149 100644 --- a/meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb +++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb | |||
| @@ -26,12 +26,11 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g | |||
| 26 | 26 | ||
| 27 | SRC_URI[sha256sum] = "103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866" | 27 | SRC_URI[sha256sum] = "103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866" |
| 28 | 28 | ||
| 29 | # CVE-2016-9312 is only for windows. | 29 | CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows" |
| 30 | # CVE-2019-11331 is inherent to RFC 5905 and cannot be fixed without breaking compatibility | 30 | CVE_STATUS[CVE-2019-11331] = "upstream-wontfix: inherent to RFC 5905 and cannot be fixed without breaking compatibility" |
| 31 | # The other CVEs are not correctly identified because cve-check | 31 | CVE_STATUS_GROUPS += "CVE_STATUS_NTP" |
| 32 | # is not able to check the version correctly (it only checks for 4.2.8 omitting p15 that makes the difference) | 32 | CVE_STATUS_NTP[status] = "fixed-version: Yocto CVE check can not handle 'p' in ntp version" |
| 33 | CVE_CHECK_IGNORE += "\ | 33 | CVE_STATUS_NTP = " \ |
| 34 | CVE-2016-9312 \ | ||
| 35 | CVE-2015-5146 \ | 34 | CVE-2015-5146 \ |
| 36 | CVE-2015-5300 \ | 35 | CVE-2015-5300 \ |
| 37 | CVE-2015-7975 \ | 36 | CVE-2015-7975 \ |
| @@ -51,7 +50,6 @@ CVE_CHECK_IGNORE += "\ | |||
| 51 | CVE-2016-7433 \ | 50 | CVE-2016-7433 \ |
| 52 | CVE-2016-9310 \ | 51 | CVE-2016-9310 \ |
| 53 | CVE-2016-9311 \ | 52 | CVE-2016-9311 \ |
| 54 | CVE-2019-11331 \ | ||
| 55 | " | 53 | " |
| 56 | 54 | ||
| 57 | 55 | ||
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.6.3.bb b/meta-networking/recipes-support/openvpn/openvpn_2.6.3.bb index 76bce7db53..a5fc158749 100644 --- a/meta-networking/recipes-support/openvpn/openvpn_2.6.3.bb +++ b/meta-networking/recipes-support/openvpn/openvpn_2.6.3.bb | |||
| @@ -16,8 +16,7 @@ UPSTREAM_CHECK_URI = "https://openvpn.net/community-downloads" | |||
| 16 | 16 | ||
| 17 | SRC_URI[sha256sum] = "13b207a376d8880507c74ff78aabc3778a9da47c89f1e247dcee3c7237138ff6" | 17 | SRC_URI[sha256sum] = "13b207a376d8880507c74ff78aabc3778a9da47c89f1e247dcee3c7237138ff6" |
| 18 | 18 | ||
| 19 | # CVE-2020-7224 and CVE-2020-27569 are for Aviatrix OpenVPN client, not for openvpn. | 19 | CVE_STATUS[CVE-2020-27569] = "not-applicable-config: Applies only Aviatrix OpenVPN client, not openvpn" |
| 20 | CVE_CHECK_IGNORE += "CVE-2020-7224 CVE-2020-27569" | ||
| 21 | 20 | ||
| 22 | INITSCRIPT_PACKAGES = "${PN}" | 21 | INITSCRIPT_PACKAGES = "${PN}" |
| 23 | INITSCRIPT_NAME:${PN} = "openvpn" | 22 | INITSCRIPT_NAME:${PN} = "openvpn" |
diff --git a/meta-networking/recipes-support/spice/spice_git.bb b/meta-networking/recipes-support/spice/spice_git.bb index b3e687476b..5732f509b1 100644 --- a/meta-networking/recipes-support/spice/spice_git.bb +++ b/meta-networking/recipes-support/spice/spice_git.bb | |||
| @@ -30,11 +30,7 @@ SRC_URI = " \ | |||
| 30 | 30 | ||
| 31 | S = "${WORKDIR}/git" | 31 | S = "${WORKDIR}/git" |
| 32 | 32 | ||
| 33 | CVE_CHECK_IGNORE += "\ | 33 | CVE_STATUS[CVE-2018-10893] = "fixed-version: patched already, caused by inaccurate CPE in the NVD database." |
| 34 | CVE-2016-0749 \ | ||
| 35 | CVE-2016-2150 \ | ||
| 36 | CVE-2018-10893 \ | ||
| 37 | " | ||
| 38 | 34 | ||
| 39 | inherit autotools gettext python3native python3-dir pkgconfig | 35 | inherit autotools gettext python3native python3-dir pkgconfig |
| 40 | 36 | ||
