From: "Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)" <asparmar@cisco.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][scarthgap][PATCH 8/8] cups: Fix CVE-2026-107885
Date: Tue, 24 Nov 2026 00:40:33 -0800 [thread overview]
Message-ID: <20261124084033.72286-9-asparmar@cisco.com> (raw)
In-Reply-To: <20261124084033.72286-1-asparmar@cisco.com>
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-107885 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/6c61d23f5523055ec4374465e85d1dec9396994f
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-hhw5-qqmc-p6rg
Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index fdf2f5db3b..13ac980f1b 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -39,6 +39,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-107888.patch \
file://CVE-2026-107890.patch \
file://CVE-2026-107886.patch \
+ file://CVE-2026-107885.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-107885.patch b/meta/recipes-extended/cups/cups/CVE-2026-107885.patch
new file mode 100644
index 0000000000..8bb9ba9a7c
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-107885.patch
@@ -0,0 +1,99 @@
+From 7aaf72330a7c567ca3d8e8e4f4dc34395e6b1b7a Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Tue, 6 Oct 2026 10:07:21 -0400
+Subject: [PATCH] Don't allow clients to hold a job open longer than the
+ multiple-operation-time-out value (GHSA-hhw5-qqmc-p6rg)
+
+CVE: CVE-2026-107885
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/6c61d23f5523055ec4374465e85d1dec9396994f]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md | 2 ++
+ scheduler/ipp.c | 2 +-
+ scheduler/job.c | 22 +++++++++++++---------
+ scheduler/job.h | 2 +-
+ 4 files changed, 17 insertions(+), 11 deletions(-)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index a89f0b62c0..0bcf5507ae 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -15,6 +15,8 @@ Changes in CUPS v2.4.11 (2024-09-30)
+ submissions (GHSA-wjc4-qhjr-5m5x)
+ - SECURITY-2.3: The scheduler could crash when modifying a class
+ (GHSA-pwg4-pv39-8c22)
++- SECURITY-3.3: The scheduler did not protect against malicious clients that
++ held multiple open print jobs (GHSA-hhw5-qqmc-p6rg)
+ - 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 b3acd1660c..bf32b12474 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -5243,7 +5243,7 @@ create_job(cupsd_client_t *con, /* I - Client connection */
+ if ((job = add_job(con, printer, NULL)) == NULL)
+ return;
+
+- job->pending_timeout = 1;
++ job->pending_timeout = time(NULL) + MultipleOperationTimeout;
+
+ /*
+ * Save and log the job...
+diff --git a/scheduler/job.c b/scheduler/job.c
+index 77e62a5af6..d1f8ca2608 100644
+--- a/scheduler/job.c
++++ b/scheduler/job.c
+@@ -291,17 +291,19 @@ cupsdCheckJobs(void)
+ * the job so we can start printing...
+ */
+
+- cupsd_client_t *con; /* Current client connection */
++ if (curtime < job->pending_timeout)
++ {
++ cupsd_client_t *con; /* Current client connection */
+
+- for (con = (cupsd_client_t *)cupsArrayFirst(Clients);
+- con;
+- con = (cupsd_client_t *)cupsArrayNext(Clients))
+- if (con->request &&
+- con->request->request.op.operation_id == IPP_SEND_DOCUMENT)
+- break;
++ for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients))
++ {
++ if (con->request && con->request->request.op.operation_id == IPP_SEND_DOCUMENT)
++ break;
++ }
+
+- if (con)
+- continue;
++ if (con)
++ continue;
++ }
+
+ if (cupsdTimeoutJob(job))
+ continue;
+@@ -310,7 +312,9 @@ cupsdCheckJobs(void)
+ cupsdLogJob(job, CUPSD_LOG_ERROR, "Job submission timed out.");
+ }
+ else
++ {
+ cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job hold expired.");
++ }
+ }
+
+ /*
+diff --git a/scheduler/job.h b/scheduler/job.h
+index 619353d1bb..c401c5b848 100644
+--- a/scheduler/job.h
++++ b/scheduler/job.h
+@@ -30,7 +30,7 @@ struct cupsd_job_s /**** Job request ****/
+ priority, /* Job priority */
+ dirty; /* Do we need to write the "c" file? */
+ ipp_jstate_t state_value; /* Cached job-state */
+- int pending_timeout;/* Non-zero if the job was created and
++ time_t pending_timeout;/* Non-zero if the job was created and
+ * waiting on files */
+ char *username; /* Printing user */
+ char *dest; /* Destination printer or class */
--
2.35.6
prev parent reply other threads:[~2026-11-24 8:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 8:40 [OE-core][scarthgap][PATCH 0/8] cups: backport eight CVE fixes (2026-11-24) Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 1/8] cups: Fix CVE-2026-55453 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 2/8] cups: Fix CVE-2026-55467 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 3/8] cups: Fix CVE-2026-55480 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 4/8] cups: Fix CVE-2026-61702 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 5/8] cups: Fix CVE-2026-107888 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 6/8] cups: Fix CVE-2026-107890 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 7/8] cups: Fix CVE-2026-107886 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124084033.72286-9-asparmar@cisco.com \
--to=asparmar@cisco.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox