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 2/8] cups: Fix CVE-2026-55467
Date: Tue, 24 Nov 2026 00:40:27 -0800 [thread overview]
Message-ID: <20261124084033.72286-3-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-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
next 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 ` Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
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)
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-3-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