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

Summary

CVECVE-2026-52925
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-24 08:16:22 UTC
Updated2026-06-24 08:16:22 UTC
DescriptionIn 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 netif_is_l3_slave() assume that a subsequent call to netdev_master_upper_dev_get_rcu() 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 IFF_L3MDEV_SLAVE 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:l3mdev_fib_table_rcu (net/l3mdev/l3mdev.c:181) [...] Call Trace: <TASK> l3mdev_fib_table_by_index (net/l3mdev/l3mdev.c:201 net/l3mdev/l3mdev.c:189) __inet_bind (net/ipv4/af_inet.c:499 (discriminator 3)) inet_bind_sk (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)) __x64_sys_bind (net/socket.c:1969 (discriminator 1) net/socket.c:1967 (discriminator 1) net/socket.c:1967 (discriminator 1)) do_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1)) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 2c022f582fd16a470df6ed9e7fb7e9fc48946d49 git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 4ab6fc60ed5a0344b60711b09bff1dc238d8d6a4 git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 468defa0b70902a22f4478c1207624bc1b31c124 git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 3db8d078f7f652379ee394132b169d304f6eb4c1 git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 8c2b792f04a3db97c9d8d2a45817e93f8884baf5 git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 a7a97f2303e63ede105c1d55ef53dc497364e11d git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 d47204c127992da0c976ac9747070a575912e0fe git Not specified
CNA Linux Linux affected fdeea7be88b12742bfd50d9e19a06c0d2e702400 2674d603a9e6970463b2b9ebcf8e31e90beae169 git Not specified
CNA Linux Linux affected 4.12 Not specified
CNA Linux Linux unaffected 4.12 semver Not specified
CNA Linux Linux unaffected 5.10.258 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.209 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.175 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.141 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.91 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.33 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.10 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/d47204c127992da0c976ac9747070a575912e0fe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4ab6fc60ed5a0344b60711b09bff1dc238d8d6a4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3db8d078f7f652379ee394132b169d304f6eb4c1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c022f582fd16a470df6ed9e7fb7e9fc48946d49 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2674d603a9e6970463b2b9ebcf8e31e90beae169 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8c2b792f04a3db97c9d8d2a45817e93f8884baf5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a7a97f2303e63ede105c1d55ef53dc497364e11d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/468defa0b70902a22f4478c1207624bc1b31c124 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report