CVE-2025-21791

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21791
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21791.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21791
Downstream
Related
Published
2025-02-27T02:18:29.014Z
Modified
2025-11-28T02:34:59.366224Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
vrf: use RCU protection in l3mdev_l3_out()
Details

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

vrf: use RCU protection in l3mdevl3out()

l3mdevl3out() can be called without RCU being held:

rawsendmsg() ippushpendingframes() ipsendskb() iplocalout() _iplocalout() l3mdevip_out()

Add rcureadlock() / rcureadunlock() pair to avoid a potential UAF.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21791.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a8e3e1a9f02094145580ea7920c6a1d9aabd5539
Fixed
6ccaa5797f5362a2aad6baa6ddaf4715ac2dd51e
Fixed
20a3489b396764cc9376e32a9172bee26a89dc3b
Fixed
5bb4228c32261d06e4fbece37ec3828bcc005b6b
Fixed
c7574740be8ce68a57d0aece24987b9be2114c3c
Fixed
c40cb5c03e37552d6eff963187109e2c3f78ef6f
Fixed
022cac1c693add610ae76ede03adf4d9d5a2cf21
Fixed
7b81425b517accefd46bee854d94954f5c57e019
Fixed
6d0ce46a93135d96b7fa075a94a88fe0da8e8773

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.9.0
Fixed
5.4.291
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.235
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.179
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.129
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.79
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.16
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.4