CVE-2025-21791
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21791 affects the Linux kernel's Virtual Routing and Forwarding (VRF) functionality. The vulnerability was discovered on February 7, 2025, and publicly disclosed on February 26, 2025. It involves a potential Use-After-Free (UAF) vulnerability in the l3mdev_l3_out() function when RCU protection is not properly held during certain network operations (Kernel Git).

Technical details

The vulnerability exists in the l3mdev_l3_out() function which can be called without RCU (Read-Copy-Update) protection being held during the following call chain: raw_sendmsg() -> ip_push_pending_frames() -> ip_send_skb() -> ip_local_out() -> __ip_local_out() -> l3mdev_ip_out(). This creates a potential Use-After-Free condition when accessing network device structures. The CVSS v3.1 score for this vulnerability is 7.8 HIGH (NVD).

Impact

The vulnerability could lead to a Use-After-Free condition in the Linux kernel's networking stack, potentially resulting in system crashes, memory corruption, or privilege escalation. This affects systems using Virtual Routing and Forwarding (VRF) functionality (Kernel Git).

Exploitability

The vulnerability requires access to the networking stack and the ability to trigger specific VRF operations. It can be triggered through the normal network operation path, making it potentially exploitable in real-world scenarios (NVD).

Mitigation and workarounds

The fix involves adding RCU protection (rcu_read_lock() and rcu_read_unlock() pair) around the device master lookup in l3mdev_l3_out(). This patch has been merged into the mainline Linux kernel and backported to stable kernel versions. Users should update to patched kernel versions that include the fix (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74730CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 22, 2026
CVE-2026-74733HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesAug 22, 2026
CVE-2026-74726HIGH7.3
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesAug 22, 2026
CVE-2026-74732MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-selftests-internal
NoYesAug 22, 2026
CVE-2026-74728NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-modules-core
NoNoAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management