Bug 34746 - libcupsfilters and cups-filters (1.x) new security issues CVE-2025-57812 and CVE-2025-64503
Summary: libcupsfilters and cups-filters (1.x) new security issues CVE-2025-57812 and ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2025-11-13 14:30 CET by Nicolas Salguero
Modified: 2025-11-19 03:17 CET (History)
3 users (show)

See Also:
Source RPM: cups-filters-1.28.16-6.1.mga9.src.rpm
CVE: CVE-2025-57812, CVE-2025-64503
Status comment:


Attachments

Nicolas Salguero 2025-11-13 14:31:24 CET

Source RPM: (none) => libcupsfilters-2.1.1-3.mga10.src.rpm, cups-filters-1.28.16-6.1.mga9.src.rpm
Status comment: (none) => Patches available from upstream
CVE: (none) => CVE-2025-57812, CVE-2025-64503
Whiteboard: (none) => MGA9TOO

Comment 1 Lewis Smith 2025-11-16 21:02:40 CET
From the excellent Openwall links:

CVE-2025-57812
--------------
The fixes are present in libcupsfilters project as commits:
 https://github.com/OpenPrinting/libcupsfilters/commit/b69dfacec7f17628178

and in cups-filters 1.x (cups-filters project before split which 
happened in version 2.x, which moved library code into libcupsfilters):
[These 5 patches are indeed different, each for a given reason]

https://github.com/OpenPrinting/cups-filters/commit/5122052dd8f06949242099401c59f6c3b14e61c3
Reject images with vertical scanlines

https://github.com/OpenPrinting/cups-filters/commit/cb927006747b797aa9163cd0cbd41b9bbdf05db0
Reject images with planar color configuration

https://github.com/OpenPrinting/cups-filters/commit/719c557c9a29db32b855e6e108d7f4e7c5397613
Reject images where the number of samples does not correspond with the color space

https://github.com/OpenPrinting/cups-filters/commit/7bd588a1fc5c99ac0b1951beb1b54b438137a7b5
Reject color images with 1 bit per sample

https://github.com/OpenPrinting/cups-filters/commit/5e5f1c5d46a043c57cbbe6e043aa95896d9c40fa
Fix heap-buffer overflow write in cfImageLut

CVE-2025-64503
--------------
The fix lies in libcupsfilters:

https://github.com/OpenPrinting/cups-filters/commit/50d94ca0f2fa6177613c97c59791bde568631865

and in cups-filters 1.x (which contains libcupsfilters library before 2.x):

https://github.com/OpenPrinting/libcupsfilters/commit/fd01543f372ca3ba1f1c27bd3427110fa0094e3f

Assigning globally.

Assignee: bugsquad => pkg-bugs

Comment 2 Nicolas Salguero 2025-11-17 13:52:17 CET
Suggested advisory:
========================

The updated packages fix security vulnerabilities:

CUPS-Filters has heap-buffer-overflow write in `cfImageLut()`. (CVE-2025-57812)

cups-filters 1.x: out of bounds write in pdftoraster. (CVE-2025-64503)

References:
https://www.openwall.com/lists/oss-security/2025/11/12/1
https://www.openwall.com/lists/oss-security/2025/11/12/2
========================

Updated packages in core/updates_testing:
========================
cups-filters-1.28.16-6.2.mga9
lib(64)cups-filters-devel-1.28.16-6.2.mga9
lib(64)cups-filters1-1.28.16-6.2.mga9

from SRPM:
cups-filters-1.28.16-6.2.mga9.src.rpm

Source RPM: libcupsfilters-2.1.1-3.mga10.src.rpm, cups-filters-1.28.16-6.1.mga9.src.rpm => cups-filters-1.28.16-6.1.mga9.src.rpm
Version: Cauldron => 9
Whiteboard: MGA9TOO => (none)
Assignee: pkg-bugs => qa-bugs
Status comment: Patches available from upstream => (none)
Status: NEW => ASSIGNED

katnatek 2025-11-17 18:25:04 CET

Keywords: (none) => advisory

Comment 3 Herman Viaene 2025-11-18 11:42:20 CET
MGA9-64 server Plasma Wayaland on Compaq H000SB.
No installation issues.
Wifi printer HP Envy 6022 in network.
Removed the printer from MCC, pointed to localhost:631, logged in as root, and had the printer detected. Choose cupsfilter for the device and changed printer options
Seemed to work OK, checked in MCC, all OK.

CC: (none) => herman.viaene

Comment 4 Thomas Andrews 2025-11-19 00:27:59 CET
MGA9-64 Plasma, i5-7500, nvidia Quadro k620 graphics, HP Color Laserjet M254dw printer, also cups-pdf virtual printer.

No installation issues. Loaded a photo into Gwenview, printed it on the Laserjet, no issues. Printed a pdf to the desktop with cups-pdf, then loaded the result into Okular, printed it to the Laserjet, with no issues. Finally, used the print-to-file option to print yet another pdf of the photo, then loaded that into Okular, again with no issues.

Looks good here,too. OKing and validating.

CC: (none) => andrewsfarm, sysadmin-bugs
Whiteboard: (none) => MGA9-64-OK
Keywords: (none) => validated_update

Comment 5 Mageia Robot 2025-11-19 03:17:16 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2025-0304.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.