CVE-2026-89779 PUBLISHED

fs/ntfs3: validate ef->size covers the record's name and value

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: validate ef->size covers the record's name and value

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS Score: 9.1

AV:N - ntfs3 registers export_operations and an empty-prefix xattr handler, so ksmbd SMB2 QUERY_INFO FILE_FULL_EA and nfsd GETXATTR reach vfs_getxattr→ntfs_getxattr→ntfs_get_ea on an exported NTFS volume; a crafted EA named user.* is listed and returned over the network on NAS/hybrid SMB/NFS servers. AC:L - The attacker fully controls on-disk EA_FULL fields; ef->size=24 with elength=0xffff passes ntfs_read_ea() and makes ntfs_get_ea() memcpy 65535 bytes past the kmalloc(info->size) object deterministically, with no race or attacker-uncontrollable layout. PR:N - The leak needs only read access to a file carrying the crafted EA: a ksmbd guest/anonymous client with FILE_READ_EA, an NFSv4 AUTH_SYS/guest GETXATTR, or automount of attacker media, with no local account or CAP_SYS_ADMIN on the host. UI:N - After the NTFS volume is mounted and exported—the normal state for NAS, dual-boot, and automounted removable NTFS—the attacker issues SMB QUERY_INFO, NFS GETXATTR, or getxattr(2) themselves; no further victim clicks, prompts, or confirmations are required. S:U - The slab over-read and heap leak occur in the host kernel ntfs3 xattr path under a single security authority; this is standard filesystem exploitation, not a VM escape, IOMMU/DMA bypass, or other cross-boundary breakout. C:H - ntfs_get_ea() copies attacker-chosen elength (up to 65535) bytes from past the kmalloc(info->size) EA buffer into the getxattr output that VFS, ksmbd, and nfsd return to the caller; a ~64KiB kernel-heap leak to userspace or a remote SMB/NFS client is Confidentiality High. I:N - The destination is sized from the probed elength (ksmbd/nfsd) or the caller-supplied size with an explicit len>size ERANGE check, so this is a source over-read into a bounds-checked xattr buffer, not an out-of-bounds write, UAF, or control-flow hijack primitive. A:H - KASAN reports a 65535-byte slab-out-of-bounds read in ntfs_get_ea from an 84-byte kmalloc-96 object; that unbounded heap over-read can fault unmapped adjacent slab pages and oops or panic the kernel, which is Availability High.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 333feb7ba84f69f9b423422417aaac54fd9e7c84 to b27e68ad818a4ca2cef8f35f97e75d756714c818 (excl.)
  • affected from 000a9a72efa4a9df289bab9c9e8ba1639c72e0d6 to 28a924c7e67e6d71abeb04860b61166fecb027fc (excl.)
  • affected from 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b to d585ed08308909c7e6fefb4e8a258aeb29b19ff9 (excl.)
  • affected from 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b to 077df8464cf24f8ffc82fb6efec2ae600686e699 (excl.)
  • affected from 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b to aab1880058ac767d3ea9388a9a7221c776c22c44 (excl.)
  • affected from 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b to c8a109c9e23a2c7fd548473dde728b2cb8188146 (excl.)
  • affected from 0e8235d28f3a0e9eda9f02ff67ee566d5f42b66b to c22f91d82cb9a29d22bdffdce6c803467984ad0c (excl.)
  • affected from 5.15.121 to 5.15.221 (excl.)
  • affected from 6.1.40 to 6.1.188 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.2 is affected
  • unaffected from 0 to 6.2 (excl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References