CVE-2026-52925

Source
https://cve.org/CVERecord?id=CVE-2026-52925
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52925.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-52925
Downstream
Published
2026-06-24T07:14:19.351Z
Modified
2026-07-10T03:54:12.959181668Z
Summary
vrf: Fix a potential NPD when removing a port from a VRF
Details

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

vrf: Fix a potential NPD when removing a port from a VRF

RCU readers that identified a net device as a VRF port using netifisl3slave() assume that a subsequent call to netdevmasterupperdevgetrcu() will return a VRF device. They then continue to dereference its l3mdev operations.

This assumption is not always correct and can result in a NPD [1]. There is no RCU synchronization when removing a port from a VRF, so it is possible for an RCU reader to see a new master device (e.g., a bridge) that does not have l3mdev operations.

Fix by adding RCU synchronization after clearing the IFFL3MDEVSLAVE flag. Skip this synchronization when a net device is removed from a VRF as part of its deletion and when the VRF device itself is deleted. In the latter case an RCU grace period will pass by the time RTNL is released.

[1] BUG: kernel NULL pointer dereference, address: 0000000000000000 [...] RIP: 0010:l3mdevfibtablercu (net/l3mdev/l3mdev.c:181) [...] Call Trace: <TASK> l3mdevfibtableby_index (net/l3mdev/l3mdev.c:201 net/l3mdev/l3mdev.c:189) __inetbind (net/ipv4/afinet.c:499 (discriminator 3)) inetbindsk (net/ipv4/af_inet.c:469) __sys_bind (./include/linux/file.h:62 (discriminator 1) ./include/linux/file.h:83 (discriminator 1) net/socket.c:1951 (discriminator 1)) _x64sysbind (net/socket.c:1969 (discriminator 1) net/socket.c:1967 (discriminator 1) net/socket.c:1967 (discriminator 1)) dosyscall64 (arch/x86/entry/syscall64.c:63 (discriminator 1) arch/x86/entry/syscall64.c:94 (discriminator 1)) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:130)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52925.json",
    "cna_assigner": "Linux"
}
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
fdeea7be88b12742bfd50d9e19a06c0d2e702400
Fixed
2c022f582fd16a470df6ed9e7fb7e9fc48946d49
Fixed
4ab6fc60ed5a0344b60711b09bff1dc238d8d6a4
Fixed
468defa0b70902a22f4478c1207624bc1b31c124
Fixed
3db8d078f7f652379ee394132b169d304f6eb4c1
Fixed
8c2b792f04a3db97c9d8d2a45817e93f8884baf5
Fixed
a7a97f2303e63ede105c1d55ef53dc497364e11d
Fixed
d47204c127992da0c976ac9747070a575912e0fe
Fixed
2674d603a9e6970463b2b9ebcf8e31e90beae169

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52925.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.12.0
Fixed
5.10.258
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.209
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.141
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.91
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.33
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52925.json"