CVE-2025-64503

cups-filters contains backends, filters, and other software required to get the cups printing service working on operating systems other than macos. In cups-filters prior to 1.28.18, by crafting a PDF file with a large `MediaBox` value, an attacker can cause CUPS-Filter 1.xs `pdftoraster` tool to write beyond the bounds of an array. First, a PDF with a large `MediaBox` width value causes `header.cupsWidth` to become large.  Next, the calculation of `bytesPerLine = (header.cupsBitsPerPixel * header.cupsWidth + 7) / 8` overflows, resulting in a small value. Then, `lineBuf` is allocated with the small `bytesPerLine` size. Finally, `convertLineChunked` calls `writePixel8`, which attempts to write to `lineBuf` outside of its buffer size (out of bounds write). In libcupsfilters, the maintainers found the same `bytesPerLine` multiplication without overflow check, but the provided test case does not cause an overflow there, because the values are different. Commit 50d94ca0f2fa6177613c97c59791bde568631865 contains a patch, which is incorporated into cups-filters version 1.28.18.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
4 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub_MCNA
4 MEDIUM
LOCAL
LOW
NONE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 4%
Debian logo
Debian Releases
Debian Product
Codename
cups-filters
bullseye
vulnerable
trixie
no-dsa
bookworm
no-dsa
bullseye (security)
1.28.7-1+deb11u4
fixed
bookworm (security)
vulnerable
forky
1.28.17-7
fixed
sid
1.28.17-7
fixed
libcupsfilters
trixie
no-dsa
bookworm
no-dsa
forky
2.1.1-2
fixed
sid
2.1.1-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
cups-filters
questing
not-affected
plucky
not-affected
noble
not-affected
jammy
Fixed 1.28.15-0ubuntu1.5
released
focal
Fixed 1.27.4-1ubuntu0.4+esm1
released
bionic
Fixed 1.20.2-0ubuntu3.3+esm2
released
xenial
Fixed 1.8.3-2ubuntu3.5+esm3
released
libcupsfilters
questing
Fixed 2.1.1-0ubuntu3.1
released
plucky
Fixed 2.1.1-0ubuntu2.1
released
noble
Fixed 2.0.0-0ubuntu7.2
released
jammy
dne