CVE-2024-40957
published high CVSS 3.1 · 7.5seg6: fix parameter passing when calling NF_HOOK() in End.DX4 and End.DX6 behaviors
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7a3f5b0de3647c854e34269c3332d7a1e902901a to < af90e3d73dc45778767b2fb6e7edd57ebe34380d · 7a3f5b0de3647c854e34269c3332d7a1e902901a to < ec4d970b597ee5e17b0d8d73b7875197ce9a04d4 · 7a3f5b0de3647c854e34269c3332d7a1e902901a to < d62df86c172033679d744f07d89e93e367dd11f6 · 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 561475d53aa7e4511ee7cdba8728ded81cf1db1c · 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 9a3bc8d16e0aacd65c31aaf23a2bced3288a7779 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.96 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-053 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-836 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | bpftool | Advisory build | 7.3.0-427.33.1.el9_4 | ALSA-2024:5928 |
| Debian | bookworm | linux | Advisory build | 6.1.99-1 | DSA-5731-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-427.33.1.el9_4 | ALSA-2024:5928 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-210.163.7.el8uek | ELSA-2024-12618 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.3.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.3.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-427.33.1.el9_4 | ELSA-2024-5928 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: seg6: fix parameter passing when calling NF_HOOK() in End.DX4 and End.DX6 behaviors input_action_end_dx4() and input_action_end_dx6() are called NF_HOOK() for PREROUTING hook, in PREROUTING hook, we should passing a valid indev, and a NULL outdev to NF_HOOK(), otherwise may trigger a NULL pointer dereference, as below: [74830.647293] BUG: kernel NULL pointer dereference, address: 0000000000000090 [74830.655633] #PF: supervisor read access in kernel mode [74830.657888] #PF: error_code(0x0000) - not-present page [74830.659500] PGD 0 P4D 0 [74830.660450] Oops: 0000 [#1] PREEMPT SMP PTI ... [74830.664953] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011 [74830.666569] RIP: 0010:rpfilter_mt+0x44/0x15e [ipt_rpfilter] ... [74830.689725] Call Trace: [74830.690402] <IRQ> [74830.690953] ? show_trace_log_lvl+0x1c4/0x2df [74830.692020] ? show_trace_log_lvl+0x1c4/0x2df [74830.693095] ? ipt_do_table+0x286/0x710 [ip_tables] [74830.694275] ? __die_body.cold+0x8/0xd [74830.695205] ? page_fault_oops+0xac/0x140 [74830.696244] ? exc_page_fault+0x62/0x150 [74830.697225] ? asm_exc_page_fault+0x22/0x30 [74830.698344] ? rpfilter_mt+0x44/0x15e [ipt_rpfilter] [74830.699540] ipt_do_table+0x286/0x710 [ip_tables] [74830.700758] ? ip6_route_input+0x19d/0x240 [74830.701752] nf_hook_slow+0x3f/0xb0 [74830.702678] input_action_end_dx4+0x19b/0x1e0 [74830.703735] ? input_action_end_t+0xe0/0xe0 [74830.704734] seg6_local_input_core+0x2d/0x60 [74830.705782] lwtunnel_input+0x5b/0xb0 [74830.706690] __netif_receive_skb_one_core+0x63/0xa0 [74830.707825] process_backlog+0x99/0x140 [74830.709538] __napi_poll+0x2c/0x160 [74830.710673] net_rx_action+0x296/0x350 [74830.711860] __do_softirq+0xcb/0x2ac [74830.713049] do_softirq+0x63/0x90 input_action_end_dx4() passing a NULL indev to NF_HOOK(), and finally trigger a NULL dereference in rpfilter_mt()->rpfilter_is_loopback(): static bool rpfilter_is_loopback(const struct sk_buff *skb, const struct net_device *in) { // in is NULL return skb->pkt_type == PACKET_LOOPBACK || in->flags & IFF_LOOPBACK; }
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - The crash is triggered by a received IPv6 packet whose destination matches a configured SRv6 End.DX4/End.DX6 SID, processed in the receive softirq path (`lwtunnel_input` → `seg6_local_input_core`). No local access or account on the router is needed — any host able to route a packet to the SID reaches the code. AC:L - Once the target runs the affected (supported, documented) SRv6 + netfilter configuration, a single crafted packet deterministically dereferences NULL — no race, no memory-layout dependence, no information the attacker must first gather. The required rpfilter/fib-check rule is the default in firewalld-based distros, and the `nf_hooks_lwtunnel` gate can even be flipped host-wide by any local unprivileged user via a user namespace. PR:N - Packet processing happens before any authentication or authorization; the attacker needs no credentials or privileges on the target at all, only the ability to send a packet to the SID. UI:N - The crash occurs entirely in the kernel's packet receive path with no action by any local user or administrator beyond the pre-existing configuration. S:U - The NULL dereference occurs in the kernel of the machine receiving the packet, and the impact is confined to that same kernel/security authority — no VM, IOMMU, or sandbox boundary is crossed. C:N - The fault is a read of a fixed small offset (0x90) from a NULL pointer, which is unmapped; nothing is returned to the attacker and no kernel memory contents are exposed. I:N - No memory is written and no data is modified — the bug is a read-only dereference of a NULL device pointer, which cannot be leveraged into a write or control-flow primitive. A:H - The NULL dereference happens in softirq/interrupt context during NAPI receive processing, producing a kernel oops that panics or renders the router unusable, and it can be re-triggered by every subsequent packet.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7a3f5b0de3647c854e34269c3332d7a1e902901a to < af90e3d73dc45778767b2fb6e7edd57ebe34380d (affected · git)7a3f5b0de3647c854e34269c3332d7a1e902901a to < ec4d970b597ee5e17b0d8d73b7875197ce9a04d4 (affected · git)7a3f5b0de3647c854e34269c3332d7a1e902901a to < d62df86c172033679d744f07d89e93e367dd11f6 (affected · git)7a3f5b0de3647c854e34269c3332d7a1e902901a to < 561475d53aa7e4511ee7cdba8728ded81cf1db1c (affected · git)7a3f5b0de3647c854e34269c3332d7a1e902901a to < 9a3bc8d16e0aacd65c31aaf23a2bced3288a7779 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.96 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/561475d53aa7e4511ee7cdba8728ded81cf1db1c
- https://git.kernel.org/stable/c/9a3bc8d16e0aacd65c31aaf23a2bced3288a7779
- https://git.kernel.org/stable/c/af90e3d73dc45778767b2fb6e7edd57ebe34380d
- https://git.kernel.org/stable/c/d62df86c172033679d744f07d89e93e367dd11f6
- https://git.kernel.org/stable/c/ec4d970b597ee5e17b0d8d73b7875197ce9a04d4
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
seg6: fix parameter passing when calling NF_HOOK() in End.DX4 and End.DX6 behaviors
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 971ec936379061634a4ca95607a35f79aeb65a8e91083013cc697c7853079b90
- Ingested
- 23 Sep 2026, 08:26:02 UTC
- Source record
- Official CVE record