ipv6: ioam: add NULL check for idev in ipv6_hop_ioam()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel d4ea0dfd75011b78cebf3808f98ac4c4f51a6fb9, Kernel 09cbfd4b81ae90963dadb1de99b63b702e73290a, Kernel 1dca7e491f070ac49b3d934f16ee953a53b37f38 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: ipv6: ioam: add NULL check for idev in ipv6_hop_ioam() Reported by Sashiko: The function ipv6_hop_ioam() accesses __in6_dev_get(skb->dev)->cnf.ioam6_enabled without validating the returned idev pointer. Because addrconf_ifdown() can concurrently clear dev->ip6_ptr via RCU, __in6_dev_get() can return NULL during interface teardown, which could cause a NULL pointer dereference when processing an IOAM Hop-by-Hop option. Let's add a check and use SKB_DROP_REASON_IPV6DISABLED accordingly.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <d4ea0dfd75011b78cebf3808f98ac4c4f51a6fb9, >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <09cbfd4b81ae90963dadb1de99b63b702e73290a, >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <1dca7e491f070ac49b3d934f16ee953a53b37f38, >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <902daac307eb7e1955ce05b071950f3cba88c963, >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <abdd03229414b5a52943b65a60f34b84cea5ac59, >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <c7e8971abd70e9d022f1c251ba2508f8dc7f2db8, >=9ee11f0fff205b4b3df9750bff5e94f97c71b6a0 <cf75eb6617042c8cff6112daeed7791809fc9dd2, =5.15 | d4ea0dfd75011b78cebf3808f98ac4c4f51a6fb9, 09cbfd4b81ae90963dadb1de99b63b702e73290a, 1dca7e491f070ac49b3d934f16ee953a53b37f38, 902daac307eb7e1955ce05b071950f3cba88c963, abdd03229414b5a52943b65a60f34b84cea5ac59, c7e8971abd70e9d022f1c251ba2508f8dc7f2db8, cf75eb6617042c8cff6112daeed7791809fc9dd2 |
| linux-kernel: Kernel | >=5.16.0 <6.1.176, >=6.13.0 <6.18.34, >=6.19.0 <7.0.11, >=6.2.0 <6.6.143, >=6.7.0 <6.12.92, >=5.15.0 <5.15.210 | 6.1.176, 6.18.34, 7.0.11, 6.6.143, 6.12.92, 5.15.210 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket