Kernel memory disclosure via undersized JPEG buffers
Published Jun 18, 2025 · Updated Aug 5, 2026
Out-of-bounds read in the imx-jpeg driver in Linux 5.13 through 5.19.1 on affected branches allows local users to read kernel memory. The mxc_jpeg_try_fmt path rounded buffer dimensions downward while the hardware processed the unchanged image resolution, leaving decoder storage smaller than the aligned processing dimensions. Reachability requires local access to an NXP i.MX8 JPEG device and a kernel containing the driver; the bounded consequence is disclosure of kernel memory during decoding.
Summary
What happened
Out-of-bounds read in the imx-jpeg driver in Linux 5.13 through 5.19.1 on affected branches allows local users to read kernel memory. The mxc_jpeg_try_fmt path rounded buffer dimensions downward while the hardware processed the unchanged image resolution, leaving decoder storage smaller than the aligned processing dimensions. Reachability requires local access to an NXP i.MX8 JPEG device and a kernel containing the driver; the bounded consequence is disclosure of kernel memory during decoding.
The record
- CVE
- CVE-2022-50182
- Published
- Jun 18, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125, T1005
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2db16c6ed72ce644d5639b3ed15e5817442db4ba <447795ffb17cd60bb544e0abfc9399e180a14a2f
- Affected versionversion=2db16c6ed72ce644d5639b3ed15e5817442db4ba <73d1836ed7911953182b787745cb8c5857a2661c
- Affected versionversion=2db16c6ed72ce644d5639b3ed15e5817442db4ba <9ae2d729de6350c53a06c57782751d84eb2c08d9
- Affected versionversion=2db16c6ed72ce644d5639b3ed15e5817442db4ba <9e7aa76cdb02923ee23a0ddd48f38bdc3512f92b
- Affected versionversion=5.13
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo