{"id":"CVE-2026-52925","aliases":["CVE-2026-52925"],"related":[],"kind":"vulnerability","state":"published","title":"vrf: Fix a potential NPD when removing a port from a VRF","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvrf: Fix a potential NPD when removing a port from a VRF\n\nRCU readers that identified a net device as a VRF port using\nnetif_is_l3_slave() assume that a subsequent call to\nnetdev_master_upper_dev_get_rcu() will return a VRF device. They then\ncontinue to dereference its l3mdev operations.\n\nThis assumption is not always correct and can result in a NPD [1]. There\nis no RCU synchronization when removing a port from a VRF, so it is\npossible for an RCU reader to see a new master device (e.g., a bridge)\nthat does not have l3mdev operations.\n\nFix by adding RCU synchronization after clearing the IFF_L3MDEV_SLAVE\nflag. Skip this synchronization when a net device is removed from a VRF\nas part of its deletion and when the VRF device itself is deleted. In\nthe latter case an RCU grace period will pass by the time RTNL is\nreleased.\n\n[1]\nBUG: kernel NULL pointer dereference, address: 0000000000000000\n[...]\nRIP: 0010:l3mdev_fib_table_rcu (net/l3mdev/l3mdev.c:181)\n[...]\nCall Trace:\n<TASK>\nl3mdev_fib_table_by_index (net/l3mdev/l3mdev.c:201 net/l3mdev/l3mdev.c:189)\n__inet_bind (net/ipv4/af_inet.c:499 (discriminator 3))\ninet_bind_sk (net/ipv4/af_inet.c:469)\n__sys_bind (./include/linux/file.h:62 (discriminator 1) ./include/linux/file.h:83 (discriminator 1) net/socket.c:1951 (discriminator 1))\n__x64_sys_bind (net/socket.c:1969 (discriminator 1) net/socket.c:1967 (discriminator 1) net/socket.c:1967 (discriminator 1))\ndo_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1))\nentry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvrf: Fix a potential NPD when removing a port from a VRF\n\nRCU readers that identified a net device as a VRF port using\nnetif_is_l3_slave() assume that a subsequent call to\nnetdev_master_upper_dev_get_rcu() will return a VRF device. They then\ncontinue to dereference its l3mdev operations.\n\nThis assumption is not always correct and can result in a NPD [1]. There\nis no RCU synchronization when removing a port from a VRF, so it is\npossible for an RCU reader to see a new master device (e.g., a bridge)\nthat does not have l3mdev operations.\n\nFix by adding RCU synchronization after clearing the IFF_L3MDEV_SLAVE\nflag. Skip this synchronization when a net device is removed from a VRF\nas part of its deletion and when the VRF device itself is deleted. In\nthe latter case an RCU grace period will pass by the time RTNL is\nreleased.\n\n[1]\nBUG: kernel NULL pointer dereference, address: 0000000000000000\n[...]\nRIP: 0010:l3mdev_fib_table_rcu (net/l3mdev/l3mdev.c:181)\n[...]\nCall Trace:\n<TASK>\nl3mdev_fib_table_by_index (net/l3mdev/l3mdev.c:201 net/l3mdev/l3mdev.c:189)\n__inet_bind (net/ipv4/af_inet.c:499 (discriminator 3))\ninet_bind_sk (net/ipv4/af_inet.c:469)\n__sys_bind (./include/linux/file.h:62 (discriminator 1) ./include/linux/file.h:83 (discriminator 1) net/socket.c:1951 (discriminator 1))\n__x64_sys_bind (net/socket.c:1969 (discriminator 1) net/socket.c:1967 (discriminator 1) net/socket.c:1967 (discriminator 1))\ndo_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1))\nentry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)","source":"cvelist"}],"published":"2026-06-24T07:14:19.351Z","modified":"2026-11-06T17:17:56.400Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"2c022f582fd16a470df6ed9e7fb7e9fc48946d49","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"4ab6fc60ed5a0344b60711b09bff1dc238d8d6a4","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"468defa0b70902a22f4478c1207624bc1b31c124","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"3db8d078f7f652379ee394132b169d304f6eb4c1","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"8c2b792f04a3db97c9d8d2a45817e93f8884baf5","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"a7a97f2303e63ede105c1d55ef53dc497364e11d","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"d47204c127992da0c976ac9747070a575912e0fe","status":"affected"},{"type":"git","introduced":"fdeea7be88b12742bfd50d9e19a06c0d2e702400","fixed":"2674d603a9e6970463b2b9ebcf8e31e90beae169","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.141","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.91","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.12","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.141"},{"status":"affected","introduced":"6.7","fixed":"6.12.91"},{"status":"affected","introduced":"6.13","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2c022f582fd16a470df6ed9e7fb7e9fc48946d49","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ab6fc60ed5a0344b60711b09bff1dc238d8d6a4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/468defa0b70902a22f4478c1207624bc1b31c124","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3db8d078f7f652379ee394132b169d304f6eb4c1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c2b792f04a3db97c9d8d2a45817e93f8884baf5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7a97f2303e63ede105c1d55ef53dc497364e11d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d47204c127992da0c976ac9747070a575912e0fe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2674d603a9e6970463b2b9ebcf8e31e90beae169","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T16:14:10.024Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52925","url":"https://www.cve.org/CVERecord?id=CVE-2026-52925","licence":"CVE Terms of Use","modified":"2026-11-06T16:23:49.718Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52925","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52925","licence":"Public domain","modified":"2026-11-06T17:17:56.400Z"}],"updatedAt":"2026-11-25T22:59:25.584Z","epss":{"score":0.00118,"percentile":0.01909,"date":"2026-12-01T12:00:22.000Z"}}