CVE-2026-23304

Source
https://cve.org/CVERecord?id=CVE-2026-23304
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23304.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-23304
Downstream
Published
2026-03-25T10:26:59.015Z
Modified
2026-04-02T13:12:20.783222Z
Summary
ipv6: fix NULL pointer deref in ip6_rt_get_dev_rcu()
Details

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

ipv6: fix NULL pointer deref in ip6rtgetdevrcu()

l3mdevmasterdevrcu() can return NULL when the slave device is being un-slaved from a VRF. All other callers deal with this, but we lost the fallback to loopback in ip6rtpcpualloc() -> ip6rtgetdevrcu() with commit 4832c30d5458 ("net: ipv6: put host and anycast routes on device with address").

KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f] RIP: 0010:ip6rtpcpualloc (net/ipv6/route.c:1418) Call Trace: ip6polroute (net/ipv6/route.c:2318) fib6rulelookup (net/ipv6/fib6rules.c:115) ip6routeoutputflags (net/ipv6/route.c:2607) vrfprocessv6outbound (drivers/net/vrf.c:437)

I was tempted to rework the un-slaving code to clear the flag first and insert synchronizercu() before we remove the upper. But looks like the explicit fallback to loopbackdev is an established pattern. And I guess avoiding the synchronize_rcu() is nice, too.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23304.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
4832c30d5458387ff2533ff66fbde26ad8bb5a2d
Fixed
4a48fe59f29f673a3d042d679f26629a9c3e29d4
Fixed
581800298313c9fd75e94985e6d37d21b7e35d34
Fixed
3310fc11fc47387d1dd4759b0bc961643ea11c7f
Fixed
0b5a7826020706057cc5a9d9009e667027f221ee
Fixed
ae88c8256547b63980770a9ea7be73a15900d27e
Fixed
2ffb4f5c2ccb2fa1c049dd11899aee7967deef5a

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.14.0
Fixed
6.1.167
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.130
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.77
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.17
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.7

Database specific

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