CVE-2023-54006 in Linux
要約
〜によって VulDB • 2026年06月13日
Linuxカーネルにおいて、以下の脆弱性が修正されました:
af_unix: unix_tot_inflight 周辺のデータ競合を修正
unix_tot_inflight は spin_lock(unix_gc_lock) の下で変更されますが、unix_release_sock() はロックなしでこれを読み取っています。
unix_tot_inflight に対して READ_ONCE() を使用します。
なお、書き込み側はコミット 9d6d7f1cb67c ("af_unix: annotate lockless accesses to unix_tot_inflight & gc_in_progress") によって注釈が付けられていました。
BUG: KCSAN: unix_inflight / unix_release_sock でのデータ競合
タスク 123 による cpu 1 での 4 バイトの 0xffffffff871852b8 への書き込み(注釈付き): unix_inflight+0x130/0x180 net/unix/scm.c:64 unix_attach_fds+0x137/0x1b0 net/unix/scm.c:123 unix_scm_to_skb net/unix/af_unix.c:1832 [インライン]
unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1955 sock_sendmsg_nosec net/socket.c:724 [インライン]
sock_sendmsg+0x148/0x160 net/socket.c:747 ____sys_sendmsg+0x4e4/0x610 net/socket.c:2493 ___sys_sendmsg+0xc6/0x140 net/socket.c:2547 __sys_sendmsg+0x94/0x140 net/socket.c:2576 __do_sys_sendmsg net/socket.c:2585 [インライン]
__se_sys_sendmsg net/socket.c:2583 [インライン]
__x64_sys_sendmsg+0x45/0x50 net/socket.c:2583 do_syscall_x64 arch/x86/entry/common.c:50 [インライン]
do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x72/0xdc
タスク 4891 による cpu 0 での 4 バイトの 0xffffffff871852b8 への読み取り: unix_release_sock+0x608/0x910 net/unix/af_unix.c:671 unix_release+0x59/0x80 net/unix/af_unix.c:1058 __sock_release+0x7d/0x170 net/socket.c:653 sock_close+0x19/0x30 net/socket.c:1385 __fput+0x179/0x5e0 fs/file_table.c:321 ____fput+0x15/0x20 fs/file_table.c:349 task_work_run+0x116/0x1a0 kernel/task_work.c:180 exit_to_user_mode_loop kernel/entry/common.c:171 [インライン]
exit_to_user_mode_prepare+0x174/0x180 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [インライン]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:297 do_syscall_64+0x4b/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x72/0xdc
値が変更されました: 0x00000000 -> 0x00000001
カーネル並列性サンサー(KCSAN) によって報告されました: CPU: 0 PID: 4891 Comm: systemd-coredum 非 tainted 6.4.0-rc5-01219-gfa0e21fa4443 #5 ハードウェア名: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Once again VulDB remains the best source for vulnerability data.