{"id":"CVE-2022-50845","aliases":["CVE-2022-50845"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: fix inode leak in ext4_xattr_inode_create() on an error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix inode leak in ext4_xattr_inode_create() on an error path\n\nThere is issue as follows when do setxattr with inject fault:\n\n[localhost]# fsck.ext4  -fn  /dev/sda\ne2fsck 1.46.6-rc1 (12-Sep-2022)\nPass 1: Checking inodes, blocks, and sizes\nPass 2: Checking directory structure\nPass 3: Checking directory connectivity\nPass 4: Checking reference counts\nUnattached zero-length inode 15.  Clear? no\n\nUnattached inode 15\nConnect to /lost+found? no\n\nPass 5: Checking group summary information\n\n/dev/sda: ********** WARNING: Filesystem still has errors **********\n\n/dev/sda: 15/655360 files (0.0% non-contiguous), 66755/2621440 blocks\n\nThis occurs in 'ext4_xattr_inode_create()'. If 'ext4_mark_inode_dirty()'\nfails, dropping i_nlink of the inode is needed. Or will lead to inode leak.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix inode leak in ext4_xattr_inode_create() on an error path\n\nThere is issue as follows when do setxattr with inject fault:\n\n[localhost]# fsck.ext4  -fn  /dev/sda\ne2fsck 1.46.6-rc1 (12-Sep-2022)\nPass 1: Checking inodes, blocks, and sizes\nPass 2: Checking directory structure\nPass 3: Checking directory connectivity\nPass 4: Checking reference counts\nUnattached zero-length inode 15.  Clear? no\n\nUnattached inode 15\nConnect to /lost+found? no\n\nPass 5: Checking group summary information\n\n/dev/sda: ********** WARNING: Filesystem still has errors **********\n\n/dev/sda: 15/655360 files (0.0% non-contiguous), 66755/2621440 blocks\n\nThis occurs in 'ext4_xattr_inode_create()'. If 'ext4_mark_inode_dirty()'\nfails, dropping i_nlink of the inode is needed. Or will lead to inode leak.","source":"cvelist"}],"published":"2025-12-30T12:11:02.615Z","modified":"2026-06-17T05:24:17.157Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"0f709e08caffb41bbc9b38b9a4c1bd0769794007","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"eab94a46560f68d4bcd15222701ced479f84f427","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"9ef603086c5b796fde1c7f22a17d0fc826ba54cb","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"9882601ee689975c1c0076ee65bf222a2a35e535","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"322cf639b0b7f137543072c55545adab782b3a25","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"fdaaf45786dc8c17a72901021772520fceb18f8c","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"70e5b46beba64706430a87a6d516054225e8ac8a","status":"affected"},{"type":"git","introduced":"bd3b963b273e247e13979f98812a6e4979b5c1e4","fixed":"e4db04f7d3dbbe16680e0ded27ea2a65b10f766a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.87","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.18","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.4","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0f709e08caffb41bbc9b38b9a4c1bd0769794007","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eab94a46560f68d4bcd15222701ced479f84f427","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ef603086c5b796fde1c7f22a17d0fc826ba54cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9882601ee689975c1c0076ee65bf222a2a35e535","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/322cf639b0b7f137543072c55545adab782b3a25","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fdaaf45786dc8c17a72901021772520fceb18f8c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70e5b46beba64706430a87a6d516054225e8ac8a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e4db04f7d3dbbe16680e0ded27ea2a65b10f766a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50845","url":"https://www.cve.org/CVERecord?id=CVE-2022-50845","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:13.671Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50845","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50845","licence":"Public domain","modified":"2026-06-17T05:24:17.157Z"}],"updatedAt":"2026-11-25T22:58:21.378Z","epss":{"score":0.00269,"percentile":0.20369,"date":"2026-12-02T12:00:21.000Z"}}