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:
hfsplus: Add a sanity check for btree node size
Syzbot reported an uninit-value bug in [1] with a corrupted HFS+ image,
during the file system mounting process, specifically while loading the
catalog, a corrupted node_size value of 1 caused the rec_off argument
passed to hfs_bnode_read_u16() (within hfs_bnode_find()) to be excessively
large. Consequently, the function failed to return a valid value to
initialize the off variable, triggering the bug [1].
Every node starts from BTree node descriptor: struct hfs_bnode_desc.
So, the size of node cannot be lesser than that. However, technical
specification declares that: "The node size (which is expressed in bytes)
must be power of two, from 512 through 32,768, inclusive." Add a check
for btree node size base on technical specification.
[1]
BUG: KMSAN: uninit-value in hfsplus_bnode_find+0x141c/0x1600fs/hfsplus/bnode.c:584hfsplus_bnode_find+0x141c/0x1600fs/hfsplus/bnode.c:584hfsplus_btree_open+0x169a/0x1e40fs/hfsplus/btree.c:382hfsplus_fill_super+0x111f/0x2770fs/hfsplus/super.c:553get_tree_bdev_flags+0x6e6/0x920fs/super.c:1694get_tree_bdev+0x38/0x50fs/super.c:1717hfsplus_get_tree+0x35/0x40fs/hfsplus/super.c:709vfs_get_tree+0xb3/0x5d0fs/super.c:1754fc_mountfs/namespace.c:1193[inline]