CVE
CVE-2024-46782
CNA 原文 · 原文(英文)
In the Linux kernel, the following vulnerability has been resolved: ila: call nf_unregister_net_hooks() sooner syzbot found an use-after-free Read in ila_nf_input [1] Issue here is that ila_xlat_exit_net() frees the rhashtable, then call nf_unregister_net_hooks(). It should be done in the reverse way, with a synchronize_rcu(). This is a good match for a pre_exit() method. [1] BUG: KASAN: use-after-free in rht_key_hashfn include/linux/rhashtable.h:159 [inline] BUG: KASAN: use-after-free in __rhashtable_lookup include/linux/rhashtable.h:604 [inline] BUG: KASAN: use-after-free in rhashtable_lookup include/linux/rhashtable.h:646 [inline] BUG: KASAN: use-after-free in rhashtable_lookup_fast+0x77a/0x9b0 include/linux/rhashtable.h:672 Read of size 4 at addr ffff888064620008 by task ksoftirqd/0/16 CPU: 0 UID: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.11.0-rc4-syzkaller-00238-g2ad6d23f465a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 rht_key_hashfn include/linux/rhashtable.h:159 [inline] __rhashtable_lookup include/linux/rhashtable.h:604 [inline] rhashtable_lookup include/linux/rhashtable.h:646 [inline] rhashtable_lookup_fast+0x77a/0x9b0 include/linux/rhashtable.h:672 ila_lookup_wildcards net/ipv6/ila/ila_xlat.c:132 [inline] ila_xlat_addr net/ipv6/ila/ila_xlat.c:652 [inline] ila_nf_input+0x1fe/0x3c0 net/ipv6/ila/ila_xlat.c:190 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow+0xc3/0x220 net/netfilter/core.c:626 nf_hook include/linux/netfilter.h:269 [inline] NF_HOOK+0x29e/0x450 include/linux/netfilter.h:312 __netif_receive_skb_one_core net/core/dev.c:5661 [inline] __netif_receive_skb+0x1ea/0x650…
受影响版本
- 6.11-rc6仅此版本
- 6.11-rc5仅此版本
- 6.11-rc4仅此版本
- 6.11-rc3仅此版本
- 6.11-rc2仅此版本
- 6.11-rc1仅此版本
- ≥ 6.7, < 6.10.10修复版本 6.10.10
- ≥ 6.2, < 6.6.51修复版本 6.6.51
- ≥ 5.16, < 6.1.110修复版本 6.1.110
- ≥ 5.11, < 5.15.167修复版本 5.15.167
- ≥ 5.5, < 5.10.226修复版本 5.10.226
- ≥ 4.20, < 5.4.284修复版本 5.4.284
- ≥ 4.5, < 4.19.322修复版本 4.19.322
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/031ae72825cef43e4650140b800ad58bf7a6a466 · Patch
- git.kernel.org/stable/c/18a5a16940464b301ea91bf5da3a324aedb347b2 · Patch
- git.kernel.org/stable/c/43d34110882b97ba1ec66cc8234b18983efb9abf · Patch
- git.kernel.org/stable/c/47abd8adddbc0aecb8f231269ef659148d5dabe4 · Patch
- git.kernel.org/stable/c/925c18a7cff93d8a4320d652351294ff7d0ac93c · Patch
- git.kernel.org/stable/c/93ee345ba349922834e6a9d1dadabaedcc12dce6 · Patch
- git.kernel.org/stable/c/bda4d84ac0d5421b346faee720011f58bdb99673 · Patch
- git.kernel.org/stable/c/dcaf4e2216824839d26727a15b638c6a677bd9fc · Patch
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。