@@ -32,6 +32,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,102 @@
+From a927cd66e7c20e72919481b10076b107a802295e 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 0142ab12..56b047d7 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -11,6 +11,8 @@ Changes in CUPS v2.4.16 (2025-12-04)
+ 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)
+ - 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 35d095c4..8e08b57c 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -5265,7 +5265,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 b688c342..50a003e0 100644
+--- a/scheduler/job.c
++++ b/scheduler/job.c
+@@ -287,17 +287,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;
+@@ -306,7 +308,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 b4820861..47ea2d67 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
+