Heap-based buffer overflow in cups-filters and libcupsfilters - CVE-2025-57812
Published: November 12, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the cfImageLut() function when handling TIFF image files. A remote attacker can pass a specially crafted TIFF image to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
libcupsfilters
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Anolis OS
cups-filters
cups-filters-foomatic-rip
cups-filters-cups-browsed-debuginfo
cups-filters-debugsource
cups-filters-foomatic-rip-debuginfo
cups-filters-ghostscript-debuginfo
cups-filters-ghostscript
cups-filters-debuginfo
cups-filters-cups-browsed
cups-filters (Ubuntu package)
cups-filters-devel
cups-filters-help
libcupsfilters (Ubuntu package)
libcupsfilters-devel
libcupsfilters
How to mitigate CVE-2025-57812
libcupsfilters - update to 2.1.1
cups-filters - addressed in versions 1.0.58-19.35.1, 1.25.0-150200.3.25.1
cups-filters-foomatic-rip - update to 1.0.58-19.35.1
cups-filters-cups-browsed-debuginfo - update to 1.0.58-19.35.1
cups-filters-debugsource - addressed in versions 1.0.58-19.35.1, 1.25.0-150200.3.25.1
cups-filters-foomatic-rip-debuginfo - update to 1.0.58-19.35.1
cups-filters-ghostscript-debuginfo - update to 1.0.58-19.35.1
cups-filters-ghostscript - update to 1.0.58-19.35.1
cups-filters-debuginfo - addressed in versions 1.0.58-19.35.1, 1.25.0-150200.3.25.1
cups-filters-cups-browsed - update to 1.0.58-19.35.1
cups-filters (Ubuntu package) - addressed in versions 1.8.3-2ubuntu3.5+esm3, 1.20.2-0ubuntu3.3+esm2, 1.27.4-1ubuntu0.4+esm1, 1.28.15-0ubuntu1.5, 2.0.0-0ubuntu4.1, 2.0.1-0ubuntu3.25.04.1, 2.0.1-0ubuntu3.25.10.1
cups-filters-devel - update to 1.25.0-150200.3.25.1
cups-filters - update to 1.28.9-6
cups-filters-debuginfo - update to 1.28.9-6
cups-filters-debugsource - update to 1.28.9-6
cups-filters-devel - update to 1.28.9-6
cups-filters-help - update to 1.28.9-6
libcupsfilters (Ubuntu package) - addressed in versions 2.0.0-0ubuntu7.2, 2.1.1-0ubuntu2.1, 2.1.1-0ubuntu3.1
libcupsfilters-devel - update to 2.0.0-3
libcupsfilters - update to 2.0.0-3