]>
git.ipfire.org Git - thirdparty/cups.git/log
Michael R Sweet [Sat, 20 Dec 2025 00:24:02 +0000 (19:24 -0500)]
Merge pull request #1459 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Алексей Корн [Thu, 18 Dec 2025 20:54:44 +0000 (21:54 +0100)]
Translated using Weblate (Russian)
Currently translated at 29.7% (1241 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ru/
Michael R Sweet [Fri, 19 Dec 2025 18:37:13 +0000 (13:37 -0500)]
Update autoconf cross-compilation files.
Michael R Sweet [Wed, 17 Dec 2025 23:10:12 +0000 (18:10 -0500)]
Fix typo when exporting control chars.
Michael R Sweet [Tue, 16 Dec 2025 18:03:51 +0000 (13:03 -0500)]
Bring back PPD file loader for attributes to ippeveprinter.
Michael R Sweet [Tue, 16 Dec 2025 17:51:50 +0000 (12:51 -0500)]
Synchronize changes with CUPS 3.0.
Michael R Sweet [Mon, 15 Dec 2025 17:29:43 +0000 (12:29 -0500)]
Hold jobs using job-password for 15 seconds (Issue #1456)
zdohnal [Fri, 12 Dec 2025 06:20:53 +0000 (07:20 +0100)]
Merge pull request #1454 from zdohnal/osh-fixes-post-cve
scheduler: Fix possible use_after_free in `cupsdReadClient()`
Michael R Sweet [Thu, 11 Dec 2025 22:46:10 +0000 (17:46 -0500)]
Merge pull request #1455 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Remus-Gabriel Chelu [Wed, 10 Dec 2025 18:36:40 +0000 (19:36 +0100)]
Translated using Weblate (Romanian)
Currently translated at 76.0% (3174 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ro/
Michael R Sweet [Thu, 11 Dec 2025 16:32:57 +0000 (11:32 -0500)]
Fix speling (Issue #1452)
Zdenek Dohnal [Thu, 11 Dec 2025 14:12:55 +0000 (15:12 +0100)]
scheduler: Fix possible use_after_free in `cupsdReadClient()`
If `cupsdSendHeader()` fails, we free the connection and return -1, but
in that case we try to free the connection again in `cupsdReadClient()`.
Michael R Sweet [Wed, 10 Dec 2025 19:54:00 +0000 (14:54 -0500)]
Merge pull request #1444 from snejok/new-usb-quirk-no_alt_set
new usb quirk: no-alt-set - won't even try set_conf or set_int_alt_set
Michael R Sweet [Wed, 10 Dec 2025 16:57:00 +0000 (11:57 -0500)]
Fix JSON output with empty arrays or objects (Issue #1452)
Lenar Shakirov [Fri, 5 Dec 2025 15:34:43 +0000 (18:34 +0300)]
Fixed an annoying typo in the comments
Michael R Sweet [Fri, 5 Dec 2025 15:28:44 +0000 (10:28 -0500)]
Don't follow symlinks when cleaning out the temporary directory (Issue #1448)
Lenar Shakirov [Fri, 5 Dec 2025 11:26:12 +0000 (14:26 +0300)]
No need extra debug printfs when NO_ALT_SET enabled
zdohnal [Thu, 4 Dec 2025 07:49:19 +0000 (08:49 +0100)]
conf.c: Fix stopping scheduler on unknown directive
Change the return value to do not trigger stopping the scheduler in case of unknown directive, because stopping the scheduler on config errors should only happen in case of syntax errors.
Michael R Sweet [Wed, 3 Dec 2025 22:34:53 +0000 (17:34 -0500)]
Merge pull request #1447 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Remus-Gabriel Chelu [Wed, 3 Dec 2025 21:41:45 +0000 (22:41 +0100)]
Translated using Weblate (Romanian)
Currently translated at 52.0% (2174 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ro/
Lenar Shakirov [Wed, 3 Dec 2025 15:21:12 +0000 (18:21 +0300)]
usb-quirks: enable no-alt-set for Samsung M337x 387x 407x Series
04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series
This model print garbage after libusb_set_configuration or libusb_set_interface_alt_setting, especially when the printer has gone into sleep mode.
Lenar Shakirov [Wed, 3 Dec 2025 15:17:09 +0000 (18:17 +0300)]
new usb quirk: no-alt-set - won't even try set_conf or set_int_alt_set
new usb quirk: no-alt-set - won't even try libusb_set_configuration or libusb_set_interface_alt_setting
I noticed that sometimes garbage is printed with my
Samsung ProXpress M3870FD, this happens most often
if the printer has gone to sleep (after 1 min by default).
So if I print something 10 times, I get garbage 3-4 times.
After month of investigating I found that Samsung devices
don't like libusb_set_configuration or
libusb_set_interface_alt_setting.
My device:
04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series
https://blog.stuffedcow.net/2011/10/samsung-linux-cups-usb-printing/
apple/cups#3965
OpenPrinting/system-config-printer#408
https://github.com/OpenPrinting/cups/blob/master/backend/usb-libusb.c (search by "Samsung")
Zdenek Dohnal [Wed, 3 Dec 2025 15:12:54 +0000 (16:12 +0100)]
conf.c: Fix stopping scheduler on unknown directive
Change the return value to do not trigger stopping the scheduler in case
of unknown directive, because stopping the scheduler on config errors
should only happen in case of syntax errors.
Michael R Sweet [Wed, 3 Dec 2025 12:08:04 +0000 (07:08 -0500)]
Update cert username field to match connection username field size (Issue #1441)
zdohnal [Wed, 3 Dec 2025 11:55:30 +0000 (12:55 +0100)]
http.c: Fix infinite loop in GTK apps
GTK has a specific IPP processing which stopped working after
CVE-2025-58436 fix. GTK depends on internal behavior of `_httpUpdate()`
which read a line from connection at the start of function, which was
one of culprits behind CVE-2025-58436.
To mitigate CVE-2025-58436 `_httpUpdate()` started to read from
connection only if there was data in internal HTTP buffer and there
was at least one newline buffered - otherwise the function returns
HTTP_ERROR/HTTP_CONTINUE, which caused the loop in GTK.
The change which fixes GTK behavior in the PR is to read data from
connection at the start of `_httpUpdate()` for non-blocking connections
immediately with no timeout if internal HTTP buffer is not full. The
change mitigates the CVE as well as the previous implementation.
Fixes #1429
Zdenek Dohnal [Wed, 3 Dec 2025 08:39:02 +0000 (09:39 +0100)]
http.c: Fix infinite loop in GTK print dialog
GTK has a specific IPP processing which stopped working after
CVE-2025-58436 fix. GTK depends on internal behavior of `_httpUpdate()`
which read a line from connection at the start of function, which was
one of culprits behind CVE-2025-58436.
To mitigate CVE-2025-58436 `_httpUpdate()` started to read from
connection only if there was data in internal HTTP buffer and there
was at least one newline buffered - otherwise the function returns
HTTP_ERROR/HTTP_CONTINUE, which caused the loop in GTK.
The change which fixes GTK behavior in the PR is to read data from
connection at the start of `_httpUpdate()` for non-blocking connections
immediately with no timeout if internal HTTP buffer is not full. The
change mitigates the CVE as well as the previous implementation.
Fixes #1429
Michael R Sweet [Tue, 2 Dec 2025 18:44:29 +0000 (13:44 -0500)]
Make sure 2-byte UTF-8 sequence is complete (Issue #1438)
Michael R Sweet [Mon, 1 Dec 2025 12:51:14 +0000 (07:51 -0500)]
Merge pull request #1435 from OpenPrinting/dependabot/github_actions/actions/upload-artifact-5
Bump actions/upload-artifact from 4 to 5
Michael R Sweet [Mon, 1 Dec 2025 12:49:13 +0000 (07:49 -0500)]
Merge pull request #1436 from OpenPrinting/dependabot/github_actions/actions/checkout-6
Bump actions/checkout from 5 to 6
dependabot[bot] [Mon, 1 Dec 2025 11:37:22 +0000 (11:37 +0000)]
Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 1 Dec 2025 11:37:18 +0000 (11:37 +0000)]
Bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Michael R Sweet [Thu, 27 Nov 2025 23:23:59 +0000 (18:23 -0500)]
Fix coding style.
zdohnal [Thu, 27 Nov 2025 15:07:59 +0000 (16:07 +0100)]
Merge commit from fork
Fix various issues in cupsd
Michael R Sweet [Fri, 21 Nov 2025 06:29:53 +0000 (07:29 +0100)]
Fix various issues in cupsd
Various issues were found by @SilverPlate3, recognized as CVE-2025-61915:
- out of bound write when handling IPv6 addresses,
- cupsd crash caused by null dereference when ErrorPolicy value is empty,
On the top of that, Mike Sweet noticed vulnerability via domain socket,
exploitable locally if attacker has access to domain socket and knows username
of user within a group which is present in CUPS system groups:
- rewrite of cupsd.conf via PeerCred authorization via domain socket
The last vulnerability is fixed by introducing PeerCred directive for cups-files.conf,
which controls whether PeerCred is enabled/disabled for user in CUPS system groups.
Fixes CVE-2025-61915
zdohnal [Thu, 27 Nov 2025 15:02:08 +0000 (16:02 +0100)]
Merge commit from fork
Fix unresponsive cupsd process caused by a slow client
Michael R Sweet [Wed, 26 Nov 2025 19:39:00 +0000 (14:39 -0500)]
Fix some issues with job-presets-supported and printer-strings-languages-supported.
Michael R Sweet [Mon, 24 Nov 2025 17:38:51 +0000 (12:38 -0500)]
Don't use shared libraries for macOS CI runner.
Michael R Sweet [Mon, 24 Nov 2025 16:45:35 +0000 (11:45 -0500)]
Fix generated test filter scripts.
Michael R Sweet [Fri, 21 Nov 2025 16:50:08 +0000 (11:50 -0500)]
Fix DEBUG conditional.
Michael R Sweet [Fri, 21 Nov 2025 16:44:59 +0000 (11:44 -0500)]
Need to invalidate destination cache after removing filters.
Michael R Sweet [Fri, 21 Nov 2025 14:04:54 +0000 (09:04 -0500)]
Fix syntax.
Michael R Sweet [Fri, 21 Nov 2025 13:59:53 +0000 (08:59 -0500)]
Always produce the test logs artifacts, especially for failed tests... :)
Michael R Sweet [Thu, 20 Nov 2025 19:26:41 +0000 (14:26 -0500)]
Update artifact file list.
Michael R Sweet [Thu, 20 Nov 2025 19:25:05 +0000 (14:25 -0500)]
Add .txt extension to log files to make post-build introspection easier.
Michael R Sweet [Thu, 20 Nov 2025 19:22:39 +0000 (14:22 -0500)]
Don't copy logs to the build log, just to the build artifact.
Michael R Sweet [Thu, 20 Nov 2025 19:10:35 +0000 (14:10 -0500)]
On a successful run, move the libcups test.log to test-passed.log.
For GitHub CI, upload test logs as artifacts.
Michael R Sweet [Thu, 20 Nov 2025 16:13:42 +0000 (11:13 -0500)]
Move logging of printer attributes to common failure cleanup code.
Update new filetype code to look for application/octet-stream and
application/pdf.
Michael R Sweet [Wed, 19 Nov 2025 13:11:18 +0000 (08:11 -0500)]
Merge pull request #1426 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
anotheranonymoususer [Tue, 18 Nov 2025 12:10:46 +0000 (13:10 +0100)]
Translated using Weblate (Czech)
Currently translated at 12.8% (535 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/cs/
Michael R Sweet [Tue, 18 Nov 2025 16:14:27 +0000 (17:14 +0100)]
Fix unresponsive cupsd process caused by a slow client
If client is very slow, it will slow cupsd process for other clients.
The fix is the best effort without turning scheduler cupsd into
multithreaded process which would be too complex and error-prone when
backporting to 2.4.x series.
The fix for unencrypted communication is to follow up on communication
only if there is the whole line on input, and the waiting time is
guarded by timeout.
Encrypted communication now starts after we have the whole client hello
packet, which conflicts with optional upgrade support to HTTPS via
methods other than method OPTIONS, so this optional support defined in
RFC 2817, section 3.1 is removed. Too slow or incomplete requests are
handled by connection timeout.
Fixes CVE-2025-58436
Michael R Sweet [Mon, 17 Nov 2025 16:31:22 +0000 (11:31 -0500)]
Check for NULL attr pointer.
Michael R Sweet [Mon, 17 Nov 2025 16:27:32 +0000 (11:27 -0500)]
Add test filters to allow mimeGetFilterTypes to function on build systems
without the CUPS filters installed.
Michael R Sweet [Mon, 17 Nov 2025 15:13:07 +0000 (10:13 -0500)]
Add missing lock around domain browser.
Michael R Sweet [Sun, 16 Nov 2025 23:15:11 +0000 (18:15 -0500)]
Refactor MIME locking.
Michael R Sweet [Sun, 16 Nov 2025 13:59:31 +0000 (08:59 -0500)]
mimeGetFilterTypes didn't try to find filters to the printer format before
bailing.
Log the attributes returned by the printer when setting up an IPP Everywhere
queue.
Log the printer MIME media type.
Michael R Sweet [Sat, 15 Nov 2025 21:50:24 +0000 (16:50 -0500)]
Update regular expression for testing media size names.
Michael R Sweet [Sun, 16 Nov 2025 13:03:47 +0000 (08:03 -0500)]
Merge pull request #1423 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Fri, 14 Nov 2025 22:13:03 +0000 (23:13 +0100)]
Translated using Weblate (Spanish)
Currently translated at 100.0% (4174 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Fri, 14 Nov 2025 22:36:51 +0000 (17:36 -0500)]
Return false if we have an unterminated quoted string token, and do a better job
validating "$ENV[name]" and "${name}" expansions (Issue #1422)
Also update the documentation comments.
Michael R Sweet [Fri, 14 Nov 2025 22:12:41 +0000 (17:12 -0500)]
Add debug logging of supported formats.
Michael R Sweet [Fri, 14 Nov 2025 21:56:34 +0000 (16:56 -0500)]
Document that the USB backend supports other "quirks" files in the same
directory as "org.cups.usb-quirks", and where to report issues.
Michael R Sweet [Thu, 13 Nov 2025 17:58:41 +0000 (12:58 -0500)]
Fix memory leak in cups-oauth.
Michael R Sweet [Thu, 13 Nov 2025 20:04:39 +0000 (15:04 -0500)]
Merge pull request #1421 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Remus-Gabriel Chelu [Thu, 13 Nov 2025 19:41:47 +0000 (20:41 +0100)]
Translated using Weblate (Romanian)
Currently translated at 35.9% (1500 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/ro/
Michael R Sweet [Thu, 13 Nov 2025 17:54:18 +0000 (12:54 -0500)]
Fix NULL checks in home.cgi.
Michael R Sweet [Thu, 13 Nov 2025 17:45:10 +0000 (12:45 -0500)]
Report a debug message if we are unable to get the device descriptor when making the URI.
Michael R Sweet [Thu, 13 Nov 2025 17:41:54 +0000 (12:41 -0500)]
Fix Coverity-reported locking issue for subscriptions.
Michael R Sweet [Thu, 13 Nov 2025 16:52:28 +0000 (11:52 -0500)]
Fix format errors in Swedish localization.
Report WARNING when we don't have a complete localization.
Michael R Sweet [Thu, 13 Nov 2025 15:56:02 +0000 (10:56 -0500)]
Add new HTML/CSS developer test page for CUPS web interface (not installed), fix some CSS issues.
Michael R Sweet [Wed, 12 Nov 2025 21:48:32 +0000 (16:48 -0500)]
Add a new mimeGetFilterTypes function for getting the list of supported document
formats for a printer. The new algorithm is O(n log n) vs. the old O(n^4) (Issue #1392)
Michael R Sweet [Wed, 12 Nov 2025 21:48:30 +0000 (16:48 -0500)]
Fix typo in documentation.
Michael R Sweet [Wed, 12 Nov 2025 19:01:02 +0000 (14:01 -0500)]
Fix regression in cupsResolveConflicts.
Michael R Sweet [Wed, 12 Nov 2025 18:53:36 +0000 (13:53 -0500)]
Don't use custom prefix for non-standard sizes - use oe or om (Issue #1388)
Michael R Sweet [Wed, 12 Nov 2025 18:18:47 +0000 (13:18 -0500)]
Add custom default size to media-supported, media-size-supported, and media-col-database as well (Issue #1388)
Michael R Sweet [Tue, 11 Nov 2025 23:04:10 +0000 (18:04 -0500)]
Report default media in media/-col/-ready (Issue #1388)
Michael R Sweet [Tue, 11 Nov 2025 21:28:46 +0000 (16:28 -0500)]
Fix potential crash in cups-driverd due to duplicate PPDs (Issue #1355)
Michael R Sweet [Mon, 10 Nov 2025 22:52:01 +0000 (17:52 -0500)]
Don't error out when scanning for PPDs (Issue #1416)
Michael R Sweet [Mon, 10 Nov 2025 20:13:33 +0000 (15:13 -0500)]
Fix clang warnings.
Michael R Sweet [Mon, 10 Nov 2025 20:13:05 +0000 (15:13 -0500)]
Validate referer URL before using it (Issue #1419)
Michael R Sweet [Mon, 10 Nov 2025 19:04:08 +0000 (14:04 -0500)]
Merge pull request #1418 from snejok/usb-quirks-Samsung-M337x-387x-407x-
04e83460
usb-quirks: disable soft-reset for Samsung M337x 387x 407x Series
Michael R Sweet [Fri, 7 Nov 2025 15:12:27 +0000 (10:12 -0500)]
Merge pull request #1417 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Fri, 7 Nov 2025 12:36:33 +0000 (13:36 +0100)]
Translated using Weblate (Spanish)
Currently translated at 100.0% (4174 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Francisco Serrador [Wed, 5 Nov 2025 14:31:32 +0000 (15:31 +0100)]
Translated using Weblate (Spanish)
Currently translated at 86.0% (3592 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Tue, 4 Nov 2025 16:47:11 +0000 (11:47 -0500)]
Make sure options pointer is not NULL.
Michael R Sweet [Tue, 4 Nov 2025 01:04:25 +0000 (20:04 -0500)]
Merge pull request #1408 from AZero13/cve
Do not allow negative file descriptors to be closed
AZero13 [Tue, 4 Nov 2025 00:55:13 +0000 (19:55 -0500)]
Do not allow negative file descriptors to be closed
Especially
Michael R Sweet [Tue, 4 Nov 2025 00:36:49 +0000 (19:36 -0500)]
Merge pull request #1405 from AZero13/refactor
Refactor finish_document_data to use goto better
AZero13 [Tue, 4 Nov 2025 00:22:51 +0000 (19:22 -0500)]
Set fd to -1
AZero13 [Mon, 3 Nov 2025 23:47:08 +0000 (18:47 -0500)]
Refactor finish_document_data to use goto better
Michael R Sweet [Sat, 1 Nov 2025 19:20:52 +0000 (15:20 -0400)]
Merge pull request #1399 from weblate/weblate-cups-cups
Translations update from Hosted Weblate
Francisco Serrador [Fri, 31 Oct 2025 19:21:56 +0000 (20:21 +0100)]
Translated using Weblate (Spanish)
Currently translated at 79.0% (3301 of 4174 strings)
Translation: CUPS/CUPS
Translate-URL: https://hosted.weblate.org/projects/cups/cups/es/
Michael R Sweet [Sat, 1 Nov 2025 14:11:15 +0000 (10:11 -0400)]
Merge pull request #1398 from OpenPrinting/dependabot/github_actions/github/codeql-action-4
Bump github/codeql-action from 3 to 4
dependabot[bot] [Sat, 1 Nov 2025 10:01:44 +0000 (10:01 +0000)]
Bump github/codeql-action from 3 to 4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Lenar Shakirov [Fri, 31 Oct 2025 16:25:32 +0000 (19:25 +0300)]
usb-quirks: disable soft-reset for Samsung M337x 387x 407x Series
04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series
I noticed that after first page is printed in CUPS scanner stops responding
Michael R Sweet [Fri, 31 Oct 2025 15:22:58 +0000 (11:22 -0400)]
Fix cupsJWTSign for EC with GNU TLS.
Michael R Sweet [Thu, 30 Oct 2025 23:51:38 +0000 (19:51 -0400)]
Update list of attributes for each group.
Michael R Sweet [Wed, 29 Oct 2025 18:37:07 +0000 (14:37 -0400)]
Pick up fixed from libcups for cupsCreateCredentials, cupsCreateCredentialsRequest, and httpGetDateTime.
Michael R Sweet [Thu, 23 Oct 2025 21:55:46 +0000 (17:55 -0400)]
Add "WITH-VALUE !number" comparison for ipptool.
Clean up man pages.
Michael R Sweet [Wed, 22 Oct 2025 22:15:32 +0000 (18:15 -0400)]
Update/sync docos.
Michael R Sweet [Wed, 22 Oct 2025 21:55:34 +0000 (17:55 -0400)]
Cleanup and sync with changes from libcups.