* [OE-core][scarthgap][PATCH 0/8] cups: backport eight CVE fixes (2026-11-24)
@ 2026-11-24 8:40 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)
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
Backport eight upstream CUPS security changes to the CUPS 2.4.11 recipe
in OE-Core scarthgap. The recipe version and source archive checksum
are unchanged.
The series contains:
- CVE-2026-55453: control characters in quoted IPP attribute strings.
- CVE-2026-55467: control characters in fax destination and pre-dial
strings.
- CVE-2026-55480: unsafe temporary PPD creation.
- CVE-2026-61702: missing attributes-natural-language validation.
- CVE-2026-107888: held jobs whose destination has disappeared.
- CVE-2026-107890: unnamed group separators in job creation requests.
- CVE-2026-107886: dangling class-printer array pointers after freeing.
- CVE-2026-107885: jobs held open beyond MultipleOperationTimeout.
Each change is carried as a separate source patch and added to SRC_URI
in cups.inc. The source patches retain their upstream messages and
release-note changes, with the corresponding CVE identifiers and
upstream commit URLs.
Ashishkumar Parmar (8):
cups: Fix CVE-2026-55453
cups: Fix CVE-2026-55467
cups: Fix CVE-2026-55480
cups: Fix CVE-2026-61702
cups: Fix CVE-2026-107888
cups: Fix CVE-2026-107890
cups: Fix CVE-2026-107886
cups: Fix CVE-2026-107885
meta/recipes-extended/cups/cups.inc | 8 ++
.../cups/cups/CVE-2026-107885.patch | 99 +++++++++++++++++++
.../cups/cups/CVE-2026-107886.patch | 41 ++++++++
.../cups/cups/CVE-2026-107888.patch | 61 ++++++++++++
.../cups/cups/CVE-2026-107890.patch | 41 ++++++++
.../cups/cups/CVE-2026-55453.patch | 52 ++++++++++
.../cups/cups/CVE-2026-55467.patch | 70 +++++++++++++
.../cups/cups/CVE-2026-55480.patch | 40 ++++++++
.../cups/cups/CVE-2026-61702.patch | 73 ++++++++++++++
9 files changed, 485 insertions(+)
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-107885.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-107886.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-107888.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-107890.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-55453.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-55467.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-55480.patch
create mode 100644 meta/recipes-extended/cups/cups/CVE-2026-61702.patch
base-commit: fc4316861becc9f0d41857b49f6438929ab4c291
--
2.35.6
^ permalink raw reply [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 1/8] cups: Fix CVE-2026-55453
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 ` 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)
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-55453 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/d41cf0616688721e9d435d54118c4c8a36ed596a
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-7hqf-mfhx-7r3v
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 4c158aaee1..476d093fb2 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -32,6 +32,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-34990.patch \
file://CVE-2026-39314.patch \
file://CVE-2026-39316.patch \
+ file://CVE-2026-55453.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-55453.patch b/meta/recipes-extended/cups/cups/CVE-2026-55453.patch
new file mode 100644
index 0000000000..9e899cc87c
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-55453.patch
@@ -0,0 +1,52 @@
+From 87a30222512dea2bed50ea436d85b1126bf1ee72 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Fri, 12 Jun 2026 14:45:48 -0400
+Subject: [PATCH] Sanitize IPP attribute strings.
+
+CVE: CVE-2026-55453
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/d41cf0616688721e9d435d54118c4c8a36ed596a]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md | 1 +
+ backend/ipp.c | 8 +++++++-
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index 7a5e8813fe..c8284c9b42 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -5,6 +5,7 @@ CHANGES - OpenPrinting CUPS
+ Changes in CUPS v2.4.11 (2024-09-30)
+ ------------------------------------
+
++- CVE-2026-NNNNN: The backend did not sanitize IPP attribute strings.
+ - 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/backend/ipp.c b/backend/ipp.c
+index 8609e3a283..e537bfb096 100644
+--- a/backend/ipp.c
++++ b/backend/ipp.c
+@@ -70,6 +70,7 @@ typedef struct _cups_monitor_s /**** Monitoring data ****/
+ /*
+ * Globals...
+ */
++
+ #if defined(HAVE_GSSAPI) && defined(HAVE_XPC)
+ static pid_t child_pid = 0; /* Child process ID */
+ #endif /* HAVE_GSSAPI && HAVE_XPC */
+@@ -3099,7 +3100,12 @@ quote_string(const char *s, /* I - String */
+ break;
+ }
+
+- *qptr++ = *s++;
++ if ((*s & 255) < ' ' || *s == 127)
++ *qptr++ = ' ';
++ else
++ *qptr++ = *s;
++
++ s ++;
+ }
+
+ *qptr++ = '\"';
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 2/8] cups: Fix CVE-2026-55467
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 ` 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)
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-55467 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/0cf4e7814d6810ed3c454222bce3aa342d541681
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-69qc-prxg-h2c7
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 476d093fb2..cd69eb3bb6 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -33,6 +33,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-39314.patch \
file://CVE-2026-39316.patch \
file://CVE-2026-55453.patch \
+ file://CVE-2026-55467.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-55467.patch b/meta/recipes-extended/cups/cups/CVE-2026-55467.patch
new file mode 100644
index 0000000000..8c17c07484
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-55467.patch
@@ -0,0 +1,70 @@
+From b5e074cee7d633233447cec7e9ced16dce66733d Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Fri, 12 Jun 2026 15:43:22 -0400
+Subject: [PATCH] Sanitizer destination-uri and pre-dial-string values.
+
+CVE: CVE-2026-55467
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/0cf4e7814d6810ed3c454222bce3aa342d541681]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md | 1 +
+ scheduler/job.c | 29 +++++++++++++++++++++++++++--
+ 2 files changed, 28 insertions(+), 2 deletions(-)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index c8284c9b42..4e0de90191 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -6,6 +6,7 @@ Changes in CUPS v2.4.11 (2024-09-30)
+ ------------------------------------
+
+ - CVE-2026-NNNNN: The backend did not sanitize IPP attribute strings.
++- CVE-2026-NNNNN: The scheduler did not sanitizer fax numbers.
+ - 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/job.c b/scheduler/job.c
+index ea6aa2692a..f746fb0e02 100644
+--- a/scheduler/job.c
++++ b/scheduler/job.c
+@@ -3904,12 +3904,37 @@ get_options(cupsd_job_t *job, /* I - Job */
+ ipp_t *ipp = ippGetCollection(attr, 0); // Collection value
+ const char *destination_uri = ippGetString(ippFindAttribute(ipp, "destination-uri", IPP_TAG_URI), 0, NULL);
+ const char *pre_dial_string = ippGetString(ippFindAttribute(ipp, "pre-dial-string", IPP_TAG_TEXT), 0, NULL);
++ char buffer[256], *bufptr; // Sanitized value
+
+ if (destination_uri && !strncmp(destination_uri, "tel:", 4))
+- num_pwgppds = cupsAddOption("phone", destination_uri + 4, num_pwgppds, &pwgppds);
++ {
++ for (destination_uri += 4, bufptr = buffer; *destination_uri && bufptr < (buffer + sizeof(buffer) - 1); destination_uri ++)
++ {
++ if ((*destination_uri & 255) < ' ' || *destination_uri == 127)
++ *bufptr++ = ' ';
++ else
++ *bufptr++ = *destination_uri;
++ }
++
++ *bufptr = '\0';
++
++ num_pwgppds = cupsAddOption("phone", buffer, num_pwgppds, &pwgppds);
++ }
+
+ if (pre_dial_string)
+- num_pwgppds = cupsAddOption("faxPrefix", pre_dial_string, num_pwgppds, &pwgppds);
++ {
++ for (bufptr = buffer; *pre_dial_string && bufptr < (buffer + sizeof(buffer) - 1); pre_dial_string ++)
++ {
++ if ((*pre_dial_string & 255) < ' ' || *pre_dial_string == 127)
++ *bufptr++ = ' ';
++ else
++ *bufptr++ = *pre_dial_string;
++ }
++
++ *bufptr = '\0';
++
++ num_pwgppds = cupsAddOption("faxPrefix", buffer, num_pwgppds, &pwgppds);
++ }
+ }
+
+ /*
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 3/8] cups: Fix CVE-2026-55480
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 ` 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)
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-55480 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/98adfd855950e806508f961d5438ad32e26aac62
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-jj94-x3qh-ffp9
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 cd69eb3bb6..b6d047dc98 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -34,6 +34,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-39316.patch \
file://CVE-2026-55453.patch \
file://CVE-2026-55467.patch \
+ file://CVE-2026-55480.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-55480.patch b/meta/recipes-extended/cups/cups/CVE-2026-55480.patch
new file mode 100644
index 0000000000..21944e0f3c
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-55480.patch
@@ -0,0 +1,40 @@
+From c8d87e19a25b22c50e6678696d8c8cd7d07ef9d4 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Fri, 12 Jun 2026 16:15:56 -0400
+Subject: [PATCH] Open temporary PPD files more securely.
+
+CVE: CVE-2026-55480
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/98adfd855950e806508f961d5438ad32e26aac62]
+
+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 4e0de90191..030b00d839 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -7,6 +7,8 @@ Changes in CUPS v2.4.11 (2024-09-30)
+
+ - CVE-2026-NNNNN: The backend did not sanitize IPP attribute strings.
+ - CVE-2026-NNNNN: The scheduler did not sanitizer fax numbers.
++- CVE-2026-NNNNN: The scheduler did not open temporary PPD files in exclusive
++ mode.
+ - 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 7b9fd12817..1721845974 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -4472,7 +4472,7 @@ copy_model(cupsd_client_t *con, /* I - Client connection */
+
+ snprintf(buffer, sizeof(buffer), "%s/daemon/cups-driverd", ServerBin);
+ snprintf(tempfile, sizeof(tempfile), "%s/%d.ppd", TempDir, con->number);
+- if ((tempfd = open(tempfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) < 0)
++ if ((tempfd = open(tempfile, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL | O_NOFOLLOW, 0600)) < 0)
+ return (-1);
+ if (cupsdOpenPipe(temppipe))
+ {
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 4/8] cups: Fix CVE-2026-61702
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)
` (2 preceding siblings ...)
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 ` 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)
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-61702 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/08a8a277ce2a8948a1af33552247a1ac53b72df3
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-gq9p-4w7m-2f5g
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 b6d047dc98..abc6e98df9 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -35,6 +35,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-55453.patch \
file://CVE-2026-55467.patch \
file://CVE-2026-55480.patch \
+ file://CVE-2026-61702.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-61702.patch b/meta/recipes-extended/cups/cups/CVE-2026-61702.patch
new file mode 100644
index 0000000000..761e36caf5
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-61702.patch
@@ -0,0 +1,73 @@
+From 16ff31880ce331bac3758a0435430b18a81d77e0 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Tue, 23 Jun 2026 11:00:50 -0400
+Subject: [PATCH] Validate attributes-natural-language, and normalize the
+ logging punctuation.
+
+CVE: CVE-2026-61702
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/08a8a277ce2a8948a1af33552247a1ac53b72df3]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ scheduler/ipp.c | 30 +++++++++++++++++++-----------
+ 1 file changed, 19 insertions(+), 11 deletions(-)
+
+diff --git a/scheduler/ipp.c b/scheduler/ipp.c
+index 1721845974..6a62382cd5 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -295,10 +295,19 @@ cupsdProcessIPPRequest(
+ * Bad character set...
+ */
+
+- cupsdLogMessage(CUPSD_LOG_ERROR, "Unsupported character set \"%s\"",
+- charset->values[0].string.text);
+- cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Unsupported attributes-charset value \"%s\".", IPP_STATUS_ERROR_CHARSET, con->http->hostname, charset->values[0].string.text);
+- send_ipp_status(con, IPP_STATUS_ERROR_CHARSET, _("Unsupported character set \"%s\"."), charset->values[0].string.text);
++ cupsdLogClient(con, CUPSD_LOG_ERROR, "Unsupported \"attributes-charset\" value '%s'.", charset->values[0].string.text);
++ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Unsupported \"attributes-charset\" value '%s'.", IPP_STATUS_ERROR_CHARSET, con->http->hostname, charset->values[0].string.text);
++ send_ipp_status(con, IPP_STATUS_ERROR_CHARSET, _("Unsupported \"attributes-charset\" value '%s'."), charset->values[0].string.text);
++ }
++ else if (language && !ippValidateAttribute(language))
++ {
++ /*
++ * Bad natural language...
++ */
++
++ cupsdLogClient(con, CUPSD_LOG_ERROR, "Bad \"attributes-natural-language\" value '%s'.", language->values[0].string.text);
++ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Bad \"attributes-natural-language\" value '%s'.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname, language->values[0].string.text);
++ send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Bad \"attributes-natural-language\" value '%s'."), language->values[0].string.text);
+ }
+ else if (!charset || !language ||
+ (!uri &&
+@@ -316,24 +325,23 @@ cupsdProcessIPPRequest(
+
+ if (!charset)
+ {
+- cupsdLogMessage(CUPSD_LOG_ERROR, "Missing attributes-charset attribute.");
++ cupsdLogMessage(CUPSD_LOG_ERROR, "Missing \"attributes-charset\" attribute.");
+
+- cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing attributes-charset attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname);
++ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing \"attributes-charset\" attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname);
+ }
+
+ if (!language)
+ {
+- cupsdLogMessage(CUPSD_LOG_ERROR,
+- "Missing attributes-natural-language attribute.");
++ cupsdLogMessage(CUPSD_LOG_ERROR, "Missing \"attributes-natural-language\" attribute.");
+
+- cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing attributes-natural-language attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname);
++ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing \"attributes-natural-language\" attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname);
+ }
+
+ if (!uri)
+ {
+- cupsdLogMessage(CUPSD_LOG_ERROR, "Missing printer-uri, job-uri, or ppd-name attribute.");
++ cupsdLogMessage(CUPSD_LOG_ERROR, "Missing \"printer-uri\", \"job-uri\", or \"ppd-name\" attribute.");
+
+- cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing printer-uri, job-uri, or ppd-name attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname);
++ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing \"printer-uri\", \"job-uri\", or \"ppd-name\" attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname);
+ }
+
+ cupsdLogMessage(CUPSD_LOG_DEBUG, "Request attributes follow...");
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 5/8] cups: Fix CVE-2026-107888
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)
` (3 preceding siblings ...)
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 ` 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)
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-107888 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/c5fc041ca0a211f8e69854907be7b55f56955659
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-qqm8-4q5h-jg55
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 abc6e98df9..a28080f053 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -36,6 +36,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-55467.patch \
file://CVE-2026-55480.patch \
file://CVE-2026-61702.patch \
+ file://CVE-2026-107888.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-107888.patch b/meta/recipes-extended/cups/cups/CVE-2026-107888.patch
new file mode 100644
index 0000000000..a96b109fcf
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-107888.patch
@@ -0,0 +1,61 @@
+From 35ad3366ac27f2908eaef366ba805ad48c510424 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Thu, 1 Oct 2026 17:05:55 -0400
+Subject: [PATCH] Abort held jobs if the destination has gone away
+ (GHSA-qqm8-4q5h-jg55)
+
+CVE: CVE-2026-107888
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/c5fc041ca0a211f8e69854907be7b55f56955659]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md | 2 ++
+ scheduler/job.c | 20 ++++++++++++++++----
+ 2 files changed, 18 insertions(+), 4 deletions(-)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index 030b00d839..833021a203 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -9,6 +9,8 @@ Changes in CUPS v2.4.11 (2024-09-30)
+ - CVE-2026-NNNNN: The scheduler did not sanitizer fax numbers.
+ - CVE-2026-NNNNN: The scheduler did not open temporary PPD files in exclusive
+ mode.
++- SECURITY-4.1: Held jobs for temporary print queues could crash the scheduler
++ (GHSA-qqm8-4q5h-jg55)
+ - 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/job.c b/scheduler/job.c
+index f746fb0e02..77e62a5af6 100644
+--- a/scheduler/job.c
++++ b/scheduler/job.c
+@@ -332,12 +332,24 @@ cupsdCheckJobs(void)
+ * Check whether the printer is still holding new jobs...
+ */
+
+- printer = cupsdFindDest(job->dest);
++ if ((printer = cupsdFindDest(job->dest)) == NULL)
++ {
++ /*
++ * Whoa, the printer and/or class for this destination went away;
++ * cancel the job...
++ */
+
+- if (printer->holding_new_jobs)
++ cupsdSetJobState(job, IPP_JSTATE_ABORTED, CUPSD_JOB_PURGE, "Job aborted because the destination printer/class has gone away.");
+ continue;
+-
+- ippSetString(job->attrs, &job->reasons, 0, "none");
++ }
++ else if (printer->holding_new_jobs)
++ {
++ continue;
++ }
++ else
++ {
++ ippSetString(job->attrs, &job->reasons, 0, "none");
++ }
+ }
+
+ /*
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 6/8] cups: Fix CVE-2026-107890
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)
` (4 preceding siblings ...)
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 ` 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 ` [OE-core][scarthgap][PATCH 8/8] cups: Fix CVE-2026-107885 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
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 --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)
+ {
+ /*
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 7/8] cups: Fix CVE-2026-107886
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)
` (5 preceding siblings ...)
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 ` Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 8:40 ` [OE-core][scarthgap][PATCH 8/8] cups: Fix CVE-2026-107885 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream 2.4.x fix for CVE-2026-107886 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/13bc9d4f8d695403d54469cc3c8b675e34a7037f
[2] https://github.com/OpenPrinting/cups/security/advisories/GHSA-pwg4-pv39-8c22
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 2b8f96b189..fdf2f5db3b 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -38,6 +38,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
file://CVE-2026-61702.patch \
file://CVE-2026-107888.patch \
file://CVE-2026-107890.patch \
+ file://CVE-2026-107886.patch \
"
GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases"
diff --git a/meta/recipes-extended/cups/cups/CVE-2026-107886.patch b/meta/recipes-extended/cups/cups/CVE-2026-107886.patch
new file mode 100644
index 0000000000..9ad53fd827
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/CVE-2026-107886.patch
@@ -0,0 +1,41 @@
+From 4572e242b33bc0ebc837fa262407ca1e508190a9 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Mon, 5 Oct 2026 10:35:38 -0400
+Subject: [PATCH] Initialize printers array to NULL after freeing
+ (GHSA-pwg4-pv39-8c22)
+
+CVE: CVE-2026-107886
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/13bc9d4f8d695403d54469cc3c8b675e34a7037f]
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ CHANGES.md | 2 ++
+ scheduler/ipp.c | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/CHANGES.md b/CHANGES.md
+index 580b557b44..a89f0b62c0 100644
+--- a/CHANGES.md
++++ b/CHANGES.md
+@@ -13,6 +13,8 @@ Changes in CUPS v2.4.11 (2024-09-30)
+ (GHSA-qqm8-4q5h-jg55)
+ - SECURITY-3.3: The scheduler did not filter out group separators from job
+ submissions (GHSA-wjc4-qhjr-5m5x)
++- SECURITY-2.3: The scheduler could crash when modifying a class
++ (GHSA-pwg4-pv39-8c22)
+ - 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 239454f069..b3acd1660c 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -980,6 +980,8 @@ add_class(cupsd_client_t *con, /* I - Client connection */
+ if (pclass->num_printers > 0)
+ {
+ free(pclass->printers);
++
++ pclass->printers = NULL;
+ pclass->num_printers = 0;
+ }
+
--
2.35.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][scarthgap][PATCH 8/8] cups: Fix CVE-2026-107885
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)
` (6 preceding siblings ...)
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)
7 siblings, 0 replies; 9+ messages in thread
From: Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-24 8:40 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-11-24 8:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [OE-core][scarthgap][PATCH 8/8] cups: Fix CVE-2026-107885 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox