CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
7.8 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
hfs: Fix OOB Write in hfs_asc2mac
Syzbot reported a OOB Write bug:
loop0: detected capacity change from 0 to 64
==================================================================BUG: KASAN: slab-out-of-bounds in hfs_asc2mac+0x467/0x9a0fs/hfs/trans.c:133Write of size 1 at addr ffff88801848314e by task syz-executor391/3632
Call Trace:<TASK>__dump_stacklib/dump_stack.c:88[inline]dump_stack_lvl+0x1b1/0x28elib/dump_stack.c:106print_address_description+0x74/0x340mm/kasan/report.c:284print_report+0x107/0x1f0mm/kasan/report.c:395kasan_report+0xcd/0x100mm/kasan/report.c:495hfs_asc2mac+0x467/0x9a0fs/hfs/trans.c:133hfs_cat_build_key+0x92/0x170fs/hfs/catalog.c:28hfs_lookup+0x1ab/0x2c0fs/hfs/dir.c:31lookup_openfs/namei.c:3391[inline]open_last_lookupsfs/namei.c:3481[inline]path_openat+0x10e6/0x2df0fs/namei.c:3710do_filp_open+0x264/0x4f0fs/namei.c:3740
If in->len is much larger than HFS_NAMELEN(31) which is the maximum
length of an HFS filename, a OOB write could occur in hfs_asc2mac(). In
that case, when the dst reaches the boundary, the srclen is still
greater than 0, which causes a OOB write.
Fix this by adding a check on dstlen in while() before writing to dst
address.