# CVE-2025-21791: vrf: use RCU protection in l3mdev\_l3\_out()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-27T02:18:29.014Z
- **Modified:** 2026-10-15T02:17:35.843Z

## Who should check

- Anyone running Linux \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 20a3489b396764cc9376e32a9172bee26a89dc3b; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 5bb4228c32261d06e4fbece37ec3828bcc005b6b; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< c7574740be8ce68a57d0aece24987b9be2114c3c; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< c40cb5c03e37552d6eff963187109e2c3f78ef6f; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 022cac1c693add610ae76ede03adf4d9d5a2cf21; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 7b81425b517accefd46bee854d94954f5c57e019; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 6d0ce46a93135d96b7fa075a94a88fe0da8e8773
- Anyone running Linux 4.9

## Description

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

vrf: use RCU protection in l3mdev\_l3\_out()

l3mdev\_l3\_out() can be called without RCU being held:

raw\_sendmsg()
 ip\_push\_pending\_frames()
  ip\_send\_skb()
   ip\_local\_out()
    \_\_ip\_local\_out()
     l3mdev\_ip\_out()

Add rcu\_read\_lock() / rcu\_read\_unlock() pair to avoid
a potential UAF.

## Affected and fixed versions

- Linux: \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 20a3489b396764cc9376e32a9172bee26a89dc3b; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 5bb4228c32261d06e4fbece37ec3828bcc005b6b; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< c7574740be8ce68a57d0aece24987b9be2114c3c; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< c40cb5c03e37552d6eff963187109e2c3f78ef6f; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 022cac1c693add610ae76ede03adf4d9d5a2cf21; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 7b81425b517accefd46bee854d94954f5c57e019; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 6d0ce46a93135d96b7fa075a94a88fe0da8e8773 (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-21791.md
Affected: Linux >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 20a3489b396764cc9376e32a9172bee26a89dc3b; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 5bb4228c32261d06e4fbece37ec3828bcc005b6b; >= a8e3e1a9f02094145580ea7…
Fixed in: Linux 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e, Linux 20a3489b396764cc9376e32a9172bee26a89dc3b, Linux 5bb4228c32261d06e4fbece37ec3828bcc005b6b, Linux 022cac1c693add610ae76ede03adf4d9d5a2cf21, Linux 7b81425b517accefd46bee854d94954f5c57e019, Linux 6d0ce46a93135d96b7fa075a94a88fe0da8e8773

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 20a3489b396764cc9376e32a9172bee26a89dc3b; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 5bb4228c32261d06e4fbece37ec3828bcc005b6b; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< c7574740be8ce68a57d0aece24987b9be2114c3c; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< c40cb5c03e37552d6eff963187109e2c3f78ef6f; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 022cac1c693add610ae76ede03adf4d9d5a2cf21; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 7b81425b517accefd46bee854d94954f5c57e019; \>= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, \< 6d0ce46a93135d96b7fa075a94a88fe0da8e8773; Linux 4.9.

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

Yes. Fixed in Linux 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e, Linux 20a3489b396764cc9376e32a9172bee26a89dc3b, Linux 5bb4228c32261d06e4fbece37ec3828bcc005b6b, Linux 022cac1c693add610ae76ede03adf4d9d5a2cf21, Linux 7b81425b517accefd46bee854d94954f5c57e019, Linux 6d0ce46a93135d96b7fa075a94a88fe0da8e8773. Upgrade Linux to 6d0ce46a93135d96b7fa075a94a88fe0da8e8773 or later.

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

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

- patch: <https://git.kernel.org/stable/c/6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e>
- patch: <https://git.kernel.org/stable/c/20a3489b396764cc9376e32a9172bee26a89dc3b>
- patch: <https://git.kernel.org/stable/c/5bb4228c32261d06e4fbece37ec3828bcc005b6b>
- patch: <https://git.kernel.org/stable/c/c7574740be8ce68a57d0aece24987b9be2114c3c>
- patch: <https://git.kernel.org/stable/c/c40cb5c03e37552d6eff963187109e2c3f78ef6f>
- patch: <https://git.kernel.org/stable/c/022cac1c693add610ae76ede03adf4d9d5a2cf21>
- patch: <https://git.kernel.org/stable/c/7b81425b517accefd46bee854d94954f5c57e019>
- patch: <https://git.kernel.org/stable/c/6d0ce46a93135d96b7fa075a94a88fe0da8e8773>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

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

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