ipv6: add NULL checks for idev in SRv6 paths
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1ababeba4a21f3dba3da3523c670b207fb2feb62 · < c5cedee5d97382176573bbe21e1724e737a5eb64| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: add NULL checks for idev in SRv6 paths
__in6_dev_get() can return NULL when the device has no IPv6 configuration (e.g. MTU < IPV6_MIN_MTU or after NETDEV_UNREGISTER).
Add NULL checks for idev returned by __in6_dev_get() in both seg6_hmac_validate_skb() and ipv6_srh_rcv() to prevent potential NULL pointer dereferences.
From the CVE record · Linux
The Linux kernel’s IPv6 SRv6 paths can dereference a NULL pointer when a device has no IPv6 configuration, such as when its MTU is below IPV6_MIN_MTU or after NETDEV_UNREGISTER. This could cause a crash; the input does not specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.