CVE-2025-21791
vrf: use RCU protection in l3mdev_l3_out()
Mitigation
- Upgrade Linux to 6d0ce46a93135d96b7fa075a94a88fe0da8e8773 or later.
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
Vulnerability facts
- Affected
- Linux >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 20a3489b396764cc9376e32a9172bee26a89dc3b; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 5bb4228c32261d06e4fbece37ec3828bcc005b6b; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < c7574740be8ce68a57d0aece24987b9be2114c3c; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < c40cb5c03e37552d6eff963187109e2c3f78ef6f; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 022cac1c693add610ae76ede03adf4d9d5a2cf21; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 7b81425b517accefd46bee854d94954f5c57e019; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 6d0ce46a93135d96b7fa075a94a88fe0da8e8773; Linux 4.9
- Fixed in
- Linux 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e, Linux 20a3489b396764cc9376e32a9172bee26a89dc3b, Linux 5bb4228c32261d06e4fbece37ec3828bcc005b6b, Linux 022cac1c693add610ae76ede03adf4d9d5a2cf21, Linux 7b81425b517accefd46bee854d94954f5c57e019, Linux 6d0ce46a93135d96b7fa075a94a88fe0da8e8773
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.33% chance of exploitation in 30 days (percentile 19, 2026-11-26)
- CWE
- CWE-416
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 20a3489b396764cc9376e32a9172bee26a89dc3b; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 5bb4228c32261d06e4fbece37ec3828bcc005b6b; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < c7574740be8ce68a57d0aece24987b9be2114c3c; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < c40cb5c03e37552d6eff963187109e2c3f78ef6f; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 022cac1c693add610ae76ede03adf4d9d5a2cf21; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 7b81425b517accefd46bee854d94954f5c57e019; >= a8e3e1a9f02094145580ea7920c6a1d9aabd5539, < 6d0ce46a93135d96b7fa075a94a88fe0da8e8773 | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e
- https://git.kernel.org/stable/c/20a3489b396764cc9376e32a9172bee26a89dc3b
- https://git.kernel.org/stable/c/5bb4228c32261d06e4fbece37ec3828bcc005b6b
- https://git.kernel.org/stable/c/c7574740be8ce68a57d0aece24987b9be2114c3c
- https://git.kernel.org/stable/c/c40cb5c03e37552d6eff963187109e2c3f78ef6f
- https://git.kernel.org/stable/c/022cac1c693add610ae76ede03adf4d9d5a2cf21
- https://git.kernel.org/stable/c/7b81425b517accefd46bee854d94954f5c57e019
- https://git.kernel.org/stable/c/6d0ce46a93135d96b7fa075a94a88fe0da8e8773
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.