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