CVE-2026-112213Reading Off-Limits by Dan Bloomberg in Leptonica
Out-of-bounds read vulnerability in the pixReadMemJp2kCore() function in Leptonica, located in jp2kio.c. The function retrieves the output dimensions only for component 0 and uses a common index to iterate through the buffers of all components. If the remaining components have smaller dimensions, the traversal exceeds the bounds of their sample buffers, which are allocated by OpenJPEG. When processing a specially crafted JPEG 2000 image, data read from adjacent dynamic memory may be incorporated into the pixels of the decoded image and result in information disclosure to anyone who can access the output.
What to do
Ubuntu has 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 26.10 | leptonlib | Fix pending | UBUNTU-CVE-2026-112213 | |
| Ubuntu 26.04 | leptonlib | Under investigation | UBUNTU-CVE-2026-112213 | |
| Ubuntu 24.04 | leptonlib | Under investigation | UBUNTU-CVE-2026-112213 | |
| Ubuntu 22.04 | leptonlib | Under investigation | UBUNTU-CVE-2026-112213 | |
| Ubuntu 20.04 | leptonlib | Fix pending | UBUNTU-CVE-2026-112213 | |
| Ubuntu 18.04 | leptonlib | Fix pending | UBUNTU-CVE-2026-112213 | |
| Ubuntu 16.04 | leptonlib | Fix pending | UBUNTU-CVE-2026-112213 | |
| Ubuntu 14.04 | leptonlib | Fix pending | UBUNTU-CVE-2026-112213 |
What the vendor says
As published in the CVE record by INCIBE, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Dan Bloomberg Leptonica: affected: Leptonica 1.87.0 (commit 13275a2), in builds with JPEG 2000 support enabled via HAVE_LIBJP2K / OpenJPEG.
Solution: The manufacturer has confirmed the fix in the jp2kio.c file in the master branch of the official Leptonica repository. It is recommended that you apply the fix and recompile the library.
References
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.