CVE-2026-23304: ipv6: fix NULL pointer deref in ip6_rt_get_dev_rcu()

Published Mar 25, 2026
·
Updated

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 synchronizercu() is nice, too.

Affected Software

12 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.126.1-1
Linux Linux kernel>=4.14<5.10.253
Linux Linux kernel>=5.11<5.15.203
Linux Linux kernel>=5.16<6.1.167
Linux Linux kernel>=6.2<6.6.130
Linux Linux kernel>=6.7<6.12.77
Linux Linux kernel>=6.13<6.18.17
Linux Linux kernel>=6.19<6.19.7
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    Update ip6_rt_get_dev_rcu() to explicitly fall back to loopback_dev when l3mdev_master_dev_rcu() returns NULL during VRF slave un-slaving.

Event History

Mar 25, 2026
CVE Published
via MITRE·10:26 AM
Data Sourced
via MITRE·10:26 AM
Description
Data Sourced
via NVD·11:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 26, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-23304?

CVE-2026-23304 has been rated as a high severity vulnerability due to potential exploitation leading to a null pointer dereference.

2

How do I fix CVE-2026-23304?

To fix CVE-2026-23304, update to the latest version of the Linux kernel that includes the patch for this vulnerability.

3

What software is affected by CVE-2026-23304?

CVE-2026-23304 affects the Linux kernel, particularly versions prior to the implementation of the fix.

4

What is the impact of CVE-2026-23304?

The impact of CVE-2026-23304 includes potential denial of service due to null pointer dereference when handling IPv6 routes.

5

When was CVE-2026-23304 published?

CVE-2026-23304 was published on a specific date which has been documented in official security bulletins.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203