diff mbox series

[wrynose,7/8] cups: Fix CVE-2026-107886

Message ID 20261120105720.2197092-8-asparmar@cisco.com
State New
Headers show
Series cups: backport eight CVE fixes (2026-11-20) | expand

Commit Message

From: Ashishkumar Parmar <asparmar@cisco.com>

This patch applies the upstream fix referenced in [2], using the commit
shown in [1].

[1] https://github.com/OpenPrinting/cups/commit/13bc9d4f8d695403d54469cc3c8b675e34a7037f
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-pwg4-pv39-8c22

Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
diff mbox series

Patch

diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index 6605236049..547a129ce4 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -31,6 +31,7 @@  SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
            file://CVE-2026-61702.patch \
            file://CVE-2026-107888.patch \
            file://CVE-2026-107890.patch \
+           file://CVE-2026-107886.patch \
            "
 
 GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-107886.patch b/meta/recipes-extended/cups/cups/CVE-2026-107886.patch
new file mode 100644
index 0000000000..87c12de6bf
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-107886.patch
@@ -0,0 +1,44 @@ 
+From e1ceac96617dddf48089ea1c06553d778f1f9eba Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Mon, 5 Oct 2026 10:35:38 -0400
+Subject: [PATCH] Initialize printers array to NULL after freeing
+ (GHSA-pwg4-pv39-8c22)
+
+CVE: CVE-2026-107886
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/13bc9d4f8d695403d54469cc3c8b675e34a7037f]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md      | 2 ++
+ scheduler/ipp.c | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index cbeaf841..0142ab12 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -9,6 +9,8 @@ Changes in CUPS v2.4.16 (2025-12-04)
+   (GHSA-qqm8-4q5h-jg55)
+ - SECURITY-3.3: The scheduler did not filter out group separators from job
+   submissions (GHSA-wjc4-qhjr-5m5x)
++- SECURITY-2.3: The scheduler could crash when modifying a class
++  (GHSA-pwg4-pv39-8c22)
+ - CVE-2026-27447: The scheduler treated local user and group names as case-
+   insensitive.
+ - Fixed cupsd crash if user does not exist (Issue #1555)
+diff --git a/scheduler/ipp.c b/scheduler/ipp.c
+index 8ea32d4b..35d095c4 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -980,6 +980,8 @@ add_class(cupsd_client_t  *con,		/* I - Client connection */
+     if (pclass->num_printers > 0)
+     {
+       free(pclass->printers);
++
++      pclass->printers     = NULL;
+       pclass->num_printers = 0;
+     }
+ 
+-- 
+2.35.6
+