@@ -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"
new file mode 100644
@@ -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
+