@@ -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"
new file mode 100644
@@ -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))
+ {