@@ -38,6 +38,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,41 @@
+From 4572e242b33bc0ebc837fa262407ca1e508190a9 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 580b557b44..a89f0b62c0 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -13,6 +13,8 @@ Changes in CUPS v2.4.11 (2024-09-30)
+ (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)
+ - Updated the maximum file descriptor limit for `cupsd` to 64k-1 (Issue #989)
+ - Fixed `lpoptions -d` with a discovered but not added printer (Issue #833)
+ - Fixed incorrect error message for HTTP/IPP errors (Issue #893)
+diff --git a/scheduler/ipp.c b/scheduler/ipp.c
+index 239454f069..b3acd1660c 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;
+ }
+