diff options
| -rw-r--r-- | meta-oe/recipes-support/udisks/udisks2/CVE-2025-8067.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-support/udisks/udisks2_2.9.4.bb | 4 |
2 files changed, 40 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/udisks/udisks2/CVE-2025-8067.patch b/meta-oe/recipes-support/udisks/udisks2/CVE-2025-8067.patch new file mode 100644 index 0000000000..93e79c1e18 --- /dev/null +++ b/meta-oe/recipes-support/udisks/udisks2/CVE-2025-8067.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From 9ed2186f668c76aeb472de170d62b499d85a1915 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Marc Deslauriers <marc.deslauriers@canonical.com> | ||
| 3 | Date: Tue, 15 Jul 2025 13:34:08 -0400 | ||
| 4 | Subject: [PATCH] udiskslinuxmanager: Add lower bounds check to fd_index | ||
| 5 | |||
| 6 | CVE: CVE-2025-8067 | ||
| 7 | |||
| 8 | Make sure fd_index isn't negative as this can lead to an OOB read | ||
| 9 | resulting in a crash, or to exposing internal file descriptors. | ||
| 10 | |||
| 11 | Reported by Michael Imfeld (born0monday). | ||
| 12 | |||
| 13 | (cherry picked from commit 280b127124332c6436bc8273ef677f218b435593) | ||
| 14 | |||
| 15 | Upstream-Status: Backport | ||
| 16 | [https://github.com/storaged-project/udisks/commit/9ed2186f668c76aeb472de170d62b499d85a1915] | ||
| 17 | |||
| 18 | Signed-off-by: Saravanan <saravanan.kadambathursubramaniyam@windriver.com> | ||
| 19 | --- | ||
| 20 | src/udiskslinuxmanager.c | 2 +- | ||
| 21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/src/udiskslinuxmanager.c b/src/udiskslinuxmanager.c | ||
| 24 | index 7a614f44..76694cfd 100644 | ||
| 25 | --- a/src/udiskslinuxmanager.c | ||
| 26 | +++ b/src/udiskslinuxmanager.c | ||
| 27 | @@ -359,7 +359,7 @@ handle_loop_setup (UDisksManager *object, | ||
| 28 | goto out; | ||
| 29 | |||
| 30 | fd_num = g_variant_get_handle (fd_index); | ||
| 31 | - if (fd_list == NULL || fd_num >= g_unix_fd_list_get_length (fd_list)) | ||
| 32 | + if (fd_list == NULL || fd_num < 0 || fd_num >= g_unix_fd_list_get_length (fd_list)) | ||
| 33 | { | ||
| 34 | g_dbus_method_invocation_return_error (invocation, | ||
| 35 | UDISKS_ERROR, | ||
| 36 | -- | ||
| 37 | 2.39.4 | ||
diff --git a/meta-oe/recipes-support/udisks/udisks2_2.9.4.bb b/meta-oe/recipes-support/udisks/udisks2_2.9.4.bb index 10d564658c..979b0efae7 100644 --- a/meta-oe/recipes-support/udisks/udisks2_2.9.4.bb +++ b/meta-oe/recipes-support/udisks/udisks2_2.9.4.bb | |||
| @@ -18,7 +18,9 @@ DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | |||
| 18 | RDEPENDS:${PN} = "acl" | 18 | RDEPENDS:${PN} = "acl" |
| 19 | 19 | ||
| 20 | SRC_URI = "git://github.com/storaged-project/udisks.git;branch=2.9.x-branch;protocol=https \ | 20 | SRC_URI = "git://github.com/storaged-project/udisks.git;branch=2.9.x-branch;protocol=https \ |
| 21 | file://CVE-2025-6019.patch " | 21 | file://CVE-2025-6019.patch \ |
| 22 | file://CVE-2025-8067.patch " | ||
| 23 | |||
| 22 | SRCREV = "001c486e6d099ed33e2de4f5c73c03e3ee180f81" | 24 | SRCREV = "001c486e6d099ed33e2de4f5c73c03e3ee180f81" |
| 23 | S = "${WORKDIR}/git" | 25 | S = "${WORKDIR}/git" |
| 24 | 26 | ||
