gnome-shell: ignore CVE-2021-3982
PATCH 1/3 gnome-shell: ignore CVE-2021-3982
Details: https://nvd.nist.gov/vuln/detail/CVE-2021-3982
The vulnerability is about a privilege escalation, in case the host distribution sets CAP_SYS_NICE capability on the gnome-shell binary.
OE distros don't do that, and due to this this recipe is not affected by this issue. The CVE is ignored.
--- meta-gnome/recipes-gnome/gnome-shell/gnome-shell_46.1.bb | 1 + 1 file changed, 1 insertion(+)
meta-gnome/recipes-gnome/gnome-shell/gnome-shell_46.1.bb +1 -0
@@ -85,3 +85,4 @@ PACKAGES =+ "${PN}-tools ${PN}-gsettings" FILES:${PN}-tools = "${bindir}/*-tool" RDEPENDS:${PN}-tools = "python3-core" +CVE_STATUS[CVE-2021-3982] = "not-applicable-config: OE doesn't set CAP_SYS_NICE capability"
PATCH 2/3 keepalived: patch CVE-2024-41184
Details: https://nvd.nist.gov/vuln/detail/CVE-2024-41184
Backport the patches referenced by upstream in the bug mentioned by the NVD advisory.
--- .../keepalived/CVE-2024-41184-1.patch | 98 +++++++++++++++++++ .../keepalived/CVE-2024-41184-2.patch | 88 +++++++++++++++++ .../keepalived/CVE-2024-41184-3.patch | 94 ++++++++++++++++++ .../keepalived/CVE-2024-41184-4.patch | 33 +++++++ .../keepalived/keepalived_2.2.8.bb | 4 + 5 files changed, 317 insertions(+) create mode 100644 meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-1.patch create mode 100644 meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-2.patch create mode 100644 meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-3.patch create mode 100644 meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-4.patch
meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-1.patch new file +98 -0
@@ -0,0 +1,98 @@ +From 3ff3427da746c4641e1718dcec7a2f7041ae6961 Mon Sep 17 00:00:00 2001 +From: Quentin Armitage <[email protected]> +Date: Fri, 12 Jul 2024 15:16:47 +0100 +Subject: [PATCH] vrrp: Handle empty ipset names with vrrp_ipsets keyword + +We now handle empty ipset names and return a config error. + +Signed-off-by: Quentin Armitage <[email protected]> +CVE: CVE-2024-41184 +Upstream-Status: Backport [https://github.com/acassen/keepalived/commit/e78513fe0ce5d83c226ea2c0bd222f375c2438e7] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + keepalived/core/global_parser.c | 36 +++++++++++++++++++-------------- + 1 file changed, 21 insertions(+), 15 deletions(-) + +diff --git a/keepalived/core/global_parser.c b/keepalived/core/global_parser.c +index a3f2329..504b9a1 100644 +--- a/keepalived/core/global_parser.c ++++ b/keepalived/core/global_parser.c +@@ -1086,6 +1086,22 @@ vrrp_iptables_handler(const vector_t *strvec) + } + } + #ifdef _HAVE_LIBIPSET_ ++static bool ++check_valid_ipset_name(const vector_t *strvec, unsigned entry, const char *log_name) ++{ ++ if (strlen(strvec_slot(strvec, entry)) >= IPSET_MAXNAMELEN - 1) { ++ report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset %s name too long - ignored", log_name); ++ return false; ++ } ++ ++ if (strlen(strvec_slot(strvec, entry)) == 0) { ++ report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset %s name empty - ignored", log_name); ++ return false; ++ } ++ ++ return true; ++} ++ + static void + vrrp_ipsets_handler(const vector_t *strvec) + { +@@ -1103,17 +1119,13 @@ vrrp_ipsets_handler(const vector_t *strvec) + return; + } + +- if (strlen(strvec_slot(strvec,1)) >= IPSET_MAXNAMELEN - 1) { +- report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset address name too long - ignored"); ++ if (!check_valid_ipset_name(strvec, 1, "address")) + return; +- } + global_data->vrrp_ipset_address = STRDUP(strvec_slot(strvec,1)); + + if (vector_size(strvec) >= 3) { +- if (strlen(strvec_slot(strvec,2)) >= IPSET_MAXNAMELEN - 1) { +- report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset IPv6 address name too long - ignored"); ++ if (!check_valid_ipset_name(strvec, 2, "IPv6 address")) + return; +- } + global_data->vrrp_ipset_address6 = STRDUP(strvec_slot(strvec,2)); + } + else { +@@ -1124,10 +1136,8 @@ vrrp_ipsets_handler(const vector_t *strvec) + global_data->vrrp_ipset_address6 = STRDUP(set_name); + } + if (vector_size(strvec) >= 4) { +- if (strlen(strvec_slot(strvec,3)) >= IPSET_MAXNAMELEN - 1) { +- report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset IPv6 address_iface name too long - ignored"); ++ if (!check_valid_ipset_name(strvec, 3, "IPv6 address_iface")) + return; +- } + global_data->vrrp_ipset_address_iface6 = STRDUP(strvec_slot(strvec,3)); + } + else { +@@ -1142,10 +1152,8 @@ vrrp_ipsets_handler(const vector_t *strvec) + } + + if (vector_size(strvec) >= 5) { +- if (strlen(strvec_slot(strvec,4)) >= IPSET_MAXNAMELEN - 1) { +- report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset IGMP name too long - ignored"); ++ if (!check_valid_ipset_name(strvec, 4, "IGMP")) + return; +- } + global_data->vrrp_ipset_igmp = STRDUP(strvec_slot(strvec,4)); + } + else { +@@ -1156,10 +1164,8 @@ vrrp_ipsets_handler(const vector_t *strvec) + global_data->vrrp_ipset_igmp = STRDUP(set_name); + } + if (vector_size(strvec) >= 6) { +- if (strlen(strvec_slot(strvec,5)) >= IPSET_MAXNAMELEN - 1) { +- report_config_error(CONFIG_GENERAL_ERROR, "VRRP Error : ipset MLD name too long - ignored"); ++ if (!check_valid_ipset_name(strvec, 5, "MLD")) + return; +- } + global_data->vrrp_ipset_mld = STRDUP(strvec_slot(strvec,5)); + } + else {
meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-2.patch new file +88 -0
88 lines not on this page · raw message
meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-3.patch new file +94 -0
94 lines not on this page · raw message
meta-networking/recipes-daemons/keepalived/keepalived/CVE-2024-41184-4.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 5e5fde051d75ffe0449418466832b8b50baeb95e Mon Sep 17 00:00:00 2001 +From: Quentin Armitage <[email protected]> +Date: Fri, 12 Jul 2024 15:11:13 +0100 +Subject: [PATCH] lib: don't return subtracted addresses for rb_find() compare + function + +If sizeof(int) < sizeof(void *) returning the difference between two +addresses in an int can cause an overflow. + +Use less_equal_greater_than() for comparing addresses. + +Signed-off-by: Quentin Armitage <[email protected]> + +CVE: CVE-2024-41184 +Upstream-Status: Backport [https://github.com/acassen/keepalived/commit/f3a32e3557520dccb298b36b4952eff3e236fb86] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + lib/memory.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/memory.c b/lib/memory.c +index c7217fd..4b250ac 100644 +--- a/lib/memory.c ++++ b/lib/memory.c +@@ -200,7 +200,7 @@ static unsigned free_list_size; + static inline int + memcheck_ptr_cmp(const void *key, const struct rb_node *a) + { +- return (const char *)key - (char *)rb_entry_const(a, MEMCHECK, t)->ptr; ++ return less_equal_greater_than((const char *)key, (char *)rb_entry_const(a, MEMCHECK, t)->ptr); + } + + static inline bool
meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb +4 -0
@@ -12,6 +12,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz \ file://0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch \ + file://CVE-2024-41184-1.patch \ + file://CVE-2024-41184-2.patch \ + file://CVE-2024-41184-3.patch \ + file://CVE-2024-41184-4.patch \ " SRC_URI[sha256sum] = "85882eb62974f395d4c631be990a41a839594a7e62fbfebcb5649a937a7a1bb6" UPSTREAM_CHECK_URI = "https://github.com/acassen/keepalived/releases"
PATCH 3/3 libjxl: upgrade 0.10.2 -> 0.10.5
In reply to Gyorgy SarvariBug fix release, mostly CVE fixes.
Drop patches that are included.
Changelog:
0.10.5:
fix tile dimension in low memory rendering pipeline (CVE-2025-12474) fix number of channels for gray-to-gray color transform (CVE-2026-1837)
djxl: reject decoding JXL files if "packed" representation size overflows size_t
0.10.4:
Huffman lookup table size fix (CVE-2024-11403) Check height limit in modular trees (CVE-2024-11498)
0.10.3:
fixed decoding of some special images
---
.../libjxl/libjxl/CVE-2024-11403.patch | 70 -----------
.../libjxl/libjxl/CVE-2024-11498.patch | 113 ------------------
.../{libjxl_0.10.2.bb => libjxl_0.10.5.bb} | 7 +-
3 files changed, 2 insertions(+), 188 deletions(-)
delete mode 100644 meta-oe/recipes-multimedia/libjxl/libjxl/CVE-2024-11403.patch
delete mode 100644 meta-oe/recipes-multimedia/libjxl/libjxl/CVE-2024-11498.patch
rename meta-oe/recipes-multimedia/libjxl/{libjxl_0.10.2.bb => libjxl_0.10.5.bb} (88%)meta-oe/recipes-multimedia/libjxl/libjxl/CVE-2024-11403.patch deleted +0 -70
@@ -1,70 +0,0 @@ -From 9cc451b91b74ba470fd72bd48c121e9f33d24c99 Mon Sep 17 00:00:00 2001 -From: szabadka <[email protected]> -Date: Thu, 3 Oct 2024 18:07:38 +0200 -Subject: [PATCH] Port the Huffman lookup table size fix from brunsli. (#3871) - -CVE: CVE-2024-11403 -Upstream-Status: Backport [https://github.com/libjxl/libjxl/commit/9cc451b91b74ba470fd72bd48c121e9f33d24c99] -Signed-off-by: Hitendra Prajapati <[email protected]> ---- - lib/jpegli/huffman.h | 16 ++++++++++++---- - lib/jxl/jpeg/enc_jpeg_huffman_decode.h | 16 ++++++++++++---- - 2 files changed, 24 insertions(+), 8 deletions(-) - -diff --git a/lib/jpegli/huffman.h b/lib/jpegli/huffman.h -index f0e5e1de..99549668 100644 ---- a/lib/jpegli/huffman.h -+++ b/lib/jpegli/huffman.h -@@ -15,10 +15,18 @@ namespace jpegli { - - constexpr int kJpegHuffmanRootTableBits = 8; - // Maximum huffman lookup table size. --// According to zlib/examples/enough.c, 758 entries are always enough for --// an alphabet of 257 symbols (256 + 1 special symbol for the all 1s code) and --// max bit length 16 if the root table has 8 bits. --constexpr int kJpegHuffmanLutSize = 758; -+// Requirements: alphabet of 257 symbols (256 + 1 special symbol for the all 1s -+// code) and max bit length 16, the root table has 8 bits. -+// zlib/examples/enough.c works with an assumption that Huffman code is -+// "complete". Input JPEGs might have this assumption broken, hence the -+// following sum is used as estimate: -+// + number of 1-st level cells -+// + number of symbols -+// + asymptotic amount of repeated 2nd level cells -+// The third number is 1 + 3 + ... + 255 i.e. it is assumed that sub-table of -+// each "size" might be almost completely be filled with repetitions. -+// Total sum is slightly less than 1024,... -+constexpr int kJpegHuffmanLutSize = 1024; - - struct HuffmanTableEntry { - uint8_t bits; // number of bits used for this symbol -diff --git a/lib/jxl/jpeg/enc_jpeg_huffman_decode.h b/lib/jxl/jpeg/enc_jpeg_huffman_decode.h -index b8a60e41..fc9bd17b 100644 ---- a/lib/jxl/jpeg/enc_jpeg_huffman_decode.h -+++ b/lib/jxl/jpeg/enc_jpeg_huffman_decode.h -@@ -15,10 +15,18 @@ namespace jpeg { - - constexpr int kJpegHuffmanRootTableBits = 8; - // Maximum huffman lookup table size. --// According to zlib/examples/enough.c, 758 entries are always enough for --// an alphabet of 257 symbols (256 + 1 special symbol for the all 1s code) and --// max bit length 16 if the root table has 8 bits. --constexpr int kJpegHuffmanLutSize = 758; -+// Requirements: alphabet of 257 symbols (256 + 1 special symbol for the all 1s -+// code) and max bit length 16, the root table has 8 bits. -+// zlib/examples/enough.c works with an assumption that Huffman code is -+// "complete". Input JPEGs might have this assumption broken, hence the -+// following sum is used as estimate: -+// + number of 1-st level cells -+// + number of symbols -+// + asymptotic amount of repeated 2nd level cells -+// The third number is 1 + 3 + ... + 255 i.e. it is assumed that sub-table of -+// each "size" might be almost completely be filled with repetitions. -+// Total sum is slightly less than 1024,... -+constexpr int kJpegHuffmanLutSize = 1024; - - struct HuffmanTableEntry { - // Initialize the value to an invalid symbol so that we can recognize it --- -2.50.1 -
meta-oe/recipes-multimedia/libjxl/libjxl/CVE-2024-11498.patch deleted +0 -113
113 lines not on this page · raw message
meta-oe/recipes-multimedia/libjxl/libjxl_0.10.5.bb renamed from meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb +2 -5
@@ -8,11 +8,8 @@ inherit cmake pkgconfig mime DEPENDS = "highway brotli" -SRC_URI = "gitsm://github.com/libjxl/libjxl.git;protocol=https;nobranch=1 \ - file://CVE-2024-11403.patch \ - file://CVE-2024-11498.patch \ - " -SRCREV = "e1489592a770b989303b0edc5cc1dc447bbe0515" +SRC_URI = "gitsm://github.com/libjxl/libjxl.git;protocol=https;nobranch=1" +SRCREV = "6aa76f3134684f86e239263384230751b56938a7" S = "${WORKDIR}/git" EXTRA_OECMAKE = " \