diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2024-05-08 12:24:55 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-05-16 05:22:09 -0700 |
| commit | e0fdd6f40a5266b9607ac8e7425a4491a49c5fe6 (patch) | |
| tree | ee900f2469f53a0e024f3fa3de21e9226e696339 | |
| parent | 445c60a484f33d200e2890b4a174b436cd2f969e (diff) | |
| download | poky-e0fdd6f40a5266b9607ac8e7425a4491a49c5fe6.tar.gz | |
xserver-xorg: fix CVE-2024-31082
(From OE-Core rev: 32fc43f0c3c5481b2c38c2136706758dba054b6e)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch | 52 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.8.bb | 1 |
2 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch new file mode 100644 index 0000000000..81d76977bb --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2024-31082.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 6c684d035c06fd41c727f0ef0744517580864cef Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alan Coopersmith <alan.coopersmith@oracle.com> | ||
| 3 | Date: Fri, 22 Mar 2024 19:07:34 -0700 | ||
| 4 | Subject: [PATCH] Xquartz: ProcAppleDRICreatePixmap needs to use unswapped | ||
| 5 | length to send reply | ||
| 6 | |||
| 7 | CVE-2024-31082 | ||
| 8 | |||
| 9 | Fixes: 14205ade0 ("XQuartz: appledri: Fix byte swapping in replies") | ||
| 10 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | ||
| 11 | Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1463> | ||
| 12 | |||
| 13 | CVE: CVE-2024-31082 | ||
| 14 | |||
| 15 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/6c684d035c06fd4] | ||
| 16 | |||
| 17 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 18 | --- | ||
| 19 | hw/xquartz/xpr/appledri.c | 4 +++- | ||
| 20 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/hw/xquartz/xpr/appledri.c b/hw/xquartz/xpr/appledri.c | ||
| 23 | index 7757465..40422b6 100644 | ||
| 24 | --- a/hw/xquartz/xpr/appledri.c | ||
| 25 | +++ b/hw/xquartz/xpr/appledri.c | ||
| 26 | @@ -272,6 +272,7 @@ ProcAppleDRICreatePixmap(ClientPtr client) | ||
| 27 | xAppleDRICreatePixmapReply rep; | ||
| 28 | int width, height, pitch, bpp; | ||
| 29 | void *ptr; | ||
| 30 | + CARD32 stringLength; | ||
| 31 | |||
| 32 | REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq); | ||
| 33 | |||
| 34 | @@ -307,6 +308,7 @@ ProcAppleDRICreatePixmap(ClientPtr client) | ||
| 35 | if (sizeof(rep) != sz_xAppleDRICreatePixmapReply) | ||
| 36 | ErrorF("error sizeof(rep) is %zu\n", sizeof(rep)); | ||
| 37 | |||
| 38 | + stringLength = rep.stringLength; /* save unswapped value */ | ||
| 39 | if (client->swapped) { | ||
| 40 | swaps(&rep.sequenceNumber); | ||
| 41 | swapl(&rep.length); | ||
| 42 | @@ -319,7 +321,7 @@ ProcAppleDRICreatePixmap(ClientPtr client) | ||
| 43 | } | ||
| 44 | |||
| 45 | WriteToClient(client, sizeof(rep), &rep); | ||
| 46 | - WriteToClient(client, rep.stringLength, path); | ||
| 47 | + WriteToClient(client, stringLength, path); | ||
| 48 | |||
| 49 | return Success; | ||
| 50 | } | ||
| 51 | -- | ||
| 52 | 2.40.0 | ||
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 b9eed92103..0a8cb7d81a 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 | |||
| @@ -18,6 +18,7 @@ SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.pat | |||
| 18 | file://CVE-2024-0409.patch \ | 18 | file://CVE-2024-0409.patch \ |
| 19 | file://CVE-2024-31080.patch \ | 19 | file://CVE-2024-31080.patch \ |
| 20 | file://CVE-2024-31081.patch \ | 20 | file://CVE-2024-31081.patch \ |
| 21 | file://CVE-2024-31082.patch \ | ||
| 21 | " | 22 | " |
| 22 | SRC_URI[sha256sum] = "38aadb735650c8024ee25211c190bf8aad844c5f59632761ab1ef4c4d5aeb152" | 23 | SRC_URI[sha256sum] = "38aadb735650c8024ee25211c190bf8aad844c5f59632761ab1ef4c4d5aeb152" |
| 23 | 24 | ||
