# CVE-2025-38225: media: imx-jpeg: Cleanup after an allocation error

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:40.205Z
- Modified: 2026-06-17T09:16:25.580Z
- Weaknesses: CWE-908
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: imx-jpeg: Cleanup after an allocation error

When allocation failures are not cleaned up by the driver, further
allocation errors will be false-positives, which will cause buffers to
remain uninitialized and cause NULL pointer dereferences.
Ensure proper cleanup of failed allocations to prevent these issues.

(As written by CVE List.)

## Affected

- Linux Linux: from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before b89ff9cf37ff59399f850d5f7781ef78fc37679f; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before ec26be7d6355a05552a0d0c1e73031f83aa4dc7f; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 0ee9469f818a0b4de3c0e7aecd733c103820d181; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 6d0efe7d35c75394f32ff9d0650a007642d23857; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 7500bb9cf164edbb2c8117d57620227b1a4a8369; 5.13 (not affected: before 5.13; from 6.1.143 up to 6.1.*; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 5.13 before 6.1.143; from 6.2 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/b89ff9cf37ff59399f850d5f7781ef78fc37679f> (patch)
- <https://git.kernel.org/stable/c/ec26be7d6355a05552a0d0c1e73031f83aa4dc7f> (patch)
- <https://git.kernel.org/stable/c/0ee9469f818a0b4de3c0e7aecd733c103820d181> (patch)
- <https://git.kernel.org/stable/c/6d0efe7d35c75394f32ff9d0650a007642d23857> (patch)
- <https://git.kernel.org/stable/c/7500bb9cf164edbb2c8117d57620227b1a4a8369> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-38225](https://www.cve.org/CVERecord?id=CVE-2025-38225), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38225](https://nvd.nist.gov/vuln/detail/CVE-2025-38225), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38225 · Whole record: https://cve.day/CVE-2025-38225.json · Rebuilt by cve.day 2026-11-25T22:59:00.656Z
