diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index f82fc0a1aa..b7579ff70a 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -13,6 +13,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \
            file://0002-don-t-try-to-run-generated-binaries.patch \
            file://libexecdir.patch \
            file://0004-cups-fix-multilib-install-file-conflicts.patch \
+           file://0005-Fix-regression-with-temporary-queues.patch \
            file://volatiles.99_cups \
            file://cups-volatiles.conf \
            "
diff --git a/meta/recipes-extended/cups/cups/0005-Fix-regression-with-temporary-queues.patch b/meta/recipes-extended/cups/cups/0005-Fix-regression-with-temporary-queues.patch
new file mode 100644
index 0000000000..67586dd3d8
--- /dev/null
+++ b/meta/recipes-extended/cups/cups/0005-Fix-regression-with-temporary-queues.patch
@@ -0,0 +1,43 @@
+From 67dcee9f60a2a1410993510ab00c7203af5c5804 Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <msweet@msweet.org>
+Date: Fri, 9 Oct 2026 12:01:20 -0400
+Subject: [PATCH] Fix regression with temporary queues (Issue #1751)
+
+create_local_printer() took the device URI into device_uri_ptr, but still
+split and stored the former printer-name pointer, so every temporary queue
+got the device URI "://" and failed.
+
+Combines the upstream commits 67dcee9f60 and e11ff1a9e8 on the 2.4.x
+branch, without the CHANGES.md entry.
+
+Upstream-Status: Backport [https://github.com/OpenPrinting/cups/commit/67dcee9f60a2a1410993510ab00c7203af5c5804, https://github.com/OpenPrinting/cups/commit/e11ff1a9e8c6ec71edbaac5d5e5590d11aff64ef]
+Signed-off-by: Markus Volk <f_l_k@t-online.de>
+---
+diff --git a/scheduler/ipp.c b/scheduler/ipp.c
+index af8cf12..96364f4 100644
+--- a/scheduler/ipp.c
++++ b/scheduler/ipp.c
+@@ -5796,11 +5796,11 @@ create_local_printer(
+ 
+   if (nameptr)
+   {
+-    size_t host_len,
+-        server_name_len;
++    size_t	host_len,		/* Length of hostname */
++		server_name_len;	/* Length of server name */
+ 
+     /* Get host name of device URI */
+-    httpSeparateURI(HTTP_URI_CODING_ALL, ptr,
++    httpSeparateURI(HTTP_URI_CODING_ALL, device_uri_ptr,
+ 		    scheme, sizeof(scheme), userpass, sizeof(userpass), host,
+ 		    sizeof(host), &port, resource, sizeof(resource));
+ 
+@@ -5832,7 +5832,7 @@ create_local_printer(
+     cupsdSetDeviceURI(printer, uri);
+   }
+   else
+-    cupsdSetDeviceURI(printer, ptr);
++    cupsdSetDeviceURI(printer, device_uri_ptr);
+ 
+   if (printer_geo_location)
+     cupsdSetString(&printer->geo_location, ippGetString(printer_geo_location, 0, NULL));
