{"id":"CVE-2026-99815","summary":"fs/ntfs3: validate EA entry layout against ef-\u003esize in ntfs_read_ea","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: validate EA entry layout against ef-\u003esize in ntfs_read_ea\n\nIn ntfs_read_ea(), the ef-\u003esize branch only checks that the declared\nentry size fits the remaining buffer; unlike the zero-size branch it\nnever verifies that the entry's own name and value fit inside ef-\u003esize.\nA crafted image can thus present an in-bounds ef-\u003esize with an arbitrary\nelength, which find_ea()/ntfs_get_ea() later use as the memcpy length,\nreading past the allocation and leaking adjacent heap memory:\n\n  BUG: KASAN: slab-out-of-bounds in ntfs_get_ea (fs/ntfs3/xattr.c:302)\n  Read of size 65535 at addr ffff888010770b0f by task exploit/142\n   ...\n   __asan_memcpy (mm/kasan/shadow.c:105)\n   ntfs_get_ea (fs/ntfs3/xattr.c:302)\n   ntfs_getxattr (fs/ntfs3/xattr.c:848)\n   __vfs_getxattr (fs/xattr.c:446)\n   vfs_getxattr (fs/xattr.c:479)\n   do_getxattr (fs/xattr.c:808)\n   filename_getxattr (fs/xattr.c:837)\n   path_getxattrat (fs/xattr.c:876)\n   do_syscall_64 (arch/x86/entry/syscall_64.c:94)\n  ...\n  The buggy address is located 15 bytes inside of\n   allocated 20-byte region, cache kmalloc-32\n\nValidate the name/value layout in the ef-\u003esize branch too, bounding it\nagainst ef-\u003esize, as the zero-size branch validates it against the\nbuffer.\n\n[almaz.alexandrovich@paragon-software.com: remove duplicate check of need \u003e ea_size]","modified":"2026-11-30T09:00:31.225010018Z","published":"2026-11-30T07:52:18.440Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99815.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/01e56820ef52d14a5560fb7c0c6f2f75ef6f9393"},{"type":"WEB","url":"https://git.kernel.org/stable/c/53d58a880c6054761d753c7556c298c8898dddf8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a2cdad7cf53fcae9bb9641b578ec10d3c0dae16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d878b65f8de50bcd350577274ee2269ec966e06"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a43bdd6efbe733c9d5072d045294247a4b1e4d6e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bdd318f6aa4150b252c86dd378fa43d9a51107ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfb7f7493c172742ab16fe54b3b042160ee5501a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99815.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99815"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"be71b5cba2e6485e8959da7a9f9a44461a1bb074"},{"fixed":"9d878b65f8de50bcd350577274ee2269ec966e06"},{"fixed":"53d58a880c6054761d753c7556c298c8898dddf8"},{"fixed":"bfb7f7493c172742ab16fe54b3b042160ee5501a"},{"fixed":"a43bdd6efbe733c9d5072d045294247a4b1e4d6e"},{"fixed":"bdd318f6aa4150b252c86dd378fa43d9a51107ff"},{"fixed":"5a2cdad7cf53fcae9bb9641b578ec10d3c0dae16"},{"fixed":"01e56820ef52d14a5560fb7c0c6f2f75ef6f9393"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99815.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99815.json"}}],"schema_version":"1.9.2"}