CVE
CVE-2024-26625
CNA 原文 · 原文(英文)
In the Linux kernel, the following vulnerability has been resolved: llc: call sock_orphan() at release time syzbot reported an interesting trace [1] caused by a stale sk->sk_wq pointer in a closed llc socket. In commit ff7b11aa481f ("net: socket: set sock->sk to NULL after calling proto_ops::release()") Eric Biggers hinted that some protocols are missing a sock_orphan(), we need to perform a full audit. In net-next, I plan to clear sock->sk from sock_orphan() and amend Eric patch to add a warning. [1] BUG: KASAN: slab-use-after-free in list_empty include/linux/list.h:373 [inline] BUG: KASAN: slab-use-after-free in waitqueue_active include/linux/wait.h:127 [inline] BUG: KASAN: slab-use-after-free in sock_def_write_space_wfree net/core/sock.c:3384 [inline] BUG: KASAN: slab-use-after-free in sock_wfree+0x9a8/0x9d0 net/core/sock.c:2468 Read of size 8 at addr ffff88802f4fc880 by task ksoftirqd/1/27 CPU: 1 PID: 27 Comm: ksoftirqd/1 Not tainted 6.8.0-rc1-syzkaller-00049-g6098d87eaf31 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc4/0x620 mm/kasan/report.c:488 kasan_report+0xda/0x110 mm/kasan/report.c:601 list_empty include/linux/list.h:373 [inline] waitqueue_active include/linux/wait.h:127 [inline] sock_def_write_space_wfree net/core/sock.c:3384 [inline] sock_wfree+0x9a8/0x9d0 net/core/sock.c:2468 skb_release_head_state+0xa3/0x2b0 net/core/skbuff.c:1080 skb_release_all net/core/skbuff.c:1092 [inline] napi_consume_skb+0x119/0x2b0 net/core/skbuff.c:1404 e1000_unmap_and_free_tx_resource+0x144/0x200 drivers/net/ethernet/intel/e1000/e1000_main.c:1970 e1000_clean_tx_irq drivers/net/ethernet/intel/e1000/e1000_main.c:3860 [inline] e1000_clean+0x4a1/0x26e0 drivers/net/ethernet/intel/e1000/e1000_main.c:3801…
受影响版本
- 6.8-rc2仅此版本
- 6.8-rc1仅此版本
- ≥ 6.7, < 6.7.4修复版本 6.7.4
- ≥ 6.2, < 6.6.16修复版本 6.6.16
- ≥ 5.16, < 6.1.77修复版本 6.1.77
- ≥ 5.11, < 5.15.149修复版本 5.15.149
- ≥ 5.5, < 5.10.210修复版本 5.10.210
- ≥ 4.20, < 5.4.269修复版本 5.4.269
- ≥ 2.6.35, < 4.19.307修复版本 4.19.307
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/3151051b787f7cd7e3329ea0016eb9113c248812 · Patch
- git.kernel.org/stable/c/64babb17e8150771c58575d8f93a35c5296b499f · Patch
- git.kernel.org/stable/c/6b950c712a9a05cdda4aea7fcb2848766576c11b · Patch
- git.kernel.org/stable/c/8e51f084b5716653f19e291ed5f026791d4b3ed4 · Patch
- git.kernel.org/stable/c/9c333d9891f34cea8af1b229dc754552304c8eee · Patch
- git.kernel.org/stable/c/aa2b2eb3934859904c287bf5434647ba72e14c1c · Patch
- git.kernel.org/stable/c/d0b5b1f12429df3cd9751ab8b2f53729b77733b7 · Patch
- git.kernel.org/stable/c/dbc1b89981f9c5360277071d33d7f04a43ffda4a · Patch
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。