CVE-2025-64503[BIGSLEEP-434615384] cups-filters 1.x: out of bounds write in pdftoraster
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.x’s `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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | cups-filters | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libcupsfilters | Fixed | 2.1.1-0ubuntu3.1 | UBUNTU-CVE-2025-64503 |
| Ubuntu 24.04 | cups-filters | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libcupsfilters | Fixed | 2.0.0-0ubuntu7.2 | UBUNTU-CVE-2025-64503 |
| Ubuntu 22.04 | cups-filters | Fixed | 1.28.15-0ubuntu1.5 | UBUNTU-CVE-2025-64503 |
| Ubuntu 20.04 | cups-filters | Fix pending | 1.27.4-1ubuntu0.4+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-64503 |
| Ubuntu 18.04 | cups-filters | Fix pending | 1.20.2-0ubuntu3.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-64503 |
| Ubuntu 16.04 | cups-filters | Fix pending | 1.8.3-2ubuntu3.5+esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-64503 |
| Debian 14 | cups-filters | Fixed | 1.28.17-7 | DEBIAN-CVE-2025-64503 |
| Debian 14 | libcupsfilters | Fixed | 2.1.1-2 | DEBIAN-CVE-2025-64503 |
| Debian 13 | cups-filters | Fixed | 1.28.17-6+deb13u1 | DEBIAN-CVE-2025-64503 |
| Debian 13 | libcupsfilters | Fixed | 2.0.0-3+deb13u1 | DEBIAN-CVE-2025-64503 |
| Debian 12 | cups-filters | Fixed | 1.28.17-3+deb12u2 | DEBIAN-CVE-2025-64503 |
| Red Hat Enterprise Linux 10 | cups-filters | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | cups-filters-driverless | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-filters | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-filters-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-filters-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-filters | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-filters-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-filters-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-filters | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-filters-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-filters-libs | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenPrinting cups-filters: affected: cups-filters < 1.28.18, libcupsfilters >= 2.0.0, < 2.1.2
References
- https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-893j-2wr2-wrh9
- https://github.com/OpenPrinting/cups-filters/commit/50d94ca0f2fa6177613c97c59791bde568631865
- https://github.com/OpenPrinting/cups-filters/blob/aea8d0db017e495b0204433ebdb0e86b4871094c/filter/pdftoraster.cxx#L1620
- https://github.com/OpenPrinting/cups-filters/blob/aea8d0db017e495b0204433ebdb0e86b4871094c/filter/pdftoraster.cxx#L1880
- https://github.com/OpenPrinting/libcupsfilters/blob/1dd86d835b27ed149b66aee1a4853d1db8a1f44c/cupsfilters/pdftoraster.cxx#L1790
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.