# CVE-2025-40158: ipv6: use RCU in ip6\_output()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **Published:** 2025-11-12T10:23:29.516Z
- **Modified:** 2026-11-23T08:17:13.430Z

## Who should check

- Anyone running Linux \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 51585434cb3851b4dca15e67223bde8987985aae; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 4549ce1057363c8dc072f40c6aa591c279eafed2; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 423895685f367b5a0a956bd14b02df0192bded4c; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 92803b826e40e49a5e8a6e208f4b4574e9d19426; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 0393f85c3241c19ba8550f04a812e7d19f6b3082; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 11709573cc4e48dc34c80fc7ab9ce5b159e29695
- Anyone running Linux 4.13

## 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().

## Affected and fixed versions

- Linux: \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 51585434cb3851b4dca15e67223bde8987985aae; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 4549ce1057363c8dc072f40c6aa591c279eafed2; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 423895685f367b5a0a956bd14b02df0192bded4c; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 92803b826e40e49a5e8a6e208f4b4574e9d19426; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 0393f85c3241c19ba8550f04a812e7d19f6b3082; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 11709573cc4e48dc34c80fc7ab9ce5b159e29695 (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- Upgrade Linux to 11709573cc4e48dc34c80fc7ab9ce5b159e29695 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40158. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40158.md
Affected: Linux >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, < 51585434cb3851b4dca15e67223bde8987985aae; >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, < 4549ce1057363c8dc072f40c6aa591c279eafed2; >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, < 423895685f367b5a0a956bd14b02df0192bded4c; >= 4a6ce2b6f2ecabbddcfe47e…
Fixed in: Linux 51585434cb3851b4dca15e67223bde8987985aae, Linux 4549ce1057363c8dc072f40c6aa591c279eafed2, Linux 423895685f367b5a0a956bd14b02df0192bded4c, Linux 92803b826e40e49a5e8a6e208f4b4574e9d19426, Linux 0393f85c3241c19ba8550f04a812e7d19f6b3082, Linux 11709573cc4e48dc34c80fc7ab9ce5b159e29695

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40158 being exploited?

There is no confirmed exploitation: CVE-2025-40158 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40158?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-40158?

Linux \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 51585434cb3851b4dca15e67223bde8987985aae; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 4549ce1057363c8dc072f40c6aa591c279eafed2; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 423895685f367b5a0a956bd14b02df0192bded4c; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 92803b826e40e49a5e8a6e208f4b4574e9d19426; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 0393f85c3241c19ba8550f04a812e7d19f6b3082; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 11709573cc4e48dc34c80fc7ab9ce5b159e29695; Linux 4.13.

### Is there a fix for CVE-2025-40158?

Yes. Fixed in Linux 51585434cb3851b4dca15e67223bde8987985aae, Linux 4549ce1057363c8dc072f40c6aa591c279eafed2, Linux 423895685f367b5a0a956bd14b02df0192bded4c, Linux 92803b826e40e49a5e8a6e208f4b4574e9d19426, Linux 0393f85c3241c19ba8550f04a812e7d19f6b3082, Linux 11709573cc4e48dc34c80fc7ab9ce5b159e29695. Upgrade Linux to 11709573cc4e48dc34c80fc7ab9ce5b159e29695 or later.

### How do I check if I'm affected by CVE-2025-40158?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/51585434cb3851b4dca15e67223bde8987985aae>
- other: <https://git.kernel.org/stable/c/4549ce1057363c8dc072f40c6aa591c279eafed2>
- other: <https://git.kernel.org/stable/c/423895685f367b5a0a956bd14b02df0192bded4c>
- other: <https://git.kernel.org/stable/c/92803b826e40e49a5e8a6e208f4b4574e9d19426>
- other: <https://git.kernel.org/stable/c/0393f85c3241c19ba8550f04a812e7d19f6b3082>
- other: <https://git.kernel.org/stable/c/11709573cc4e48dc34c80fc7ab9ce5b159e29695>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40158>

HTML: <https://flawdb.com/CVE-2025-40158> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40158>
