CVE-2022-50845
ext4: fix inode leak in ext4_xattr_inode_create() on an error path
- Published
- Updated
- Reserved
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: fix inode leak in ext4_xattr_inode_create() on an error path There is issue as follows when do setxattr with inject fault: [localhost]# fsck.ext4 -fn /dev/sda e2fsck 1.46.6-rc1 (12-Sep-2022) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Unattached zero-length inode 15. Clear? no Unattached inode 15 Connect to /lost+found? no Pass 5: Checking group summary information /dev/sda: ********** WARNING: Filesystem still has errors ********** /dev/sda: 15/655360 files (0.0% non-contiguous), 66755/2621440 blocks This occurs in 'ext4_xattr_inode_create()'. If 'ext4_mark_inode_dirty()' fails, dropping i_nlink of the inode is needed. Or will lead to inode leak.
Scores
No CVSS score yet: neither the CNA, CISA nor NVD has scored this CVE. NVD status: Deferred.
- EPSS (exploitation in 30 days)
- 0.25% · top 83% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Not scored.
Affected products
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < 0f709e08caffb41bbc9b38b9a4c1bd0769794007
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < eab94a46560f68d4bcd15222701ced479f84f427
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < 9ef603086c5b796fde1c7f22a17d0fc826ba54cb
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < 9882601ee689975c1c0076ee65bf222a2a35e535
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < 322cf639b0b7f137543072c55545adab782b3a25
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < fdaaf45786dc8c17a72901021772520fceb18f8c
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < 70e5b46beba64706430a87a6d516054225e8ac8a
- affected bd3b963b273e247e13979f98812a6e4979b5c1e4 – < e4db04f7d3dbbe16680e0ded27ea2a65b10f766a
- affected 4.13
- unaffected < 4.13
- unaffected 4.14.303 – ≤ 4.14.*
- unaffected 4.19.270 – ≤ 4.19.*
- unaffected 5.4.229 – ≤ 5.4.*
- unaffected 5.10.163 – ≤ 5.10.*
- unaffected 5.15.87 – ≤ 5.15.*
- unaffected 6.0.18 – ≤ 6.0.*
- unaffected 6.1.4 – ≤ 6.1.*
- unaffected 6.2 – ≤ *
References (8)
- https://git.kernel.org/stable/c/0f709e08caffb41bbc9b38b9a4c1bd0769794007 (opens in a new tab)
- https://git.kernel.org/stable/c/eab94a46560f68d4bcd15222701ced479f84f427 (opens in a new tab)
- https://git.kernel.org/stable/c/9ef603086c5b796fde1c7f22a17d0fc826ba54cb (opens in a new tab)
- https://git.kernel.org/stable/c/9882601ee689975c1c0076ee65bf222a2a35e535 (opens in a new tab)
- https://git.kernel.org/stable/c/322cf639b0b7f137543072c55545adab782b3a25 (opens in a new tab)
- https://git.kernel.org/stable/c/fdaaf45786dc8c17a72901021772520fceb18f8c (opens in a new tab)
- https://git.kernel.org/stable/c/70e5b46beba64706430a87a6d516054225e8ac8a (opens in a new tab)
- https://git.kernel.org/stable/c/e4db04f7d3dbbe16680e0ded27ea2a65b10f766a (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50845)Record last updated .