CVE-2025-22121: Linux kernel · ext4: fix out-of-bound read in ext4_xattr_inode_dec_ref_all()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 8.4 High.
Data as of 10 Nov 2026, 13:47 UTC
Thin evidence
One scorer or none| CNA (Linux) | CVSS 3.1 | 8.4 |
|---|
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
AI-suggested
No explicit patch links or vendor advisory content are provided in the input. Until a fix is applied, avoid running untrusted code that can trigger ext4 xattr operations. Monitor official Linux kernel updates for patches addressing this issue.
Description
CVE-2025-22121 is a high-severity vulnerability in the Linux kernel's ext4 filesystem implementation. It involves an out-of-bound read due to a use-after-free bug in the ext4_xattr_inode_dec_ref_all() function. The flaw occurs because ext4_xattr_delete_inode() does not properly validate extended attributes (xattr) stored in the inode. This can lead to memory corruption and potential system compromise. The issue is addressed by adding validation checks for xattr in the inode, specifically by calling xattr_check_inode() or verifying in ext4_iget_extra_inode().
References
- git.kernel.org/stable/c/27202452b0bc942fdc3db72a44c4dcdab96d5b56 (opens in a new tab)
- git.kernel.org/stable/c/b374e9ecc92aaa7fb2ab221ee3ff5451118ab566 (opens in a new tab)
- git.kernel.org/stable/c/c000a8a9b5343a5ef867df173c6349672dacbd0f (opens in a new tab)
- git.kernel.org/stable/c/3c591353956ffcace2cc74d09930774afed60619 (opens in a new tab)
- git.kernel.org/stable/c/098927a13fd918bd7c64c2de905350a1ad7b4a3a (opens in a new tab)
- git.kernel.org/stable/c/0c8fbb6ffb3c8f5164572ca88e4ccb6cd6a41ca8 (opens in a new tab)
- git.kernel.org/stable/c/5701875f9609b000d91351eaa6bfd97fe2f157f4 (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-019113.html (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)