diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-07-03 15:53:51 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-07-09 08:23:23 -0700 |
| commit | 5e6e115925fa256356682cdd2c0efaa864bf247f (patch) | |
| tree | 78c3236b0139202cbef14dfd6958eac7dd555b68 | |
| parent | 4d49fa26199370bb972646426afb4db5b05d68a2 (diff) | |
| download | poky-5e6e115925fa256356682cdd2c0efaa864bf247f.tar.gz | |
xwayland: fix CVE-2025-49177
A flaw was found in the XFIXES extension. The XFixesSetClientDisconnectMode handler
does not validate the request length, allowing a client to read unintended memory
from previous requests
(From OE-Core rev: 89dde7f86e1c2e61ed71ecf92e908dbe402a2668)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch | 55 | ||||
| -rw-r--r-- | meta/recipes-graphics/xwayland/xwayland_22.1.8.bb | 1 |
2 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch new file mode 100644 index 0000000000..56ae1de800 --- /dev/null +++ b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | From ab02fb96b1c701c3bb47617d965522c34befa6af Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Olivier Fourdan <ofourdan@redhat.com> | ||
| 3 | Date: Mon, 28 Apr 2025 10:05:36 +0200 | ||
| 4 | Subject: [PATCH] xfixes: Check request length for SetClientDisconnectMode | ||
| 5 | |||
| 6 | The handler of XFixesSetClientDisconnectMode does not check the client | ||
| 7 | request length. | ||
| 8 | |||
| 9 | A client could send a shorter request and read data from a former | ||
| 10 | request. | ||
| 11 | |||
| 12 | Fix the issue by checking the request size matches. | ||
| 13 | |||
| 14 | CVE-2025-49177 | ||
| 15 | |||
| 16 | This issue was discovered by Nils Emmerich <nemmerich@ernw.de> and | ||
| 17 | reported by Julian Suleder via ERNW Vulnerability Disclosure. | ||
| 18 | |||
| 19 | Fixes: e167299f6 - xfixes: Add ClientDisconnectMode | ||
| 20 | Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> | ||
| 21 | Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> | ||
| 22 | Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2024> | ||
| 23 | |||
| 24 | CVE: CVE-2025-49177 | ||
| 25 | |||
| 26 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/ab02fb96b1c701c3bb47617d965522c34befa6af] | ||
| 27 | |||
| 28 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 29 | --- | ||
| 30 | xfixes/disconnect.c | 3 ++- | ||
| 31 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 32 | |||
| 33 | diff --git a/xfixes/disconnect.c b/xfixes/disconnect.c | ||
| 34 | index 28aac45..d6da1f9 100644 | ||
| 35 | --- a/xfixes/disconnect.c | ||
| 36 | +++ b/xfixes/disconnect.c | ||
| 37 | @@ -67,6 +67,7 @@ ProcXFixesSetClientDisconnectMode(ClientPtr client) | ||
| 38 | ClientDisconnectPtr pDisconnect = GetClientDisconnect(client); | ||
| 39 | |||
| 40 | REQUEST(xXFixesSetClientDisconnectModeReq); | ||
| 41 | + REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq); | ||
| 42 | |||
| 43 | pDisconnect->disconnect_mode = stuff->disconnect_mode; | ||
| 44 | |||
| 45 | @@ -80,7 +81,7 @@ SProcXFixesSetClientDisconnectMode(ClientPtr client) | ||
| 46 | |||
| 47 | swaps(&stuff->length); | ||
| 48 | |||
| 49 | - REQUEST_AT_LEAST_SIZE(xXFixesSetClientDisconnectModeReq); | ||
| 50 | + REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq); | ||
| 51 | |||
| 52 | swapl(&stuff->disconnect_mode); | ||
| 53 | |||
| 54 | -- | ||
| 55 | 2.40.0 | ||
diff --git a/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb b/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb index 40f010865e..fefc0d4e3a 100644 --- a/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb +++ b/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb | |||
| @@ -46,6 +46,7 @@ SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz \ | |||
| 46 | file://CVE-2025-49175.patch \ | 46 | file://CVE-2025-49175.patch \ |
| 47 | file://CVE-2025-49176-0001.patch \ | 47 | file://CVE-2025-49176-0001.patch \ |
| 48 | file://CVE-2025-49176-0002.patch \ | 48 | file://CVE-2025-49176-0002.patch \ |
| 49 | file://CVE-2025-49177.patch \ | ||
| 49 | " | 50 | " |
| 50 | SRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73" | 51 | SRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73" |
| 51 | 52 | ||
