{"id":"CVE-2023-53420","state":"PUBLISHED","title":"ntfs: Fix panic about slab-out-of-bounds caused by ntfs_listxattr()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: Fix panic about slab-out-of-bounds caused by ntfs_listxattr()\n\nHere is a BUG report from syzbot:\n\nBUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:191 [inline]\nBUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x401/0x570 fs/ntfs3/xattr.c:710\nRead of size 1 at addr ffff888021acaf3d by task syz-executor128/3632\n\nCall Trace:\n ntfs_list_ea fs/ntfs3/xattr.c:191 [inline]\n ntfs_listxattr+0x401/0x570 fs/ntfs3/xattr.c:710\n vfs_listxattr fs/xattr.c:457 [inline]\n listxattr+0x293/0x2d0 fs/xattr.c:804\n\nFix the logic of ea_all iteration. When the ea->name_len is 0,\nreturn immediately, or Add2Ptr() would visit invalid memory\nin the next loop.\n\n[almaz.alexandrovich@paragon-software.com: lines of the patch have changed]","publishedAt":"2025-09-18T16:04:03.754Z","updatedAt":"2026-08-05T09:14:02.648Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"f3380d895e28a32632eb3609f5bd515adee4e5a1","versionType":"git"},{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"c86a2517df6c9304db8fb12b77136ec7a5d85994","versionType":"git"},{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"721b75ea2dfce53a8890dff92ae01afca8e74f88","versionType":"git"},{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"3c675ddffb17a8b1e32efad5c983254af18b12c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/xattr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.39","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.4","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/xattr.c"]}],"references":["https://git.kernel.org/stable/c/f3380d895e28a32632eb3609f5bd515adee4e5a1","https://git.kernel.org/stable/c/c86a2517df6c9304db8fb12b77136ec7a5d85994","https://git.kernel.org/stable/c/721b75ea2dfce53a8890dff92ae01afca8e74f88","https://git.kernel.org/stable/c/3c675ddffb17a8b1e32efad5c983254af18b12c2"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53420.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53420","state":"PUBLISHED","datePublished":"2025-09-18T16:04:03.754Z","dateUpdated":"2026-08-05T09:14:02.648Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:54:09.741Z"},"containers":{"cna":{"title":"ntfs: Fix panic about slab-out-of-bounds caused by ntfs_listxattr()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: Fix panic about slab-out-of-bounds caused by ntfs_listxattr()\n\nHere is a BUG report from syzbot:\n\nBUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:191 [inline]\nBUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x401/0x570 fs/ntfs3/xattr.c:710\nRead of size 1 at addr ffff888021acaf3d by task syz-executor128/3632\n\nCall Trace:\n ntfs_list_ea fs/ntfs3/xattr.c:191 [inline]\n ntfs_listxattr+0x401/0x570 fs/ntfs3/xattr.c:710\n vfs_listxattr fs/xattr.c:457 [inline]\n listxattr+0x293/0x2d0 fs/xattr.c:804\n\nFix the logic of ea_all iteration. When the ea->name_len is 0,\nreturn immediately, or Add2Ptr() would visit invalid memory\nin the next loop.\n\n[almaz.alexandrovich@paragon-software.com: lines of the patch have changed]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"f3380d895e28a32632eb3609f5bd515adee4e5a1","versionType":"git"},{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"c86a2517df6c9304db8fb12b77136ec7a5d85994","versionType":"git"},{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"721b75ea2dfce53a8890dff92ae01afca8e74f88","versionType":"git"},{"version":"be71b5cba2e6485e8959da7a9f9a44461a1bb074","status":"affected","lessThan":"3c675ddffb17a8b1e32efad5c983254af18b12c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/xattr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.39","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.4","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/xattr.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f3380d895e28a32632eb3609f5bd515adee4e5a1"},{"url":"https://git.kernel.org/stable/c/c86a2517df6c9304db8fb12b77136ec7a5d85994"},{"url":"https://git.kernel.org/stable/c/721b75ea2dfce53a8890dff92ae01afca8e74f88"},{"url":"https://git.kernel.org/stable/c/3c675ddffb17a8b1e32efad5c983254af18b12c2"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in ntfs3 on-disk EA parsing reached via the listxattr syscall (ntfs_listxattr → ntfs_list_ea) on a mounted NTFS volume; malicious ATTR_EA data comes from the filesystem image, not from network protocol input.\nAC:L - A crafted NTFS image with a zero name_len EA reliably triggers the out-of-bounds read on listxattr with no race or other conditions outside the attacker’s control.\nPR:L - vfs_listxattr does not require MAY_READ—only path traversal and LSM listxattr hooks—so an unprivileged local user who can reach a file on a mounted NTFS volume can invoke the vulnerable path.\nUI:N - Once an NTFS volume is mounted (common for removable/dual-boot/shared storage), the attacker triggers the bug solely by calling listxattr; no further victim interaction is required.\nS:U - Impact is confined to the local kernel’s memory/availability authority; this is standard kernel memory-safety impact with no VM, IOMMU, or other security-authority boundary crossed.\nC:H - The slab OOB read in ntfs_list_ea can read past the kmalloc’d EA buffer and, on continued iteration, memcpy attacker-influenced lengths of adjacent slab memory into the listxattr buffer that is copied to userspace.\nI:N - The defect is an out-of-bounds read only; memcpy destinations are the legitimate list buffer under a size check, with no OOB write or other kernel integrity corruption primitive.\nA:H - The OOB access causes KASAN reports and can oops/panic the kernel when invalid EA iteration touches unmapped or poisoned slab memory, enabling denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:14:02.648Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.121"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.4.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.1,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-53420","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T19:11:54.225188Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","type":"CWE","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T19:13:10.492Z"}}]}}}