diff mbox series

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

Message ID 20261120105720.2197092-7-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/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 2b63c448c6..6605236049 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -30,6 +30,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..df6d8b227a
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-107890.patch
@@ -0,0 +1,44 @@ 
+From 0179c09faa71c08e355352d3024ce021fc6f1803 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 cbea543e..cbeaf841 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -7,6 +7,8 @@ Changes in CUPS v2.4.16 (2025-12-04)
+ 
+ - 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)
+ - 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 0e44ec46..8ea32d4b 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -2124,7 +2124,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)
+     {
+      /*
+-- 
+2.35.6
+