# CVE-2025-40074: ipv4: start using dst\_dev\_rcu()

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; 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.98% (percentile 61, 2026-11-26)
- **Published:** 2025-10-28T11:48:41.202Z
- **Modified:** 2026-11-23T08:17:13.117Z

## Who should check

- Anyone running Linux \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 8a426879d820a11f1f83a75c104176b419cac604; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 0fc847cbb7d214dd05e73ed885bd3a243185b9e0; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 864155c164654110f68a17a63bd0339754790d67; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< e150f273cd8ed34ebc6d03758aad95c12fc58337; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 684efb2c86c887685f9aa65e1a21b3df6c1f822d; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 923e0734c386984d45de508528a7a7ad91d791cc; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8
- Anyone running Linux 4.13

## Description

In the Linux kernel, the following vulnerability has been resolved:

ipv4: start using dst\_dev\_rcu()

Change icmpv4\_xrlim\_allow(), ip\_defrag() to prevent possible UAF.

Change ipmr\_prepare\_xmit(), ipmr\_queue\_fwd\_xmit(), ip\_mr\_output(),
ipv4\_neigh\_lookup() to use lockdep enabled dst\_dev\_rcu().

## Affected and fixed versions

- Linux: \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 8a426879d820a11f1f83a75c104176b419cac604; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 0fc847cbb7d214dd05e73ed885bd3a243185b9e0; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 864155c164654110f68a17a63bd0339754790d67; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< e150f273cd8ed34ebc6d03758aad95c12fc58337; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 684efb2c86c887685f9aa65e1a21b3df6c1f822d; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 923e0734c386984d45de508528a7a7ad91d791cc; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8 (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- Upgrade Linux to 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8 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-40074. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40074.md
Affected: Linux >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, < 8a426879d820a11f1f83a75c104176b419cac604; >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, < 0fc847cbb7d214dd05e73ed885bd3a243185b9e0; >= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, < 864155c164654110f68a17a63bd0339754790d67; >= 4a6ce2b6f2ecabbddcfe47e…
Fixed in: Linux 8a426879d820a11f1f83a75c104176b419cac604, Linux 0fc847cbb7d214dd05e73ed885bd3a243185b9e0, Linux 864155c164654110f68a17a63bd0339754790d67, Linux 684efb2c86c887685f9aa65e1a21b3df6c1f822d, Linux 923e0734c386984d45de508528a7a7ad91d791cc, Linux 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8

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-40074 being exploited?

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 8a426879d820a11f1f83a75c104176b419cac604; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 0fc847cbb7d214dd05e73ed885bd3a243185b9e0; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 864155c164654110f68a17a63bd0339754790d67; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< e150f273cd8ed34ebc6d03758aad95c12fc58337; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 684efb2c86c887685f9aa65e1a21b3df6c1f822d; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 923e0734c386984d45de508528a7a7ad91d791cc; \>= 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, \< 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8; Linux 4.13.

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

Yes. Fixed in Linux 8a426879d820a11f1f83a75c104176b419cac604, Linux 0fc847cbb7d214dd05e73ed885bd3a243185b9e0, Linux 864155c164654110f68a17a63bd0339754790d67, Linux 684efb2c86c887685f9aa65e1a21b3df6c1f822d, Linux 923e0734c386984d45de508528a7a7ad91d791cc, Linux 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8. Upgrade Linux to 6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8 or later.

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

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/8a426879d820a11f1f83a75c104176b419cac604>
- other: <https://git.kernel.org/stable/c/0fc847cbb7d214dd05e73ed885bd3a243185b9e0>
- other: <https://git.kernel.org/stable/c/864155c164654110f68a17a63bd0339754790d67>
- other: <https://git.kernel.org/stable/c/e150f273cd8ed34ebc6d03758aad95c12fc58337>
- other: <https://git.kernel.org/stable/c/684efb2c86c887685f9aa65e1a21b3df6c1f822d>
- other: <https://git.kernel.org/stable/c/923e0734c386984d45de508528a7a7ad91d791cc>
- other: <https://git.kernel.org/stable/c/6ad8de3cefdb6ffa6708b21c567df0dbf82c43a8>

## 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-40074>

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