TigerVNC CVEs
cover TigerVNC CVEs
This patch-series looks straightforward, but unfortunately this is not the case, at least policy-wise.
Trying to be short. TigerVNC compiles its own Xserver, not the one from oe-core.
This series:
-Update xserver to latest dot release of 1.20.x series
-Add patches to all outstanding CVEs that are associated with TigerVNC -There are unpatched CVEs which are not associated with TigerVNC -This xserver version is different from the one in oe-core -Complies with stable-branch policy
Alternative:
-Cherry-Pick some patches from master[1]
-The xserver version jump would be a major one (1.20.x -> 21.x) -It would get TigerVNC's xserver in sync with oe-core's xserver -Have all known xserver fixes without carrying patches
-One might argue that this ship has sailed when Scarthgap was branched off
The same problem is present in Kirkstone also - whatever happens in Scarthgap will be cherry-picked in Kirkstone also.
Anyone has any input on this? I'm especially hoping that some TigerVNC users will see this, but I'm happy for all feedback.
Thank you
[1]: https://git.openembedded.org/meta-openembedded/log/meta-oe/recipes-graphics/tigervnc - patches between 2025-11-24 and 2025-12-25
--
Gyorgy Sarvari (14):
tigervnc: upgrade xorg-server component
tigervnc: ignore CVE-2014-8241
tigervnc: patch CVE-2023-6377
tigervnc: patch CVE-2023-6478
tigervnc: patch CVE-2024-0408
tigervnc: patch CVE-2024-0409
tigervnc: patch CVE-2025-26594
tigervnc: patch CVE-2025-26595
tigervnc: patch CVE-2025-26596
tigervnc: patch CVE-2025-26597
tigervnc: patch CVE-2025-26598
tigervnc: patch CVE-2025-26599
tigervnc: patch CVE-2025-26600
tigervnc: patch CVE-2025-26601
.../tigervnc/files/CVE-2023-6377.patch | 80 +++++++++++ .../tigervnc/files/CVE-2023-6478.patch | 65 +++++++++ .../tigervnc/files/CVE-2024-0408.patch | 65 +++++++++ .../tigervnc/files/CVE-2024-0409.patch | 47 ++++++ .../tigervnc/files/CVE-2025-26594-1.patch | 60 ++++++++ .../tigervnc/files/CVE-2025-26594-2.patch | 53 +++++++ .../tigervnc/files/CVE-2025-26595.patch | 67 +++++++++ .../tigervnc/files/CVE-2025-26596.patch | 51 +++++++ .../tigervnc/files/CVE-2025-26597.patch | 48 +++++++ .../tigervnc/files/CVE-2025-26598.patch | 122 ++++++++++++++++ .../tigervnc/files/CVE-2025-26599-1.patch | 69 +++++++++ .../tigervnc/files/CVE-2025-26599-2.patch | 131 +++++++++++++++++ .../tigervnc/files/CVE-2025-26600.patch | 70 +++++++++ .../tigervnc/files/CVE-2025-26601-1.patch | 73 ++++++++++ .../tigervnc/files/CVE-2025-26601-2.patch | 87 ++++++++++++ .../tigervnc/files/CVE-2025-26601-3.patch | 54 +++++++ .../tigervnc/files/CVE-2025-26601-4.patch | 134 ++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 27 +++- 18 files changed, 1299 insertions(+), 4 deletions(-) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2023-6377.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2023-6478.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2024-0408.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2024-0409.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26594-1.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26594-2.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26595.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26596.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26597.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26598.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26599-1.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26599-2.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26600.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-1.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-2.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-3.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-4.patch
RFC PATCH 1/14 tigervnc: upgrade xorg-server component
Update xserver to the latest dot version of the used series.
--- meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +4 -4
@@ -25,11 +25,11 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht # Keep sync with xorg-server in oe-core XORG_PN ?= "xorg-server" -XORG_PV ?= "1.20.6" -SRC_URI += "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${XORG_PV}.tar.bz2;name=xorg" +XORG_PV ?= "1.20.14" +SRC_URI += "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${XORG_PV}.tar.xz;name=xorg" XORG_S = "${WORKDIR}/${XORG_PN}-${XORG_PV}" -SRC_URI[xorg.md5sum] = "a98170084f2c8fed480d2ff601f8a14b" -SRC_URI[xorg.sha256sum] = "6316146304e6e8a36d5904987ae2917b5d5b195dc9fc63d67f7aca137e5a51d1" +SRC_URI[xorg.md5sum] = "46f571adb51ebadb6981bc25d771f2b9" +SRC_URI[xorg.sha256sum] = "5cc5b70b9be89443e2594b93656c60bd5e82cd7f01deb4ce4faf81dcf546a16b" # It is the directory containing the Xorg source for the # machine on which you are building TigerVNC.
RFC PATCH 2/14 tigervnc: ignore CVE-2014-8241
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2014-8241
The vulnerability is about a potential null-pointer dereference, because of a malloc result is not verified[1].
The vulnerable code has been refactored since completely[2], and the code isn't present anymore in the codebase.
[1]: https://github.com/TigerVNC/tigervnc/issues/993#issuecomment-612874972 - attachment [2]: https://github.com/TigerVNC/tigervnc/commit/b8a24f055f1a29886d8b18bb3f0902144dc5bd14
Fixed typo in CVE ID.
--- meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +2 -0
@@ -131,3 +131,5 @@ FILES:${PN} += " \ " FILES:${PN}-dbg += "${libdir}/xorg/modules/extensions/.debug" + +CVE_STATUS[CVE-2014-8241] = "fixed-version: The vulnerable code is not present in the used version (1.11.0)"
RFC PATCH 3/14 tigervnc: patch CVE-2023-6377
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2023-6377
Pick the backported version of the patch that is referenced by the NVD advisory.
--- .../tigervnc/files/CVE-2023-6377.patch | 80 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 81 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2023-6377.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2023-6377.patch new file +80 -0
@@ -0,0 +1,80 @@ +From 7eb0da0f29e975f67a5bef4560759672b84c7d22 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Tue, 28 Nov 2023 15:19:04 +1000 +Subject: [PATCH] Xi: allocate enough XkbActions for our buttons + +From: Peter Hutterer <[email protected]> + +button->xkb_acts is supposed to be an array sufficiently large for all +our buttons, not just a single XkbActions struct. Allocating +insufficient memory here means when we memcpy() later in +XkbSetDeviceInfo we write into memory that wasn't ours to begin with, +leading to the usual security ooopsiedaisies. + +CVE-2023-6377, ZDI-CAN-22412, ZDI-CAN-22413 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +(cherry picked from commit 0c1a93d319558fe3ab2d94f51d174b4f93810afd) + +CVE: CVE-2023-6377 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/0c1a93d319558fe3ab2d94f51d174b4f93810afd] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + Xi/exevents.c | 12 ++++++------ + dix/devices.c | 10 ++++++++++ + 2 files changed, 16 insertions(+), 6 deletions(-) + +diff --git a/Xi/exevents.c b/Xi/exevents.c +index 659816a46..fb6db8561 100644 +--- a/Xi/exevents.c ++++ b/Xi/exevents.c +@@ -567,13 +567,13 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr to) + } + + if (from->button->xkb_acts) { +- if (!to->button->xkb_acts) { +- to->button->xkb_acts = calloc(1, sizeof(XkbAction)); +- if (!to->button->xkb_acts) +- FatalError("[Xi] not enough memory for xkb_acts.\n"); +- } ++ size_t maxbuttons = max(to->button->numButtons, from->button->numButtons); ++ to->button->xkb_acts = xnfreallocarray(to->button->xkb_acts, ++ maxbuttons, ++ sizeof(XkbAction)); ++ memset(to->button->xkb_acts, 0, maxbuttons * sizeof(XkbAction)); + memcpy(to->button->xkb_acts, from->button->xkb_acts, +- sizeof(XkbAction)); ++ from->button->numButtons * sizeof(XkbAction)); + } + else + free(to->button->xkb_acts); +diff --git a/dix/devices.c b/dix/devices.c +index e7c74d7b7..7776498f8 100644 +--- a/dix/devices.c ++++ b/dix/devices.c +@@ -2502,6 +2502,8 @@ RecalculateMasterButtons(DeviceIntPtr slave) + + if (master->button && master->button->numButtons != maxbuttons) { + int i; ++ int last_num_buttons = master->button->numButtons; ++ + DeviceChangedEvent event = { + .header = ET_Internal, + .type = ET_DeviceChanged, +@@ -2512,6 +2514,14 @@ RecalculateMasterButtons(DeviceIntPtr slave) + }; + + master->button->numButtons = maxbuttons; ++ if (last_num_buttons < maxbuttons) { ++ master->button->xkb_acts = xnfreallocarray(master->button->xkb_acts, ++ maxbuttons, ++ sizeof(XkbAction)); ++ memset(&master->button->xkb_acts[last_num_buttons], ++ 0, ++ (maxbuttons - last_num_buttons) * sizeof(XkbAction)); ++ } + + memcpy(&event.buttons.names, master->button->labels, maxbuttons * + sizeof(Atom));
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://0002-do-not-build-tests-sub-directory.patch \ file://0003-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch \ file://0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch \ + file://CVE-2023-6377.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 4/14 tigervnc: patch CVE-2023-6478
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2023-6478
Pick the backported version of the commit referenced by the NVD report.
--- .../tigervnc/files/CVE-2023-6478.patch | 65 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 66 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2023-6478.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2023-6478.patch new file +65 -0
@@ -0,0 +1,65 @@ +From a0952cc293c0fbda15e7519b1af9c1c2d3d9475f Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Mon, 27 Nov 2023 16:27:49 +1000 +Subject: [PATCH] randr: avoid integer truncation in length check of + ProcRRChange*Property + +From: Peter Hutterer <[email protected]> + +Affected are ProcRRChangeProviderProperty and ProcRRChangeOutputProperty. +See also xserver@8f454b79 where this same bug was fixed for the core +protocol and XI. + +This fixes an OOB read and the resulting information disclosure. + +Length calculation for the request was clipped to a 32-bit integer. With +the correct stuff->nUnits value the expected request size was +truncated, passing the REQUEST_FIXED_SIZE check. + +The server then proceeded with reading at least stuff->num_items bytes +(depending on stuff->format) from the request and stuffing whatever it +finds into the property. In the process it would also allocate at least +stuff->nUnits bytes, i.e. 4GB. + +CVE-2023-6478, ZDI-CAN-22561 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +(cherry picked from commit 14f480010a93ff962fef66a16412fafff81ad632) +(cherry picked from commit 58e83c683950ac9e253ab05dd7a13a8368b70a3c) + +CVE: CVE-2023-6478 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/58e83c683950ac9e253ab05dd7a13a8368b70a3c] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + randr/rrproperty.c | 2 +- + randr/rrproviderproperty.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/randr/rrproperty.c b/randr/rrproperty.c +index c2fb9585c..1fb89e67e 100644 +--- a/randr/rrproperty.c ++++ b/randr/rrproperty.c +@@ -530,7 +530,7 @@ ProcRRChangeOutputProperty(ClientPtr client) + char format, mode; + unsigned long len; + int sizeInBytes; +- int totalSize; ++ uint64_t totalSize; + int err; + + REQUEST_AT_LEAST_SIZE(xRRChangeOutputPropertyReq); +diff --git a/randr/rrproviderproperty.c b/randr/rrproviderproperty.c +index b79c17f9b..90c5a9a93 100644 +--- a/randr/rrproviderproperty.c ++++ b/randr/rrproviderproperty.c +@@ -498,7 +498,7 @@ ProcRRChangeProviderProperty(ClientPtr client) + char format, mode; + unsigned long len; + int sizeInBytes; +- int totalSize; ++ uint64_t totalSize; + int err; + + REQUEST_AT_LEAST_SIZE(xRRChangeProviderPropertyReq);
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://0003-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch \ file://0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch \ file://CVE-2023-6377.patch;patchdir=${XORG_S} \ + file://CVE-2023-6478.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 5/14 tigervnc: patch CVE-2024-0408
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2024-0408
Pick the patch that explicitly mentions this vulnerability ID in it's commit message.
--- .../tigervnc/files/CVE-2024-0408.patch | 65 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 66 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2024-0408.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2024-0408.patch new file +65 -0
@@ -0,0 +1,65 @@ +From b4ef18cf118aa92266665009fa3edf9c03253d8a Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Wed, 6 Dec 2023 12:09:41 +0100 +Subject: [PATCH] glx: Call XACE hooks on the GLX buffer + +From: Olivier Fourdan <[email protected]> + +The XSELINUX code will label resources at creation by checking the +access mode. When the access mode is DixCreateAccess, it will call the +function to label the new resource SELinuxLabelResource(). + +However, GLX buffers do not go through the XACE hooks when created, +hence leaving the resource actually unlabeled. + +When, later, the client tries to create another resource using that +drawable (like a GC for example), the XSELINUX code would try to use +the security ID of that object which has never been labeled, get a NULL +pointer and crash when checking whether the requested permissions are +granted for subject security ID. + +To avoid the issue, make sure to call the XACE hooks when creating the +GLX buffers. + +Credit goes to Donn Seeley <[email protected]> for providing the patch. + +CVE-2024-0408 + +Signed-off-by: Olivier Fourdan <[email protected]> +Acked-by: Peter Hutterer <[email protected]> +(cherry picked from commit e5e8586a12a3ec915673edffa10dc8fe5e15dac3) +(cherry picked from commit 8d825f72da71d6c38cbb02cf2ee2dd9e0e0f50f2) + +CVE: CVE-2024-0408 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/8d825f72da71d6c38cbb02cf2ee2dd9e0e0f50f2] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + glx/glxcmds.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/glx/glxcmds.c b/glx/glxcmds.c +index c82ce2c78..f493252cb 100644 +--- a/glx/glxcmds.c ++++ b/glx/glxcmds.c +@@ -48,6 +48,7 @@ + #include "indirect_util.h" + #include "protocol-versions.h" + #include "glxvndabi.h" ++#include "xace.h" + + static char GLXServerVendorName[] = "SGI"; + +@@ -1379,6 +1380,13 @@ DoCreatePbuffer(ClientPtr client, int screenNum, XID fbconfigId, + if (!pPixmap) + return BadAlloc; + ++ err = XaceHook(XACE_RESOURCE_ACCESS, client, glxDrawableId, RT_PIXMAP, ++ pPixmap, RT_NONE, NULL, DixCreateAccess); ++ if (err != Success) { ++ (*pGlxScreen->pScreen->DestroyPixmap) (pPixmap); ++ return err; ++ } ++ + /* Assign the pixmap the same id as the pbuffer and add it as a + * resource so it and the DRI2 drawable will be reclaimed when the + * pbuffer is destroyed. */
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -23,6 +23,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch \ file://CVE-2023-6377.patch;patchdir=${XORG_S} \ file://CVE-2023-6478.patch;patchdir=${XORG_S} \ + file://CVE-2024-0408.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 6/14 tigervnc: patch CVE-2024-0409
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2024-0409
Pick the patch that explicitly refers to this CVE ID in its commit message.
--- .../tigervnc/files/CVE-2024-0409.patch | 47 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2024-0409.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2024-0409.patch new file +47 -0
@@ -0,0 +1,47 @@ +From 7018d3738102529f23904d62d7187430d2d2a281 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Wed, 6 Dec 2023 11:51:56 +0100 +Subject: [PATCH] ephyr,xwayland: Use the proper private key for cursor + +From: Olivier Fourdan <[email protected]> + +The cursor in DIX is actually split in two parts, the cursor itself and +the cursor bits, each with their own devPrivates. + +The cursor itself includes the cursor bits, meaning that the cursor bits +devPrivates in within structure of the cursor. + +Both Xephyr and Xwayland were using the private key for the cursor bits +to store the data for the cursor, and when using XSELINUX which comes +with its own special devPrivates, the data stored in that cursor bits' +devPrivates would interfere with the XSELINUX devPrivates data and the +SELINUX security ID would point to some other unrelated data, causing a +crash in the XSELINUX code when trying to (re)use the security ID. + +CVE-2024-0409 + +Signed-off-by: Olivier Fourdan <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 2ef0f1116c65d5cb06d7b6d83f8a1aea702c94f7) +(cherry picked from commit a4f0e9466f3bc7073a8f0c28a581211c2d7adf0e) + +CVE: CVE-2024-0409 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/a4f0e9466f3bc7073a8f0c28a581211c2d7adf0e] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + hw/kdrive/ephyr/ephyrcursor.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hw/kdrive/ephyr/ephyrcursor.c b/hw/kdrive/ephyr/ephyrcursor.c +index f991899c5..3f192d034 100644 +--- a/hw/kdrive/ephyr/ephyrcursor.c ++++ b/hw/kdrive/ephyr/ephyrcursor.c +@@ -246,7 +246,7 @@ miPointerSpriteFuncRec EphyrPointerSpriteFuncs = { + Bool + ephyrCursorInit(ScreenPtr screen) + { +- if (!dixRegisterPrivateKey(&ephyrCursorPrivateKey, PRIVATE_CURSOR_BITS, ++ if (!dixRegisterPrivateKey(&ephyrCursorPrivateKey, PRIVATE_CURSOR, + sizeof(ephyrCursorRec))) + return FALSE; +
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2023-6377.patch;patchdir=${XORG_S} \ file://CVE-2023-6478.patch;patchdir=${XORG_S} \ file://CVE-2024-0408.patch;patchdir=${XORG_S} \ + file://CVE-2024-0409.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 7/14 tigervnc: patch CVE-2025-26594
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26594
Pick the patch that explicitly references this vulnerability ID in it message.
--- .../tigervnc/files/CVE-2025-26594-1.patch | 60 +++++++++++++++++++ .../tigervnc/files/CVE-2025-26594-2.patch | 53 ++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 2 + 3 files changed, 115 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26594-1.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26594-2.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26594-1.patch new file +60 -0
@@ -0,0 +1,60 @@ +From c5e22fddb236d0b5e452d9d535c51213d5231286 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Wed, 27 Nov 2024 11:27:05 +0100 +Subject: [PATCH 1/2] Cursor: Refuse to free the root cursor +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Olivier Fourdan <[email protected]> + +If a cursor reference count drops to 0, the cursor is freed. + +The root cursor however is referenced with a specific global variable, +and when the root cursor is freed, the global variable may still point +to freed memory. + +Make sure to prevent the rootCursor from being explicitly freed by a +client. + +CVE-2025-26594, ZDI-CAN-25544 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +v2: Explicitly forbid XFreeCursor() on the root cursor (Peter Hutterer +<[email protected]>) +v3: Return BadCursor instead of BadValue (Michel Dänzer +<[email protected]>) + +Signed-off-by: Olivier Fourdan <[email protected]> +Suggested-by: Peter Hutterer <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 01642f263f12becf803b19be4db95a4a83f94acc) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit 9e5ac777d0dfa9d4d78dd68558869489117c3f2c) + +CVE: CVE-2025-26594 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/9e5ac777d0dfa9d4d78dd68558869489117c3f2c] + +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + dix/dispatch.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/dix/dispatch.c b/dix/dispatch.c +index a33bfaa9e..9654c207e 100644 +--- a/dix/dispatch.c ++++ b/dix/dispatch.c +@@ -3039,6 +3039,10 @@ ProcFreeCursor(ClientPtr client) + rc = dixLookupResourceByType((void **) &pCursor, stuff->id, RT_CURSOR, + client, DixDestroyAccess); + if (rc == Success) { ++ if (pCursor == rootCursor) { ++ client->errorValue = stuff->id; ++ return BadCursor; ++ } + FreeResource(stuff->id, RT_NONE); + return Success; + }
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26594-2.patch new file +53 -0
53 lines not on this page · raw message
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +2 -0
@@ -25,6 +25,8 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2023-6478.patch;patchdir=${XORG_S} \ file://CVE-2024-0408.patch;patchdir=${XORG_S} \ file://CVE-2024-0409.patch;patchdir=${XORG_S} \ + file://CVE-2025-26594-1.patch;patchdir=${XORG_S} \ + file://CVE-2025-26594-2.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 8/14 tigervnc: patch CVE-2025-26595
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26595
Pick the patch that explicitly references the CVE ID in its commit message.
--- .../tigervnc/files/CVE-2025-26595.patch | 67 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 68 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26595.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26595.patch new file +67 -0
@@ -0,0 +1,67 @@ +From e50f21138e458bde06469502d196780eb07fc689 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Wed, 27 Nov 2024 14:41:45 +0100 +Subject: [PATCH] xkb: Fix buffer overflow in XkbVModMaskText() + +From: Olivier Fourdan <[email protected]> + +The code in XkbVModMaskText() allocates a fixed sized buffer on the +stack and copies the virtual mod name. + +There's actually two issues in the code that can lead to a buffer +overflow. + +First, the bound check mixes pointers and integers using misplaced +parenthesis, defeating the bound check. + +But even though, if the check fails, the data is still copied, so the +stack overflow will occur regardless. + +Change the logic to skip the copy entirely if the bound check fails. + +CVE-2025-26595, ZDI-CAN-25545 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +Signed-off-by: Olivier Fourdan <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 11fcda8753e994e15eb915d28cf487660ec8e722) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit ea526ccb20d222196494b2adf9da52dab68a8997) + +CVE: CVE-2025-26595 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/ea526ccb20d222196494b2adf9da52dab68a8997] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + xkb/xkbtext.c | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c +index d2a2567fc..002626450 100644 +--- a/xkb/xkbtext.c ++++ b/xkb/xkbtext.c +@@ -175,14 +175,14 @@ XkbVModMaskText(XkbDescPtr xkb, + len = strlen(tmp) + 1 + (str == buf ? 0 : 1); + if (format == XkbCFile) + len += 4; +- if ((str - (buf + len)) <= VMOD_BUFFER_SIZE) { +- if (str != buf) { +- if (format == XkbCFile) +- *str++ = '|'; +- else +- *str++ = '+'; +- len--; +- } ++ if ((str - buf) + len > VMOD_BUFFER_SIZE) ++ continue; /* Skip */ ++ if (str != buf) { ++ if (format == XkbCFile) ++ *str++ = '|'; ++ else ++ *str++ = '+'; ++ len--; + } + if (format == XkbCFile) + sprintf(str, "%sMask", tmp);
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2024-0409.patch;patchdir=${XORG_S} \ file://CVE-2025-26594-1.patch;patchdir=${XORG_S} \ file://CVE-2025-26594-2.patch;patchdir=${XORG_S} \ + file://CVE-2025-26595.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 9/14 tigervnc: patch CVE-2025-26596
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26596
Pick the patch that mentions the CVE ID explicitly in its commit message.
--- .../tigervnc/files/CVE-2025-26596.patch | 51 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 52 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26596.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26596.patch new file +51 -0
@@ -0,0 +1,51 @@ +From 2bc545d09abfe1e91cc15990232649ab8ce5c8b3 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Thu, 28 Nov 2024 11:49:34 +0100 +Subject: [PATCH] xkb: Fix computation of XkbSizeKeySyms + +From: Olivier Fourdan <[email protected]> + +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 <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 80d69f01423fc065c950e1ff4e8ddf9f675df773) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit b4293650b50efe7832cf9eac71217ad8d6341e02) + +CVE: CVE-2025-26596 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/b4293650b50efe7832cf9eac71217ad8d6341e02] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + xkb/xkb.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/xkb/xkb.c b/xkb/xkb.c +index 68c59df02..175a81bf7 100644 +--- a/xkb/xkb.c ++++ b/xkb/xkb.c +@@ -1093,10 +1093,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;
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -28,6 +28,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2025-26594-1.patch;patchdir=${XORG_S} \ file://CVE-2025-26594-2.patch;patchdir=${XORG_S} \ file://CVE-2025-26595.patch;patchdir=${XORG_S} \ + file://CVE-2025-26596.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 10/14 tigervnc: patch CVE-2025-26597
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26597
Pick the patch that explicitly mentions this CVE ID in its commit message.
--- .../tigervnc/files/CVE-2025-26597.patch | 48 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26597.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26597.patch new file +48 -0
@@ -0,0 +1,48 @@ +From ba8a4f0af806a1d078037f23c051253e9e2d7efb Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Thu, 28 Nov 2024 14:09:04 +0100 +Subject: [PATCH] xkb: Fix buffer overflow in XkbChangeTypesOfKey() + +From: Olivier Fourdan <[email protected]> + +If XkbChangeTypesOfKey() is called with nGroups == 0, it will resize the +key syms to 0 but leave the key actions unchanged. + +If later, the same function is called with a non-zero value for nGroups, +this will cause a buffer overflow because the key actions are of the wrong +size. + +To avoid the issue, make sure to resize both the key syms and key actions +when nGroups is 0. + +CVE-2025-26597, ZDI-CAN-25683 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +Signed-off-by: Olivier Fourdan <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 0e4ed94952b255c04fe910f6a1d9c852878dcd64) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit 8cb23fac62e05d7340e320b2db0dd3e8538d1fba) + +CVE: CVE-2025-26597 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/8cb23fac62e05d7340e320b2db0dd3e8538d1fba] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + xkb/XKBMisc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/xkb/XKBMisc.c b/xkb/XKBMisc.c +index f17194528..c45471686 100644 +--- a/xkb/XKBMisc.c ++++ b/xkb/XKBMisc.c +@@ -553,6 +553,7 @@ XkbChangeTypesOfKey(XkbDescPtr xkb, + i = XkbSetNumGroups(i, 0); + xkb->map->key_sym_map[key].group_info = i; + XkbResizeKeySyms(xkb, key, 0); ++ XkbResizeKeyActions(xkb, key, 0); + return Success; + } +
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2025-26594-2.patch;patchdir=${XORG_S} \ file://CVE-2025-26595.patch;patchdir=${XORG_S} \ file://CVE-2025-26596.patch;patchdir=${XORG_S} \ + file://CVE-2025-26597.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 11/14 tigervnc: patch CVE-2025-26598
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26598
Pick the patch that explicitly mentions the CVE ID in its commit message.
--- .../tigervnc/files/CVE-2025-26598.patch | 122 ++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 123 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26598.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26598.patch new file +122 -0
@@ -0,0 +1,122 @@ +From ad498de18aab5d1095b2005a9555c003860b92bd Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Mon, 16 Dec 2024 11:25:11 +0100 +Subject: [PATCH] Xi: Fix barrier device search + +From: Olivier Fourdan <[email protected]> + +The function GetBarrierDevice() would search for the pointer device +based on its device id and return the matching value, or supposedly NULL +if no match was found. + +Unfortunately, as written, it would return the last element of the list +if no matching device id was found which can lead to out of bounds +memory access. + +Fix the search function to return NULL if not matching device is found, +and adjust the callers to handle the case where the device cannot be +found. + +CVE-2025-26598, ZDI-CAN-25740 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +Signed-off-by: Olivier Fourdan <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit bba9df1a9d57234c76c0b93f88dacb143d01bca2) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit 32decb1efb89341881de8266f3dd1c3356981bfd) + +CVE: CVE-2025-26598 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/32decb1efb89341881de8266f3dd1c3356981bfd] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + Xi/xibarriers.c | 27 +++++++++++++++++++++++---- + 1 file changed, 23 insertions(+), 4 deletions(-) + +diff --git a/Xi/xibarriers.c b/Xi/xibarriers.c +index 1926762ad..cb336f22b 100644 +--- a/Xi/xibarriers.c ++++ b/Xi/xibarriers.c +@@ -129,14 +129,15 @@ static void FreePointerBarrierClient(struct PointerBarrierClient *c) + + static struct PointerBarrierDevice *GetBarrierDevice(struct PointerBarrierClient *c, int deviceid) + { +- struct PointerBarrierDevice *pbd = NULL; ++ struct PointerBarrierDevice *p, *pbd = NULL; + +- xorg_list_for_each_entry(pbd, &c->per_device, entry) { +- if (pbd->deviceid == deviceid) ++ xorg_list_for_each_entry(p, &c->per_device, entry) { ++ if (p->deviceid == deviceid) { ++ pbd = p; + break; ++ } + } + +- BUG_WARN(!pbd); + return pbd; + } + +@@ -337,6 +338,9 @@ barrier_find_nearest(BarrierScreenPtr cs, DeviceIntPtr dev, + double distance; + + pbd = GetBarrierDevice(c, dev->id); ++ if (!pbd) ++ continue; ++ + if (pbd->seen) + continue; + +@@ -445,6 +449,9 @@ input_constrain_cursor(DeviceIntPtr dev, ScreenPtr screen, + nearest = &c->barrier; + + pbd = GetBarrierDevice(c, master->id); ++ if (!pbd) ++ continue; ++ + new_sequence = !pbd->hit; + + pbd->seen = TRUE; +@@ -485,6 +492,9 @@ input_constrain_cursor(DeviceIntPtr dev, ScreenPtr screen, + int flags = 0; + + pbd = GetBarrierDevice(c, master->id); ++ if (!pbd) ++ continue; ++ + pbd->seen = FALSE; + if (!pbd->hit) + continue; +@@ -679,6 +689,9 @@ BarrierFreeBarrier(void *data, XID id) + continue; + + pbd = GetBarrierDevice(c, dev->id); ++ if (!pbd) ++ continue; ++ + if (!pbd->hit) + continue; + +@@ -738,6 +751,8 @@ static void remove_master_func(void *res, XID id, void *devid) + barrier = container_of(b, struct PointerBarrierClient, barrier); + + pbd = GetBarrierDevice(barrier, *deviceid); ++ if (!pbd) ++ return; + + if (pbd->hit) { + BarrierEvent ev = { +@@ -903,6 +918,10 @@ ProcXIBarrierReleasePointer(ClientPtr client) + barrier = container_of(b, struct PointerBarrierClient, barrier); + + pbd = GetBarrierDevice(barrier, dev->id); ++ if (!pbd) { ++ client->errorValue = dev->id; ++ return BadDevice; ++ } + + if (pbd->barrier_event_id == event_id) + pbd->release_event_id = event_id;
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2025-26595.patch;patchdir=${XORG_S} \ file://CVE-2025-26596.patch;patchdir=${XORG_S} \ file://CVE-2025-26597.patch;patchdir=${XORG_S} \ + file://CVE-2025-26598.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 12/14 tigervnc: patch CVE-2025-26599
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26599
Pick the patches that explicitly mention this CVE ID in their commit message.
--- .../tigervnc/files/CVE-2025-26599-1.patch | 69 +++++++++ .../tigervnc/files/CVE-2025-26599-2.patch | 131 ++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 2 + 3 files changed, 202 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26599-1.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26599-2.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26599-1.patch new file +69 -0
@@ -0,0 +1,69 @@ +From fe2822b8cf7fa104187838380419c6b2c300b24a Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Tue, 17 Dec 2024 15:19:45 +0100 +Subject: [PATCH 1/2] composite: Handle failure to redirect in + compRedirectWindow() + +From: Olivier Fourdan <[email protected]> + +The function compCheckRedirect() may fail if it cannot allocate the +backing pixmap. + +In that case, compRedirectWindow() will return a BadAlloc error. + +However that failure code path will shortcut the validation of the +window tree marked just before, which leaves the validate data partly +initialized. + +That causes a use of uninitialized pointer later. + +The fix is to not shortcut the call to compHandleMarkedWindows() even in +the case of compCheckRedirect() returning an error. + +CVE-2025-26599, ZDI-CAN-25851 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +Signed-off-by: Olivier Fourdan <[email protected]> +Acked-by: Peter Hutterer <[email protected]> +(cherry picked from commit c1ff84bef2569b4ba4be59323cf575d1798ba9be) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit 7169628a1715f8203665f9805c714ed111907914) + +CVE: CVE-2025-26599 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/7169628a1715f8203665f9805c714ed111907914] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + composite/compalloc.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/composite/compalloc.c b/composite/compalloc.c +index 3e2f14fb0..55a1b725a 100644 +--- a/composite/compalloc.c ++++ b/composite/compalloc.c +@@ -138,6 +138,7 @@ compRedirectWindow(ClientPtr pClient, WindowPtr pWin, int update) + CompScreenPtr cs = GetCompScreen(pWin->drawable.pScreen); + WindowPtr pLayerWin; + Bool anyMarked = FALSE; ++ int status = Success; + + if (pWin == cs->pOverlayWin) { + return Success; +@@ -216,13 +217,13 @@ compRedirectWindow(ClientPtr pClient, WindowPtr pWin, int update) + + if (!compCheckRedirect(pWin)) { + FreeResource(ccw->id, RT_NONE); +- return BadAlloc; ++ status = BadAlloc; + } + + if (anyMarked) + compHandleMarkedWindows(pWin, pLayerWin); + +- return Success; ++ return status; + } + + void
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26599-2.patch new file +131 -0
131 lines not on this page · raw message
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +2 -0
@@ -31,6 +31,8 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2025-26596.patch;patchdir=${XORG_S} \ file://CVE-2025-26597.patch;patchdir=${XORG_S} \ file://CVE-2025-26598.patch;patchdir=${XORG_S} \ + file://CVE-2025-26599-1.patch;patchdir=${XORG_S} \ + file://CVE-2025-26599-2.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 13/14 tigervnc: patch CVE-2025-26600
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26600
Pick the patch that explicitly mentions this CVE ID in its commit message.
--- .../tigervnc/files/CVE-2025-26600.patch | 70 +++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 1 + 2 files changed, 71 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26600.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26600.patch new file +70 -0
@@ -0,0 +1,70 @@ +From 4776fc7f70250df69cd1000196d08ba2c5e57894 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Mon, 16 Dec 2024 16:18:04 +0100 +Subject: [PATCH] dix: Dequeue pending events on frozen device on removal + +From: Olivier Fourdan <[email protected]> + +When a device is removed while still frozen, the events queued for that +device remain while the device itself is freed. + +As a result, replaying the events will cause a use after free. + +To avoid the issue, make sure to dequeue and free any pending events on +a frozen device when removed. + +CVE-2025-26600, ZDI-CAN-25871 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +Signed-off-by: Olivier Fourdan <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 6e0f332ba4c8b8c9a9945dc9d7989bfe06f80e14) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit 826cef825fe49a275deb28e85b8c714b697f5efa) + +CVE: CVE-2025-26600 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/826cef825fe49a275deb28e85b8c714b697f5efa] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + dix/devices.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/dix/devices.c b/dix/devices.c +index 7776498f8..deac30908 100644 +--- a/dix/devices.c ++++ b/dix/devices.c +@@ -949,6 +949,23 @@ FreeAllDeviceClasses(ClassesPtr classes) + + } + ++static void ++FreePendingFrozenDeviceEvents(DeviceIntPtr dev) ++{ ++ QdEventPtr qe, tmp; ++ ++ if (!dev->deviceGrab.sync.frozen) ++ return; ++ ++ /* Dequeue any frozen pending events */ ++ xorg_list_for_each_entry_safe(qe, tmp, &syncEvents.pending, next) { ++ if (qe->device == dev) { ++ xorg_list_del(&qe->next); ++ free(qe); ++ } ++ } ++} ++ + /** + * Close down a device and free all resources. + * Once closed down, the driver will probably not expect you that you'll ever +@@ -1013,6 +1030,7 @@ CloseDevice(DeviceIntPtr dev) + free(dev->last.touches[j].valuators); + free(dev->last.touches); + dev->config_info = NULL; ++ FreePendingFrozenDeviceEvents(dev); + dixFreePrivates(dev->devPrivates, PRIVATE_DEVICE); + free(dev); + }
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +1 -0
@@ -33,6 +33,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2025-26598.patch;patchdir=${XORG_S} \ file://CVE-2025-26599-1.patch;patchdir=${XORG_S} \ file://CVE-2025-26599-2.patch;patchdir=${XORG_S} \ + file://CVE-2025-26600.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
RFC PATCH 14/14 tigervnc: patch CVE-2025-26601
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-26601
Pick the patches that explicitly mention the CVE ID in their commit messages.
--- .../tigervnc/files/CVE-2025-26601-1.patch | 73 ++++++++++ .../tigervnc/files/CVE-2025-26601-2.patch | 87 ++++++++++++ .../tigervnc/files/CVE-2025-26601-3.patch | 54 +++++++ .../tigervnc/files/CVE-2025-26601-4.patch | 134 ++++++++++++++++++ .../tigervnc/tigervnc_1.11.0.bb | 4 + 5 files changed, 352 insertions(+) create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-1.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-2.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-3.patch create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-4.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-1.patch new file +73 -0
@@ -0,0 +1,73 @@ +From cdbf898b00c53929b6c262f2f089317a67743bc2 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari <[email protected]> +Date: Mon, 20 Jan 2025 16:52:01 +0100 +Subject: [PATCH 1/4] sync: Do not let sync objects uninitialized + +From: Olivier Fourdan <[email protected]> + +When changing an alarm, the change mask values are evaluated one after +the other, changing the trigger values as requested and eventually, +SyncInitTrigger() is called. + +SyncInitTrigger() will evaluate the XSyncCACounter first and may free +the existing sync object. + +Other changes are then evaluated and may trigger an error and an early +return, not adding the new sync object. + +This can be used to cause a use after free when the alarm eventually +triggers. + +To avoid the issue, delete the existing sync object as late as possible +only once we are sure that no further error will cause an early exit. + +CVE-2025-26601, ZDI-CAN-25870 + +This vulnerability was discovered by: +Jan-Niklas Sohn working with Trend Micro Zero Day Initiative + +Signed-off-by: Olivier Fourdan <[email protected]> +Reviewed-by: Peter Hutterer <[email protected]> +(cherry picked from commit 16a1242d0ffc7f45ed3c595ee7564b5c04287e0b) + +Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1830> +(cherry picked from commit e708ad021753d603580d314c48b93d3adf459c5f) + +CVE: CVE-2025-26601 +Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/e708ad021753d603580d314c48b93d3adf459c5f] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + Xext/sync.c | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +diff --git a/Xext/sync.c b/Xext/sync.c +index fd2ceb042..e55295904 100644 +--- a/Xext/sync.c ++++ b/Xext/sync.c +@@ -329,11 +329,6 @@ SyncInitTrigger(ClientPtr client, SyncTrigger * pTrigger, XID syncObject, + client->errorValue = syncObject; + return rc; + } +- if (pSync != pTrigger->pSync) { /* new counter for trigger */ +- SyncDeleteTriggerFromSyncObject(pTrigger); +- pTrigger->pSync = pSync; +- newSyncObject = TRUE; +- } + } + + /* if system counter, ask it what the current value is */ +@@ -401,6 +396,14 @@ SyncInitTrigger(ClientPtr client, SyncTrigger * pTrigger, XID syncObject, + } + } + ++ if (changes & XSyncCACounter) { ++ if (pSync != pTrigger->pSync) { /* new counter for trigger */ ++ SyncDeleteTriggerFromSyncObject(pTrigger); ++ pTrigger->pSync = pSync; ++ newSyncObject = TRUE; ++ } ++ } ++ + /* we wait until we're sure there are no errors before registering + * a new counter on a trigger + */
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-2.patch new file +87 -0
87 lines not on this page · raw message
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-3.patch new file +54 -0
54 lines not on this page · raw message
meta-oe/recipes-graphics/tigervnc/files/CVE-2025-26601-4.patch new file +134 -0
134 lines not on this page · raw message
meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb +4 -0
@@ -34,6 +34,10 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=ht file://CVE-2025-26599-1.patch;patchdir=${XORG_S} \ file://CVE-2025-26599-2.patch;patchdir=${XORG_S} \ file://CVE-2025-26600.patch;patchdir=${XORG_S} \ + file://CVE-2025-26601-1.patch;patchdir=${XORG_S} \ + file://CVE-2025-26601-2.patch;patchdir=${XORG_S} \ + file://CVE-2025-26601-3.patch;patchdir=${XORG_S} \ + file://CVE-2025-26601-4.patch;patchdir=${XORG_S} \ " # Keep sync with xorg-server in oe-core
Quoted 21 lines · Gyorgy Sarvari via lists.openembedded.org
This patch-series looks straightforward, but unfortunately this is not the case, at least policy-wise.
Trying to be short. TigerVNC compiles its own Xserver, not the one from oe-core.
This series:
(quoted diff) +0
-5-Update xserver to latest dot release of 1.20.x series -Add patches to all outstanding CVEs that are associated with TigerVNC -There are unpatched CVEs which are not associated with TigerVNC -This xserver version is different from the one in oe-core -Complies with stable-branch policyAlternative:
(quoted diff) +0
-5-Cherry-Pick some patches from master[1] -The xserver version jump would be a major one (1.20.x -> 21.x) -It would get TigerVNC's xserver in sync with oe-core's xserver -Have all known xserver fixes without carrying patches -One might argue that this ship has sailed when Scarthgap was branched off
Quoted 5 lines
The same problem is present in Kirkstone also - whatever happens in Scarthgap will be cherry-picked in Kirkstone also.
Anyone has any input on this? I'm especially hoping that some TigerVNC users will see this, but I'm happy for all feedback.
I think it should use the same version so it works. It should be considered as a bug in the recipe.
Thanks,
Anuj