gnutls: Whitelisted CVE patches
PATCH 1/1 gnutls: Whitelisted CVE patches
From: Saloni Jain <[email protected]>
Below CVE patches are whitelisted as changes
are already present in source code:
1. CVE-2018-10844
2. CVE-2018-10845
3. CVE-2018-10846
4. CVE-2018-16868
--- meta/recipes-support/gnutls/gnutls_3.6.14.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-support/gnutls/gnutls_3.6.14.bb +3 -0
@@ -17,6 +17,9 @@ DEPENDS_append_libc-musl = " argp-standalone" SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" +#Changes are already present in source-code, hence whitelisted. +CVE_CHECK_WHITELIST += "CVE-2018-16868 CVE-2018-10844 CVE-2018-10845 CVE-2018-10845" + SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz \ file://arm_eabi.patch \ file://0001-Modied-the-license-to-GPLv2.1-to-keep-with-LICENSE-f.patch \
--
2.7.4
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Note that the first three CVE's no longer appear in a CVE scan for master or dunfell:
https://lists.yoctoproject.org/g/yocto-security/topic/oe_core_cve_metrics_for/77795960?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,77795960
https://lists.yoctoproject.org/g/yocto-security/topic/oe_core_cve_metrics_for/77796289?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,77796289
You'll see them in the "removed this week" since I sent in database updates last week. I still need to deal with getting CVE-2018-16868 updated, but hopefully will get that done later this week.
So there should be no need for this patch in either master or dunfell. In general I'd prefer to get the CVE database updated rather than add whitelist entries.
If you'd like to help me with this CVE reduction program let's coordinate off list!
Steve
Quoted 44 lines · saloni
From: Saloni Jain <[email protected]>
Below CVE patches are whitelisted as changes
are already present in source code:
1. CVE-2018-108442. CVE-2018-10845
3. CVE-2018-10846
4. CVE-2018-16868
Signed-off-by Saloni.Jain <[email protected]>--- meta/recipes-support/gnutls/gnutls_3.6.14.bb | 3 +++ 1 file changed, 3 insertions(+)meta/recipes-support/gnutls/gnutls_3.6.14.bb +3
-1@@ -17,6 +17,9 @@ DEPENDS_append_libc-musl = " argp-standalone" SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" +#Changes are already present in source-code, hence whitelisted. +CVE_CHECK_WHITELIST += "CVE-2018-16868 CVE-2018-10844 CVE-2018-10845 CVE-2018-10845" + SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz \ file://arm_eabi.patch \ file://0001-Modied-the-license-to-GPLv2.1-to-keep-with-LICENSE-f.patch \ --2.7.4
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Echoing what Steve says: where this is due to incorrect information in the CVE database we should definitely fix the CVE database instead of working around this in the recipes. The only reason to whitelist in the recipe is if the vulnerability is based on the build configuration or we've decided that it's not relevant.
Ross
Quoted 44 lines · saloni
From: Saloni Jain <[email protected]>
Below CVE patches are whitelisted as changes
are already present in source code:
1. CVE-2018-108442. CVE-2018-10845
3. CVE-2018-10846
4. CVE-2018-16868
Signed-off-by Saloni.Jain <[email protected]>--- meta/recipes-support/gnutls/gnutls_3.6.14.bb | 3 +++ 1 file changed, 3 insertions(+)meta/recipes-support/gnutls/gnutls_3.6.14.bb +3
-1@@ -17,6 +17,9 @@ DEPENDS_append_libc-musl = " argp-standalone" SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" +#Changes are already present in source-code, hence whitelisted. +CVE_CHECK_WHITELIST += "CVE-2018-16868 CVE-2018-10844 CVE-2018-10845 CVE-2018-10845" + SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz \ file://arm_eabi.patch \ file://0001-Modied-the-license-to-GPLv2.1-to-keep-with-LICENSE-f.patch \ --2.7.4
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Hello Ross,
Understood, I also had a discussion with Steve and doing a complete check for all the reported CVEs, and after gathering all the relevant information, will send request for Database Update.
Thanks & Regards,
Saloni
________________________________
From: Ross Burton <[email protected]>
Sent: Thursday, October 29, 2020 7:31 PM
To: Saloni Jain <[email protected]>
Cc: OE-core <[email protected]>; Khem Raj <[email protected]>; Nisha Parrakat <[email protected]>; Anuj Chougule <[email protected]>
Subject: Re: [OE-core] [poky][master][PATCH] gnutls: Whitelisted CVE patches
Echoing what Steve says: where this is due to incorrect information in the CVE database we should definitely fix the CVE database instead of working around this in the recipes. The only reason to whitelist in the recipe is if the vulnerability is based on the build configuration or we've decided that it's not relevant.
Ross
Quoted 40 lines · saloni
From: Saloni Jain <[email protected]>
Below CVE patches are whitelisted as changes
are already present in source code:
1. CVE-2018-108442. CVE-2018-10845
3. CVE-2018-10846
4. CVE-2018-16868
Signed-off-by Saloni.Jain <[email protected]>--- meta/recipes-support/gnutls/gnutls_3.6.14.bb | 3 +++ 1 file changed, 3 insertions(+)meta/recipes-support/gnutls/gnutls_3.6.14.bb +3
-1@@ -17,6 +17,9 @@ DEPENDS_append_libc-musl = " argp-standalone" SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" +#Changes are already present in source-code, hence whitelisted. +CVE_CHECK_WHITELIST += "CVE-2018-16868 CVE-2018-10844 CVE-2018-10845 CVE-2018-10845" + SRC_URI = "https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.gnupg.org%2Fftp%2Fgcrypt%2Fgnutls%2Fv%24&data=04%7C01%7Csaloni.jain%40kpit.com%7C78f127dc11024eb064e708d87c132472%7C3539451eb46e4a26a242ff61502855c7%7C0%7C0%7C637395768956838179%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BX0mUSC%2BOoWUD3TS4YNXDQrU6thiS642N1jHs3sOBQc%3D&reserved=0{SHRT_VER}/gnutls-${PV}.tar.xz \ file://arm_eabi.patch \ file://0001-Modied-the-license-to-GPLv2.1-to-keep-with-LICENSE-f.patch \ --2.7.4
Quoted 4 lines
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.