File cups-filters-1.25.0-CVE-2024-47076.patch of Package cups-filters.35974
--- utils/cups-browsed.c.orig 2024-10-10 11:04:48.225649900 +0200
+++ utils/cups-browsed.c 2024-10-10 11:16:57.434199607 +0200
@@ -5651,6 +5651,13 @@ get_printer_attributes(const char* uri)
debug_printf("Request for IPP attributes (get-printer-attributes) for printer with URI %s failed: %s\n",
uri, cupsLastErrorString());
+ // Check if the response is valid
+ if (!ippValidateAttributes(response))
+ {
+ ippDelete(response);
+ response = NULL;
+ }
+
return response;
}
#endif /* HAVE_CUPS_1_6 */