diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2025-10-10 12:40:38 +1300 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2025-10-30 14:43:34 +0800 |
| commit | da2b9ec4db2f104fd80962b3ff3ebf1a52f4c624 (patch) | |
| tree | f7c9355bd1d1364a3cc367f2a6b35daf59ce0898 /meta-oe | |
| parent | 7ad4066c401900655b4569cf4a11a83c5c0eb9df (diff) | |
| download | meta-openembedded-da2b9ec4db2f104fd80962b3ff3ebf1a52f4c624.tar.gz | |
libcupsfilters: patch CVE-2024-47076
Details https://nvd.nist.gov/vuln/detail/CVE-2024-47076
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
(cherry picked from commit 1ef236b6c507ccf280d9a9aa1cbba3a9c2fee5f8)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-printing/cups/libcupsfilters/0001-CVE-2024-47076.patch | 38 | ||||
| -rw-r--r-- | meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-printing/cups/libcupsfilters/0001-CVE-2024-47076.patch b/meta-oe/recipes-printing/cups/libcupsfilters/0001-CVE-2024-47076.patch new file mode 100644 index 0000000000..5fdf2bd444 --- /dev/null +++ b/meta-oe/recipes-printing/cups/libcupsfilters/0001-CVE-2024-47076.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 5f950f6a52c7453d76fb30dbc8d66bbc1cc682a3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Zdenek Dohnal <zdohnal@redhat.com> | ||
| 3 | Date: Thu, 26 Sep 2024 23:09:29 +0200 | ||
| 4 | Subject: [PATCH] CVE-2024-47076 | ||
| 5 | |||
| 6 | cfGetPrinterAttributes5(): Validate response attributes before return | ||
| 7 | |||
| 8 | The destination can be corrupted or forged, so validate the response | ||
| 9 | to strenghten security measures. | ||
| 10 | |||
| 11 | CVE: CVE-2024-47076 | ||
| 12 | Upstream-Status: Backport [https://github.com/OpenPrinting/libcupsfilters/commit/95576ec3d20c109332d14672a807353cdc551018] | ||
| 13 | |||
| 14 | (cherry picked from commit 95576ec3d20c109332d14672a807353cdc551018) | ||
| 15 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 16 | --- | ||
| 17 | cupsfilters/ipp.c | 8 ++++++++ | ||
| 18 | 1 file changed, 8 insertions(+) | ||
| 19 | |||
| 20 | diff --git a/cupsfilters/ipp.c b/cupsfilters/ipp.c | ||
| 21 | index a0814ae5..994c8dac 100644 | ||
| 22 | --- a/cupsfilters/ipp.c | ||
| 23 | +++ b/cupsfilters/ipp.c | ||
| 24 | @@ -452,6 +452,14 @@ cfGetPrinterAttributes5(http_t *http_printer, | ||
| 25 | ippDelete(response2); | ||
| 26 | } | ||
| 27 | } | ||
| 28 | + | ||
| 29 | + // Check if the response is valid | ||
| 30 | + if (!ippValidateAttributes(response)) | ||
| 31 | + { | ||
| 32 | + ippDelete(response); | ||
| 33 | + response = NULL; | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | if (have_http == 0) httpClose(http_printer); | ||
| 37 | if (uri) free(uri); | ||
| 38 | return (response); | ||
diff --git a/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb b/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb index 7f7174d940..827172a6a1 100644 --- a/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb +++ b/meta-oe/recipes-printing/cups/libcupsfilters_2.0.0.bb | |||
| @@ -8,6 +8,7 @@ DEPENDS = "cups fontconfig libexif dbus lcms qpdf poppler libpng jpeg tiff" | |||
| 8 | SRC_URI = " \ | 8 | SRC_URI = " \ |
| 9 | https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ | 9 | https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \ |
| 10 | file://0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch \ | 10 | file://0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch \ |
| 11 | file://0001-CVE-2024-47076.patch \ | ||
| 11 | " | 12 | " |
| 12 | SRC_URI[sha256sum] = "542f2bfbc58136a4743c11dc8c86cee03c9aca705612654e36ac34aa0d9aa601" | 13 | SRC_URI[sha256sum] = "542f2bfbc58136a4743c11dc8c86cee03c9aca705612654e36ac34aa0d9aa601" |
| 13 | 14 | ||
