fs/ntfs3: validate ef->size covers the record's name and value
Published Sep 16, 2026
9.1
CRITICALCVSS 3.1
EPSS 0.70%
Description
When an EA record has a non-zero ef->size, ntfs_read_ea() only checks that the record fits in the remaining buffer (ea_size > bytes), not that ef->size is large enough to hold the record's own name_len + 1 + elength.
A crafted image can pass validation with, e.g., ef->size = 24 but elength = 0xffff. ntfs_get_ea() then trusts elength and copies it out of the undersized record, reading past the kmalloc(info->size) allocation and leaking heap memory to userspace via getxattr():
BUG: KASAN: slab-out-of-bounds in ntfs_get_ea (fs/ntfs3/xattr.c:302) Read of size 65535 at addr ffff888100794550 by task exploit __asan_memcpy (mm/kasan/shadow.c:105) ntfs_get_ea (fs/ntfs3/xattr.c:302) ntfs_getxattr (fs/ntfs3/xattr.c:848) __vfs_getxattr (fs/xattr.c:441) vfs_getxattr (fs/xattr.c:474) do_getxattr (fs/xattr.c:800) path_getxattrat (fs/xattr.c:868) do_syscall_64 (arch/x86/entry/syscall_64.c:94)
The buggy address is located 80 bytes inside of allocated 84-byte region in cache kmalloc-96
Compute the size the record needs and require ef->size to cover it.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.15.121StatusaffectedConstraints<5.15.221
- Version 6.1.40StatusaffectedConstraints<6.1.188
- Version
-
- Version 6.2StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<6.2
- Version 5.15.221StatusunaffectedConstraints<=5.15.*
- Version 6.1.188StatusunaffectedConstraints<=6.1.*
- Version 6.12.110StatusunaffectedConstraints<=6.12.*
- Version 6.18.52StatusunaffectedConstraints<=6.18.*
- Version 6.6.157StatusunaffectedConstraints<=6.6.*
- Version 7.2.6StatusunaffectedConstraints<=7.2.*
- Version 7.3-rc1StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
No CWE recorded.
References (8)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-80300 Advisory
- https://git.kernel.org/stable/c/077df8464cf24f8ffc82fb6efec2ae600686e699
- https://git.kernel.org/stable/c/28a924c7e67e6d71abeb04860b61166fecb027fc
- https://git.kernel.org/stable/c/aab1880058ac767d3ea9388a9a7221c776c22c44
- https://git.kernel.org/stable/c/b27e68ad818a4ca2cef8f35f97e75d756714c818
- https://git.kernel.org/stable/c/c22f91d82cb9a29d22bdffdce6c803467984ad0c
- https://git.kernel.org/stable/c/c8a109c9e23a2c7fd548473dde728b2cb8188146
- https://git.kernel.org/stable/c/d585ed08308909c7e6fefb4e8a258aeb29b19ff9
Change history (0)
No recorded changes yet.