diff options
| -rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox/CVE-2021-23159_CVE-2021-2317.patch | 31 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/sox/sox/CVE-2021-23159_CVE-2021-2317.patch b/meta-multimedia/recipes-multimedia/sox/sox/CVE-2021-23159_CVE-2021-2317.patch new file mode 100644 index 0000000000..472e4bac60 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/sox/sox/CVE-2021-23159_CVE-2021-2317.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 8eb3afb37f80d7231a998e3074e6fc5f7bdfe4d5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Helmut Grohne <helmut@subdivi.de> | ||
| 3 | Date: Sun, 16 Mar 2025 20:28:15 +0100 | ||
| 4 | Subject: [PATCH] hcom: validate dictsize | ||
| 5 | |||
| 6 | Source: https://salsa.debian.org/lts-team/packages/sox/-/blob/debian/14.4.2+git20190427-1+deb10u3/debian/patches/CVE-2021-23159.patch | ||
| 7 | |||
| 8 | CVE: CVE-2021-23159 | ||
| 9 | CVE: CVE-2021-23172 | ||
| 10 | Upstream-Status: Inactive-Upstream [lastrelease: 2015] | ||
| 11 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 12 | --- | ||
| 13 | src/hcom.c | 5 +++++ | ||
| 14 | 1 file changed, 5 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/src/hcom.c b/src/hcom.c | ||
| 17 | index 594c8706..9e8b03c6 100644 | ||
| 18 | --- a/src/hcom.c | ||
| 19 | +++ b/src/hcom.c | ||
| 20 | @@ -141,6 +141,11 @@ static int startread(sox_format_t * ft) | ||
| 21 | return (SOX_EOF); | ||
| 22 | } | ||
| 23 | lsx_readw(ft, &dictsize); | ||
| 24 | + if (dictsize == 0 || dictsize > 511) | ||
| 25 | + { | ||
| 26 | + lsx_fail_errno(ft, SOX_EHDR, "Implausible dictionary size in HCOM header"); | ||
| 27 | + return SOX_EOF; | ||
| 28 | + } | ||
| 29 | |||
| 30 | /* Translate to sox parameters */ | ||
| 31 | ft->encoding.encoding = SOX_ENCODING_HCOM; | ||
diff --git a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb index a87f4de131..bfa1d9c2d4 100644 --- a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb +++ b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | |||
| @@ -30,6 +30,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ | |||
| 30 | SRC_URI = "git://git.code.sf.net/p/sox/code;protocol=https;branch=master \ | 30 | SRC_URI = "git://git.code.sf.net/p/sox/code;protocol=https;branch=master \ |
| 31 | file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ | 31 | file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ |
| 32 | file://CVE-2021-3643_CVE-2021-23210.patch \ | 32 | file://CVE-2021-3643_CVE-2021-23210.patch \ |
| 33 | file://CVE-2021-23159_CVE-2021-2317.patch \ | ||
| 33 | " | 34 | " |
| 34 | 35 | ||
| 35 | # last release was in 2015, use latest hash from 2024-05-30 | 36 | # last release was in 2015, use latest hash from 2024-05-30 |
