diff options
| author | Peter Marko <peter.marko@siemens.com> | 2024-10-29 23:11:12 +0100 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2024-12-08 14:39:17 -0500 |
| commit | cc8b266290a4ca2df9cf18a0f6fb86d4289de7c1 (patch) | |
| tree | 718af90472744fff65a29e0040ed5d63fb67dbde | |
| parent | daf05cbbe1ef5bbea81f43c33ed8b48f7646c882 (diff) | |
| download | meta-openembedded-cc8b266290a4ca2df9cf18a0f6fb86d4289de7c1.tar.gz | |
nss: patch CVE-2024-6609
Pick the same patch as Debian took for bullseye.
There is no direct backport to version prior 3.102 because
commit NSS_3_101_BETA2-12-g8d94c529b [1] rewrote this code.
Applied patch was proposed for old versions in [2] and already
applied in Debian bullseye.
I could not find suitable upstream status, inappropriate is the best
I could pick from offered possibilities.
[1] https://github.com/nss-dev/nss/commit/8d94c529b333194d080c4885ddd3a40e6c296ae9<
[2] https://groups.google.com/a/mozilla.org/g/dev-tech-crypto/c/t9JmsYkujWM/m/HjKuk-ngBAAJ
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/nss/nss/CVE-2024-6609.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-support/nss/nss_3.74.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/nss/nss/CVE-2024-6609.patch b/meta-oe/recipes-support/nss/nss/CVE-2024-6609.patch new file mode 100644 index 0000000000..38932cc237 --- /dev/null +++ b/meta-oe/recipes-support/nss/nss/CVE-2024-6609.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 41550b24b92c4a5971da9842e5e9f2b452aceca8 Tue Oct 29 22:44:57 2024 | ||
| 2 | From: Peter Marko <peter.marko@siemens.com> | ||
| 3 | Date: Tue, 29 Oct 2024 22:44:57 +0100 | ||
| 4 | Subject: [PATCH] fix CVE-2024-6609 | ||
| 5 | |||
| 6 | CVE: CVE-2024-6609 | ||
| 7 | Upstream-Status: Inappropriate [upstream ticket: https://groups.google.com/a/mozilla.org/g/dev-tech-crypto/c/t9JmsYkujWM/m/HjKuk-ngBAAJ] | ||
| 8 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 9 | --- | ||
| 10 | nss/lib/freebl/ec.c | 4 ++++ | ||
| 11 | 1 file changed, 4 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/nss/lib/freebl/ec.c b/nss/lib/freebl/ec.c | ||
| 14 | index 73a625a..c9490da 100644 | ||
| 15 | --- a/nss/lib/freebl/ec.c | ||
| 16 | +++ b/nss/lib/freebl/ec.c | ||
| 17 | @@ -302,6 +302,10 @@ done: | ||
| 18 | |||
| 19 | cleanup: | ||
| 20 | mp_clear(&k); | ||
| 21 | + if (err < MP_OKAY) { | ||
| 22 | + MP_TO_SEC_ERROR(err); | ||
| 23 | + rv = SECFailure; | ||
| 24 | + } | ||
| 25 | if (rv) { | ||
| 26 | PORT_FreeArena(arena, PR_TRUE); | ||
| 27 | } | ||
| 28 | -- | ||
| 29 | 2.30.2 | ||
| 30 | |||
diff --git a/meta-oe/recipes-support/nss/nss_3.74.bb b/meta-oe/recipes-support/nss/nss_3.74.bb index 464a353ff7..70d8513d43 100644 --- a/meta-oe/recipes-support/nss/nss_3.74.bb +++ b/meta-oe/recipes-support/nss/nss_3.74.bb | |||
| @@ -38,6 +38,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO | |||
| 38 | file://0001-Bug-1750624-Pin-validation-date-for-PayPalEE-test-ce.patch \ | 38 | file://0001-Bug-1750624-Pin-validation-date-for-PayPalEE-test-ce.patch \ |
| 39 | file://regenerate_NameConstrain_test_certificates.tar.gz \ | 39 | file://regenerate_NameConstrain_test_certificates.tar.gz \ |
| 40 | file://CVE-2024-6602.patch \ | 40 | file://CVE-2024-6602.patch \ |
| 41 | file://CVE-2024-6609.patch \ | ||
| 41 | " | 42 | " |
| 42 | SRC_URI[sha256sum] = "88928811f9f40f87d42e2eaccdf6e454562e51486067f2ddbe90aa47ea6cd056" | 43 | SRC_URI[sha256sum] = "88928811f9f40f87d42e2eaccdf6e454562e51486067f2ddbe90aa47ea6cd056" |
| 43 | 44 | ||
