# ext4: inline: fix len overflow in ext4_prepare_inline_data

CVE record · `CVE-2025-38222`

- **Identifiers:** `CVE-2025-38222`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 4 Jul 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 4 Jul 2025, 13:37 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before d3dfc60efd145df5324b99a244b0b05505cde29b` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before 717414a8c083c376d4a8940a1230fe0c6ed4ee00` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before 9d1d1c5bf4fc1af76be154d3afb2acdbd89ec7d8` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before cf5f319a2d8ab8238f8cf3a19463b9bff6420934` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before 26e09d18599da0adc543eabd300080daaeda6869` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before 5766da2237e539f259aa0e5f3639ae37b44ca458` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before e80ee0263d88d77f2fd1927f915003a7066cbb50` (git)
  - affected: `f19d5870cbf72d4cb2a8e1f749dff97af99b071e to before 227cb4ca5a6502164f850d22aec3104d7888b270` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.8`
  - unaffected: `before 3.8` (semver)
  - unaffected: `5.4.295 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.239 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.186 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.142 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.95 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.35 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.4 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel ext4 filesystem is affected from version 3.8 before the fixes. A local user writing to a file on an ext4 filesystem with the inline_data feature enabled can trigger a kernel BUG, causing a kernel crash. Upgrade to 5.4.295, 5.10.239, 5.15.186, 6.1.142, or a later release in those series.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0019, the 9th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 4 Jul 2025, 13:37 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38222)
- 4 Jul 2025, 14:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38222)

## Sources

- [CVE List: CVE-2025-38222](https://www.cve.org/CVERecord?id=CVE-2025-38222)
- [NVD: CVE-2025-38222](https://nvd.nist.gov/vuln/detail/CVE-2025-38222)

### References from the CNA

- <https://git.kernel.org/stable/c/d3dfc60efd145df5324b99a244b0b05505cde29b>
- <https://git.kernel.org/stable/c/717414a8c083c376d4a8940a1230fe0c6ed4ee00>
- <https://git.kernel.org/stable/c/9d1d1c5bf4fc1af76be154d3afb2acdbd89ec7d8>
- <https://git.kernel.org/stable/c/cf5f319a2d8ab8238f8cf3a19463b9bff6420934>
- <https://git.kernel.org/stable/c/26e09d18599da0adc543eabd300080daaeda6869>
- <https://git.kernel.org/stable/c/5766da2237e539f259aa0e5f3639ae37b44ca458>
- <https://git.kernel.org/stable/c/e80ee0263d88d77f2fd1927f915003a7066cbb50>
- <https://git.kernel.org/stable/c/227cb4ca5a6502164f850d22aec3104d7888b270>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38222>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38222/>. Everything for agents: <https://agentprime.io/llms.txt>.
