CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
ipv6: Fix an uninit variable access bug in __ip6_make_skb()
Syzbot reported a bug as following:
=====================================================BUG: KMSAN: uninit-value in arch_atomic64_inc arch/x86/include/asm/atomic64_64.h:88[inline]BUG: KMSAN: uninit-value in arch_atomic_long_inc include/linux/atomic/atomic-long.h:161[inline]BUG: KMSAN: uninit-value in atomic_long_inc include/linux/atomic/atomic-instrumented.h:1429[inline]BUG: KMSAN: uninit-value in __ip6_make_skb+0x2f37/0x30f0net/ipv6/ip6_output.c:1956arch_atomic64_incarch/x86/include/asm/atomic64_64.h:88[inline]arch_atomic_long_incinclude/linux/atomic/atomic-long.h:161[inline]atomic_long_incinclude/linux/atomic/atomic-instrumented.h:1429[inline]__ip6_make_skb+0x2f37/0x30f0net/ipv6/ip6_output.c:1956ip6_finish_skbinclude/net/ipv6.h:1122[inline]ip6_push_pending_frames+0x10e/0x550net/ipv6/ip6_output.c:1987rawv6_push_pending_frames+0xb12/0xb90net/ipv6/raw.c:579rawv6_sendmsg+0x297e/0x2e60net/ipv6/raw.c:922inet_sendmsg+0x101/0x180net/ipv4/af_inet.c:827sock_sendmsg_nosecnet/socket.c:714[inline]sock_sendmsgnet/socket.c:734[inline]____sys_sendmsg+0xa8e/0xe70net/socket.c:2476___sys_sendmsg+0x2a1/0x3f0net/socket.c:2530__sys_sendmsgnet/socket.c:2559[inline]__do_sys_sendmsgnet/socket.c:2568[inline]__se_sys_sendmsgnet/socket.c:2566[inline]__x64_sys_sendmsg+0x367/0x540net/socket.c:2566do_syscall_x64arch/x86/entry/common.c:50[inline]do_syscall_64+0x3d/0xb0arch/x86/entry/common.c:80entry_SYSCALL_64_after_hwframe+0x63/0xcdUninit was created at:slab_post_alloc_hookmm/slab.h:766[inline]slab_alloc_nodemm/slub.c:3452[inline]__kmem_cache_alloc_node+0x71f/0xce0mm/slub.c:3491__do_kmalloc_nodemm/slab_common.c:967[inline]__kmalloc_node_track_caller+0x114/0x3b0mm/slab_common.c:988kmalloc_reservenet/core/skbuff.c:492[inline]__alloc_skb+0x3af/0x8f0net/core/skbuff.c:565alloc_skbinclude/linux/skbuff.h:1270[inline]__ip6_append_data+0x51c1/0x6bb0net/ipv6/ip6_output.c:1684ip6_append_data+0x411/0x580net/ipv6/ip6_output.c:1854rawv6_sendmsg+0x2882/0x2e60net/ipv6/raw.c:915inet_sendmsg+0x101/0x180net/ipv4/af_inet.c:827sock_sendmsg_nosecnet/socket.c:714[inline]sock_sendmsgnet/socket.c:734[inline]____sys_sendmsg+0xa8e/0xe70net/socket.c:2476___sys_sendmsg+0x2a1/0x3f0net/socket.c:2530__sys_sendmsgnet/socket.c:2559[inline]__do_sys_sendmsgnet/socket.c:2568[inline]__se_sys_sendmsgnet/socket.c:2566[inline]__x64_sys_sendmsg+0x367/0x540net/socket.c:2566do_syscall_x64arch/x86/entry/common.c:50[inline]do_syscall_64+0x3d/0xb0arch/x86/entry/common.c:80entry_SYSCALL_64_after_hwframe+0x63/0xcd
It is because icmp6hdr does not in skb linear region under the scenario
of SOCK_RAW socket. Access icmp6_hdr(skb)->icmp6_type directly will
trigger the uninit variable access bug.
Use a local variable icmp6_type to carry the correct value in different
scenarios.