diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-09 12:38:49 +0100 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-10 00:13:34 +0100 |
| commit | e672fee7eb939e328e8fbc3a5561eda6d5df7fde (patch) | |
| tree | 6631ceb6cc1d3d4dab6fb704b8cbc476bbd2dc26 /meta-multimedia | |
| parent | 83498ed81821d6a590cc71c0f60ad7a47eb0d276 (diff) | |
| download | meta-openembedded-e672fee7eb939e328e8fbc3a5561eda6d5df7fde.tar.gz | |
sox: patch CVE-2017-11358
Details: https://nvd.nist.gov/vuln/detail/CVE-2017-11358
Pick the patch that was identified by Debian[1] as the solution.
[1]: https://security-tracker.debian.org/tracker/CVE-2017-11358
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-multimedia')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox/CVE-2017-11358.patch | 29 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/sox/sox/CVE-2017-11358.patch b/meta-multimedia/recipes-multimedia/sox/sox/CVE-2017-11358.patch new file mode 100644 index 0000000000..9e797c0e7b --- /dev/null +++ b/meta-multimedia/recipes-multimedia/sox/sox/CVE-2017-11358.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 0e3909288d38487d7c86b11c7509cca01296fdc8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mans Rullgard <mans@mansr.com> | ||
| 3 | Date: Sun, 5 Nov 2017 16:43:35 +0000 | ||
| 4 | Subject: [PATCH] hcom: fix crash on input with corrupt dictionary | ||
| 5 | (CVE-2017-11358) | ||
| 6 | |||
| 7 | CVE: CVE-2017-11358 | ||
| 8 | Upstream-Status: Backport [https://github.com/mansr/sox/commit/6cb44a44b9eda6b321ccdbf6483348d4a9798b00] | ||
| 9 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 10 | --- | ||
| 11 | src/hcom.c | 5 +++++ | ||
| 12 | 1 file changed, 5 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/src/hcom.c b/src/hcom.c | ||
| 15 | index e76820e..ee28cba 100644 | ||
| 16 | --- a/src/hcom.c | ||
| 17 | +++ b/src/hcom.c | ||
| 18 | @@ -150,6 +150,11 @@ static int startread(sox_format_t * ft) | ||
| 19 | lsx_debug("%d %d", | ||
| 20 | p->dictionary[i].dict_leftson, | ||
| 21 | p->dictionary[i].dict_rightson); | ||
| 22 | + if ((unsigned) p->dictionary[i].dict_leftson >= dictsize || | ||
| 23 | + (unsigned) p->dictionary[i].dict_rightson >= dictsize) { | ||
| 24 | + lsx_fail_errno(ft, SOX_EHDR, "Invalid dictionary"); | ||
| 25 | + return SOX_EOF; | ||
| 26 | + } | ||
| 27 | } | ||
| 28 | rc = lsx_skipbytes(ft, (size_t) 1); /* skip pad byte */ | ||
| 29 | if (rc) | ||
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 c8a7a1829d..b1cf516f62 100644 --- a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb +++ b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | |||
| @@ -31,6 +31,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ | |||
| 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://0001-Update-exported-symbol-list.patch \ | 32 | file://0001-Update-exported-symbol-list.patch \ |
| 33 | file://CVE-2017-11332.patch \ | 33 | file://CVE-2017-11332.patch \ |
| 34 | file://CVE-2017-11358.patch \ | ||
| 34 | " | 35 | " |
| 35 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" | 36 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" |
| 36 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" | 37 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" |
