diff mbox series

[scarthgap,6/8] cups: Fix CVE-2026-107890

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

Commit Message

From: Ashishkumar Parmar <asparmar@cisco.com>

This patch applies the upstream 2.4.x fix for CVE-2026-107890 to
CUPS 2.4.11. The fixing commit is referenced in [1], and the public
advisory is referenced in [2].

[1] https://github.com/OpenPrinting/cups/commit/f3fb41912e4e29dbbbe7c4afd4fe48508af21bc0
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-wjc4-qhjr-5m5x

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 a28080f053..2b8f96b189 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -37,6 +37,7 @@  SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
            file://CVE-2026-55480.patch \
            file://CVE-2026-61702.patch \
            file://CVE-2026-107888.patch \
+           file://CVE-2026-107890.patch \
            "
 
 GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-107890.patch b/meta/recipes-extended/cups/cups/CVE-2026-107890.patch
new file mode 100644
index 0000000000..2e7d8433d2
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-107890.patch
@@ -0,0 +1,41 @@ 
+From bb1e6f1be6c2d73b26c2334e4dae73390cd31e52 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Thu, 1 Oct 2026 17:19:28 -0400
+Subject: [PATCH] Filter out group separators in job creation requests
+ (GHSA-wjc4-qhjr-5m5x)
+
+CVE: CVE-2026-107890
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/f3fb41912e4e29dbbbe7c4afd4fe48508af21bc0]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md      | 2 ++
+ scheduler/ipp.c | 2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index 833021a203..580b557b44 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -11,6 +11,8 @@ Changes in CUPS v2.4.11 (2024-09-30)
+   mode.
+ - SECURITY-4.1: Held jobs for temporary print queues could crash the scheduler
+   (GHSA-qqm8-4q5h-jg55)
++- SECURITY-3.3: The scheduler did not filter out group separators from job
++  submissions (GHSA-wjc4-qhjr-5m5x)
+ - 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 6a62382cd5..239454f069 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -2112,7 +2112,7 @@ add_job_subscriptions(
+   {
+     next = attr->next;
+ 
+-    if (attr->group_tag == IPP_TAG_SUBSCRIPTION ||
++    if (!attr->name || attr->group_tag == IPP_TAG_SUBSCRIPTION ||
+         attr->group_tag == IPP_TAG_ZERO)
+     {
+      /*