# ext4: fix out-of-bound read in ext4_xattr_inode_dec_ref_all()

CVE record · `CVE-2025-22121`

- **Identifiers:** `CVE-2025-22121`
- **State:** Confirmed
- **Severity:** CVSS 8.4 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 16 Apr 2025
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 16 Apr 2025, 14:13 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: `e50e5129f384ae282adebfb561189cdb19b81cee to before 27202452b0bc942fdc3db72a44c4dcdab96d5b56` (git)
  - affected: `e50e5129f384ae282adebfb561189cdb19b81cee to before b374e9ecc92aaa7fb2ab221ee3ff5451118ab566` (git)
  - affected: `e50e5129f384ae282adebfb561189cdb19b81cee to before c000a8a9b5343a5ef867df173c6349672dacbd0f` (git)
  - affected: `e50e5129f384ae282adebfb561189cdb19b81cee to before 3c591353956ffcace2cc74d09930774afed60619` (git)
  - affected: `e50e5129f384ae282adebfb561189cdb19b81cee to before 098927a13fd918bd7c64c2de905350a1ad7b4a3a` (git)
  - affected: `e50e5129f384ae282adebfb561189cdb19b81cee to before 0c8fbb6ffb3c8f5164572ca88e4ccb6cd6a41ca8` (git)
  - affected: `e50e5129f384ae282adebfb561189cdb19b81cee to before 5701875f9609b000d91351eaa6bfd97fe2f157f4` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.13`
  - unaffected: `before 4.13` (semver)
  - unaffected: `5.10.248 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.198 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.161 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.120 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.59 to 6.12.*, inclusive` (semver)
  - unaffected: `6.14.2 to 6.14.*, inclusive` (semver)
  - unaffected: `6.15 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.

> Linux kernel ext4 filesystem code is affected from commit e50e5129f384 (4.13) until the fixes in the listed stable branches; the source lists fixed versions for 5.10.248, 5.15.198, 6.1.161 and 6.6.120 and later stable lines. An attacker who can mount a crafted ext4 filesystem can trigger an out-of-bounds read during orphan cleanup, which can crash the system. Upgrade to a fixed kernel version for your branch, such as 5.10.248, 5.15.198, 6.1.161, 6.6.120 or later, or a mainline release that includes the fix.

Written 19 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

- 8.4 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

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

## Timeline

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

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/27202452b0bc942fdc3db72a44c4dcdab96d5b56>
- <https://git.kernel.org/stable/c/b374e9ecc92aaa7fb2ab221ee3ff5451118ab566>
- <https://git.kernel.org/stable/c/c000a8a9b5343a5ef867df173c6349672dacbd0f>
- <https://git.kernel.org/stable/c/3c591353956ffcace2cc74d09930774afed60619>
- <https://git.kernel.org/stable/c/098927a13fd918bd7c64c2de905350a1ad7b4a3a>
- <https://git.kernel.org/stable/c/0c8fbb6ffb3c8f5164572ca88e4ccb6cd6a41ca8>
- <https://git.kernel.org/stable/c/5701875f9609b000d91351eaa6bfd97fe2f157f4>

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-22121>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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