public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][scarthgap 06/16] xwayland: Fix CVE-2025-26596
Date: Wed,  5 Mar 2025 14:11:05 -0800	[thread overview]
Message-ID: <ea9aac48ff4bc25e79b17c63b425a705c97f078d.1741206348.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1741206348.git.steve@sakoman.com>

From: Vijay Anusuri <vanusuri@mvista.com>

Upstream-Status: Backport from https://gitlab.freedesktop.org/xorg/xserver/-/commit/80d69f01

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 .../xwayland/xwayland/CVE-2025-26596.patch    | 49 +++++++++++++++++++
 .../xwayland/xwayland_23.2.5.bb               |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644 meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch

diff --git a/meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch
new file mode 100644
index 0000000000..f9df8d75ea
--- /dev/null
+++ b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch
@@ -0,0 +1,49 @@
+From 80d69f01423fc065c950e1ff4e8ddf9f675df773 Mon Sep 17 00:00:00 2001
+From: Olivier Fourdan <ofourdan@redhat.com>
+Date: Thu, 28 Nov 2024 11:49:34 +0100
+Subject: [PATCH] xkb: Fix computation of XkbSizeKeySyms
+
+The computation of the length in XkbSizeKeySyms() differs from what is
+actually written in XkbWriteKeySyms(), leading to a heap overflow.
+
+Fix the calculation in XkbSizeKeySyms() to match what kbWriteKeySyms()
+does.
+
+CVE-2025-26596, ZDI-CAN-25543
+
+This vulnerability was discovered by:
+Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
+
+Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
+Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
+Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1828>
+
+Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/80d69f01]
+CVE: CVE-2025-26596
+Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
+---
+ xkb/xkb.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/xkb/xkb.c b/xkb/xkb.c
+index 85659382da..744dba63d7 100644
+--- a/xkb/xkb.c
++++ b/xkb/xkb.c
+@@ -1095,10 +1095,10 @@ XkbSizeKeySyms(XkbDescPtr xkb, xkbGetMapReply * rep)
+     len = rep->nKeySyms * SIZEOF(xkbSymMapWireDesc);
+     symMap = &xkb->map->key_sym_map[rep->firstKeySym];
+     for (i = nSyms = 0; i < rep->nKeySyms; i++, symMap++) {
+-        if (symMap->offset != 0) {
+-            nSymsThisKey = XkbNumGroups(symMap->group_info) * symMap->width;
+-            nSyms += nSymsThisKey;
+-        }
++        nSymsThisKey = XkbNumGroups(symMap->group_info) * symMap->width;
++        if (nSymsThisKey == 0)
++            continue;
++        nSyms += nSymsThisKey;
+     }
+     len += nSyms * 4;
+     rep->totalSyms = nSyms;
+-- 
+GitLab
+
diff --git a/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb b/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
index 2215d2fe4d..63803a7a44 100644
--- a/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
+++ b/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
@@ -14,6 +14,7 @@ SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz \
            file://CVE-2025-26594-1.patch \
            file://CVE-2025-26594-2.patch \
            file://CVE-2025-26595.patch \
+           file://CVE-2025-26596.patch \
 "
 SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90"
 
-- 
2.43.0



  parent reply	other threads:[~2025-03-05 22:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-05 22:10 [OE-core][scarthgap 00/16] Patch review Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 01/16] openssh: Fix CVE-2025-26466 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 02/16] curl: ignore CVE-2025-0725 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 03/16] xwayland: Fix CVE-2024-9632 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 04/16] xwayland: Fix CVE-2025-26594 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 05/16] xwayland: Fix CVE-2025-26595 Steve Sakoman
2025-03-05 22:11 ` Steve Sakoman [this message]
2025-03-05 22:11 ` [OE-core][scarthgap 07/16] xwayland: Fix CVE-2025-26597 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 08/16] xwayland: Fix CVE-2025-26598 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 09/16] xwayland: Fix CVE-2025-26599 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 10/16] xwayland: Fix CVE-2025-26600 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 11/16] xwayland: Fix CVE-2025-26601 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 12/16] ffmpeg: fix CVE-2025-25473 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 13/16] ffmpeg: fix CVE-2025-25471 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 14/16] ffmpeg: fix CVE-2025-22921 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 15/16] ffmpeg: fix CVE-2025-0518 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 16/16] systemd: add libpcre2 as RRECOMMENDS if pcre2 is enabled Steve Sakoman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea9aac48ff4bc25e79b17c63b425a705c97f078d.1741206348.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox