ipv4: icmp: fix null-ptr-deref in icmp_build_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d329ea5bd8845f0b196bf41b18b6173340d6e0e4 · < 5b9911582d441f72fe6ccb15ffe3303bbc07f6f5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv4: icmp: fix null-ptr-deref in icmp_build_probe()
ipv6_stub->ipv6_dev_find() may return ERR_PTR(-EAFNOSUPPORT) when the IPv6 stack is not active (CONFIG_IPV6=m and not loaded), and passing this error pointer to dev_hold() will cause a kernel crash with null-ptr-deref.
Instead, silently discard the request. RFC 8335 does not appear to define a specific response for the case where an IPv6 interface identifier is syntactically valid but the implementation cannot perform the lookup at runtime, and silently dropping the request may safer than misreporting "No Such Interface".
From the CVE record · Linux
The Linux kernel can dereference an error pointer while handling an ICMP probe request if IPv6 is configured as a module but is not loaded. This can crash the kernel; the input does not specify authentication requirements or user interaction.
Operators running Linux kernels with CONFIG_IPV6=m should check whether their IPv6 module may be unloaded; affected versions are not specified.