diff options
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2025-49177.patch | 54 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb | 1 |
2 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2025-49177.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2025-49177.patch new file mode 100644 index 0000000000..d71d97d3c2 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2025-49177.patch | |||
| @@ -0,0 +1,54 @@ | |||
| 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 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/ab02fb96b1c701c3bb47617d965522c34befa6af] | ||
| 25 | CVE: CVE-2025-49177 | ||
| 26 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 27 | --- | ||
| 28 | xfixes/disconnect.c | 3 ++- | ||
| 29 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 30 | |||
| 31 | diff --git a/xfixes/disconnect.c b/xfixes/disconnect.c | ||
| 32 | index 7793272..209e3d8 100644 | ||
| 33 | --- a/xfixes/disconnect.c | ||
| 34 | +++ b/xfixes/disconnect.c | ||
| 35 | @@ -67,6 +67,7 @@ ProcXFixesSetClientDisconnectMode(ClientPtr client) | ||
| 36 | ClientDisconnectPtr pDisconnect = GetClientDisconnect(client); | ||
| 37 | |||
| 38 | REQUEST(xXFixesSetClientDisconnectModeReq); | ||
| 39 | + REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq); | ||
| 40 | |||
| 41 | pDisconnect->disconnect_mode = stuff->disconnect_mode; | ||
| 42 | |||
| 43 | @@ -80,7 +81,7 @@ SProcXFixesSetClientDisconnectMode(ClientPtr client) | ||
| 44 | |||
| 45 | swaps(&stuff->length); | ||
| 46 | |||
| 47 | - REQUEST_AT_LEAST_SIZE(xXFixesSetClientDisconnectModeReq); | ||
| 48 | + REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq); | ||
| 49 | |||
| 50 | swapl(&stuff->disconnect_mode); | ||
| 51 | |||
| 52 | -- | ||
| 53 | 2.25.1 | ||
| 54 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb index 6013d0e53c..1fceec89f7 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb | |||
| @@ -39,6 +39,7 @@ SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.pat | |||
| 39 | file://CVE-2025-49175.patch \ | 39 | file://CVE-2025-49175.patch \ |
| 40 | file://CVE-2025-49176-1.patch \ | 40 | file://CVE-2025-49176-1.patch \ |
| 41 | file://CVE-2025-49176-2.patch \ | 41 | file://CVE-2025-49176-2.patch \ |
| 42 | file://CVE-2025-49177.patch \ | ||
| 42 | " | 43 | " |
| 43 | SRC_URI[sha256sum] = "38aadb735650c8024ee25211c190bf8aad844c5f59632761ab1ef4c4d5aeb152" | 44 | SRC_URI[sha256sum] = "38aadb735650c8024ee25211c190bf8aad844c5f59632761ab1ef4c4d5aeb152" |
| 44 | 45 | ||
