CVE-2024-57900

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
15/01/2025
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ila: serialize calls to nf_register_net_hooks()<br /> <br /> syzbot found a race in ila_add_mapping() [1]<br /> <br /> commit 031ae72825ce ("ila: call nf_unregister_net_hooks() sooner")<br /> attempted to fix a similar issue.<br /> <br /> Looking at the syzbot repro, we have concurrent ILA_CMD_ADD commands.<br /> <br /> Add a mutex to make sure at most one thread is calling nf_register_net_hooks().<br /> <br /> [1]<br /> BUG: KASAN: slab-use-after-free in rht_key_hashfn include/linux/rhashtable.h:159 [inline]<br /> BUG: KASAN: slab-use-after-free in __rhashtable_lookup.constprop.0+0x426/0x550 include/linux/rhashtable.h:604<br /> Read of size 4 at addr ffff888028f40008 by task dhcpcd/5501<br /> <br /> CPU: 1 UID: 0 PID: 5501 Comm: dhcpcd Not tainted 6.13.0-rc4-syzkaller-00054-gd6ef8b40d075 #0<br /> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024<br /> Call Trace:<br /> <br /> __dump_stack lib/dump_stack.c:94 [inline]<br /> dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120<br /> print_address_description mm/kasan/report.c:378 [inline]<br /> print_report+0xc3/0x620 mm/kasan/report.c:489<br /> kasan_report+0xd9/0x110 mm/kasan/report.c:602<br /> rht_key_hashfn include/linux/rhashtable.h:159 [inline]<br /> __rhashtable_lookup.constprop.0+0x426/0x550 include/linux/rhashtable.h:604<br /> rhashtable_lookup include/linux/rhashtable.h:646 [inline]<br /> rhashtable_lookup_fast include/linux/rhashtable.h:672 [inline]<br /> ila_lookup_wildcards net/ipv6/ila/ila_xlat.c:127 [inline]<br /> ila_xlat_addr net/ipv6/ila/ila_xlat.c:652 [inline]<br /> ila_nf_input+0x1ee/0x620 net/ipv6/ila/ila_xlat.c:185<br /> nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]<br /> nf_hook_slow+0xbb/0x200 net/netfilter/core.c:626<br /> nf_hook.constprop.0+0x42e/0x750 include/linux/netfilter.h:269<br /> NF_HOOK include/linux/netfilter.h:312 [inline]<br /> ipv6_rcv+0xa4/0x680 net/ipv6/ip6_input.c:309<br /> __netif_receive_skb_one_core+0x12e/0x1e0 net/core/dev.c:5672<br /> __netif_receive_skb+0x1d/0x160 net/core/dev.c:5785<br /> process_backlog+0x443/0x15f0 net/core/dev.c:6117<br /> __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6883<br /> napi_poll net/core/dev.c:6952 [inline]<br /> net_rx_action+0xa94/0x1010 net/core/dev.c:7074<br /> handle_softirqs+0x213/0x8f0 kernel/softirq.c:561<br /> __do_softirq kernel/softirq.c:595 [inline]<br /> invoke_softirq kernel/softirq.c:435 [inline]<br /> __irq_exit_rcu+0x109/0x170 kernel/softirq.c:662<br /> irq_exit_rcu+0x9/0x30 kernel/softirq.c:678<br /> instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]<br /> sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.5 (including) 5.4.289 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.233 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.176 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.124 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.70 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.9 (excluding)
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*