CVE-2025-40158
published high CVSS 3.1 · 8.1ipv6: use RCU in ip6_output()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 51585434cb3851b4dca15e67223bde8987985aae · 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 4549ce1057363c8dc072f40c6aa591c279eafed2 · 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 423895685f367b5a0a956bd14b02df0192bded4c · 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 92803b826e40e49a5e8a6e208f4b4574e9d19426 · 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 0393f85c3241c19ba8550f04a812e7d19f6b3082 · 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 11709573cc4e48dc34c80fc7ab9ce5b159e29695 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.13 (affected) · 0 to < 4.13 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.113 through 6.12.* (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2026-128 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2014 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2032 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-124.31.1.el10_1 | ALSA-2026:1690 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-124.31.1.el10_1 | ALSA-2026:1690 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.104.1.rt7.445.el8_10 | ALSA-2026:2378 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.104.1.el8_10 | ALSA-2026:2264 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-611.30.1.el9_7 | ALSA-2026:2212 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ipv6: use RCU in ip6_output() Use RCU in ip6_output() in order to use dst_dev_rcu() to prevent possible UAF. We can remove rcu_read_lock()/rcu_read_unlock() pairs from ip6_finish_output2().
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
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - `ip6_output()` is the IPv6 egress path for *forwarded* packets — `ip6_forward()` → `ip6_forward_finish()` → `dst_output()` → `ip6_output()` — so a remote, unauthenticated attacker's IPv6 traffic drives the vulnerable function on any Linux router, gateway, or container/cloud host, matching sibling CVE-2025-40168 in the same dst_dev_rcu series. AC:H - The remote attacker supplies the traffic side of the race freely, but the `dst_dev_put()` side (netdev unregister/link down, veth deletion, route-exception teardown) is an operational event they cannot influence from the network, and the freed `inet6_dev`/`net_device` must be reallocated with useful content to escalate beyond a crash. PR:N - Packets on the forwarding path reach `ip6_output()` with no credentials, no socket, and no local account on the target — the router transmits them automatically. (Even in the purely local framing the netns/CAP_NET_ADMIN half is obtainable via `unshare -Urn`, so no real privilege is required either way.) UI:N - Transmission and forwarding happen unconditionally in softirq/process context on packet arrival; no administrator or local user has to open, mount, or click anything. S:U - The freed `inet6_dev` and `net_device` are kernel objects and the corruption stays within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - This is a use-after-free read of `idev->cnf.disable_ipv6`, `idev->stats.ipv6`, `dev->hard_header_len`/`needed_headroom`, `dev->header_ops` and `dev->flags`; once the freed slab object is reallocated the attacker can steer header-expansion sizes and the egress device, yielding kernel memory disclosure and out-of-device packet leakage. I:H - `IP6_INC_STATS`/`IP6_UPD_PO_STATS` expand to `SNMP_INC_STATS64(idev->stats.ipv6, field)`, performing a 64-bit increment through a per-CPU pointer loaded from freed memory — an arbitrary-write primitive after reallocation — and `neigh_output()` → `dev_queue_xmit()` makes an indirect call through `dev->netdev_ops->ndo_start_xmit` read from the freed `net_device`, giving control-flow hijack. A:H - Dereferencing a freed `inet6_dev`/`net_device` on the packet transmit path reliably oopses or panics the kernel (KASAN slab-use-after-free), and the crash is in the core IPv6 output path so it takes down the whole forwarding host.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 51585434cb3851b4dca15e67223bde8987985aae (affected · git)4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 4549ce1057363c8dc072f40c6aa591c279eafed2 (affected · git)4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 423895685f367b5a0a956bd14b02df0192bded4c (affected · git)4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 92803b826e40e49a5e8a6e208f4b4574e9d19426 (affected · git)4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 0393f85c3241c19ba8550f04a812e7d19f6b3082 (affected · git)4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 to < 11709573cc4e48dc34c80fc7ab9ce5b159e29695 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.13 (affected)0 to < 4.13 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.113 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/0393f85c3241c19ba8550f04a812e7d19f6b3082
- https://git.kernel.org/stable/c/11709573cc4e48dc34c80fc7ab9ce5b159e29695
- https://git.kernel.org/stable/c/423895685f367b5a0a956bd14b02df0192bded4c
- https://git.kernel.org/stable/c/4549ce1057363c8dc072f40c6aa591c279eafed2
- https://git.kernel.org/stable/c/51585434cb3851b4dca15e67223bde8987985aae
- https://git.kernel.org/stable/c/92803b826e40e49a5e8a6e208f4b4574e9d19426
Provider assertions
2Linux · cna
ipv6: use RCU in ip6_output()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fe9bcfac41dd0bf8409d3dc25f422101b5798983cad36a6a8e41743b826b16af
- Ingested
- 23 Nov 2026, 14:12:33 UTC
- Source record
- Official CVE record