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