CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
7.1 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: validate index entry key bounds
[BUG]
A malformed NTFS directory index entry can advertise a key_size larger
than the bytes actually present in its NTFS_DE payload. Directory lookup
then passes that malformed key to cmp_fnames(), which can read past the
end of the kmalloc'ed index buffer.
BUG: KASAN: slab-out-of-bounds in fname_full_size fs/ntfs3/ntfs.h:590[inline]BUG: KASAN: slab-out-of-bounds in cmp_fnames+0x1ea/0x230fs/ntfs3/index.c:46Read of size 1 at addr ffff88801c313018 by task syz.6.3365/9279
Call Trace:__dump_stacklib/dump_stack.c:94[inline]dump_stack_lvl+0xbe/0x130lib/dump_stack.c:120print_address_descriptionmm/kasan/report.c:378[inline]print_report+0xd1/0x650mm/kasan/report.c:482kasan_report+0xfb/0x140mm/kasan/report.c:595__asan_report_load1_noabort+0x14/0x30mm/kasan/report_generic.c:378fname_full_sizefs/ntfs3/ntfs.h:590[inline]cmp_fnames+0x1ea/0x230fs/ntfs3/index.c:46hdr_find_e.isra.0+0x3ed/0x670fs/ntfs3/index.c:762indx_find+0x4b5/0x900fs/ntfs3/index.c:1186dir_search_u+0x2c0/0x460fs/ntfs3/dir.c:254ntfs_lookup+0x1cc/0x2a0fs/ntfs3/namei.c:85__lookup_slow+0x241/0x450fs/namei.c:1816lookup_slowfs/namei.c:1833[inline]walk_component+0x31c/0x570fs/namei.c:2151link_path_walk+0x592/0xd60fs/namei.c:2519path_lookupat+0x138/0x660fs/namei.c:2675filename_lookup+0x1f3/0x560fs/namei.c:2705filename_setxattr+0xad/0x1c0fs/xattr.c:660path_setxattrat+0x1d8/0x280fs/xattr.c:713__do_sys_lsetxattrfs/xattr.c:754[inline]__se_sys_lsetxattrfs/xattr.c:750[inline]__x64_sys_lsetxattr+0xd0/0x150fs/xattr.c:750 ...
Allocated by task 9279:kasan_save_stack+0x39/0x70mm/kasan/common.c:56kasan_save_track+0x14/0x40mm/kasan/common.c:77kasan_save_alloc_info+0x37/0x60mm/kasan/generic.c:573poison_kmalloc_redzonemm/kasan/common.c:400[inline]__kasan_kmalloc+0xc3/0xd0mm/kasan/common.c:417kasan_kmallocinclude/linux/kasan.h:262[inline]__do_kmalloc_nodemm/slub.c:5650[inline]__kmalloc_noprof+0x2bd/0x900mm/slub.c:5662kmalloc_noprofinclude/linux/slab.h:961[inline]indx_read+0x41d/0xad0fs/ntfs3/index.c:1059indx_find+0x447/0x900fs/ntfs3/index.c:1179dir_search_u+0x2c0/0x460fs/ntfs3/dir.c:254ntfs_lookup+0x1cc/0x2a0fs/ntfs3/namei.c:85__lookup_slow+0x241/0x450fs/namei.c:1816lookup_slowfs/namei.c:1833[inline]walk_component+0x31c/0x570fs/namei.c:2151link_path_walk+0x592/0xd60fs/namei.c:2519path_lookupat+0x138/0x660fs/namei.c:2675filename_lookup+0x1f3/0x560fs/namei.c:2705filename_setxattr+0xad/0x1c0fs/xattr.c:660path_setxattrat+0x1d8/0x280fs/xattr.c:713__do_sys_lsetxattrfs/xattr.c:754[inline]__se_sys_lsetxattrfs/xattr.c:750[inline]__x64_sys_lsetxattr+0xd0/0x150fs/xattr.c:750 ...
[CAUSE]
The index-header validators only validated INDEX_HDR-level geometry.
They did not walk each NTFS_DE to verify entry alignment, subnode
layout, or that key_size fit inside the entry payload. They also
allowed a last sentinel entry to carry a non-zero key_size.
[FIX]
Walk every NTFS_DE in ntfs3's index-header validators and reject
entries with invalid layout, mismatched subnode state, oversized
key_size, or non-zero sentinel keys before lookup or log replay can
consume them.