Linux
ipv4: icmp: fix null-ptr-deref in icmp_build_probe()
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".
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < 0f21bc261e60f0c696c58841c4873ff77ed83673
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < dc5db4db19766a61ad65d81d1f55b1c1e51ba78d
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < 47a8bf52156ac7e7a581eca31c1f964ba4258d4d
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < 6be325206850a0891896d38bcf83a09d8b54ec48
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < f91b3ed9e7fa82a70511b5f6901c88379acf2964
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < 5b9911582d441f72fe6ccb15ffe3303bbc07f6f5
- >= d329ea5bd8845f0b196bf41b18b6173340d6e0e4, < fde29fd9349327acc50d19a0b5f3d5a6c964dfd8
Fixed in 0f21bc261e60f0c696c58841c4873ff77ed83673, dc5db4db19766a61ad65d81d1f55b1c1e51ba78d, 47a8bf52156ac7e7a581eca31c1f964ba4258d4d, 6be325206850a0891896d38bcf83a09d8b54ec48, f91b3ed9e7fa82a70511b5f6901c88379acf2964, 5b9911582d441f72fe6ccb15ffe3303bbc07f6f5, fde29fd9349327acc50d19a0b5f3d5a6c964dfd8
- 5.13
Fixed in 0, 5.15.209, 6.1.175, 6.6.136, 6.12.83, 6.18.24, 6.19.14, 7.0
Mitigation
Upgrade Linux to 0f21bc261e60f0c696c58841c4873ff77ed83673 or dc5db4db19766a61ad65d81d1f55b1c1e51ba78d or 47a8bf52156ac7e7a581eca31c1f964ba4258d4d or 6be325206850a0891896d38bcf83a09d8b54ec48 or f91b3ed9e7fa82a70511b5f6901c88379acf2964 or 5b9911582d441f72fe6ccb15ffe3303bbc07f6f5 or fde29fd9349327acc50d19a0b5f3d5a6c964dfd8 or later.
Upgrade Linux to 0 or 5.15.209 or 6.1.175 or 6.6.136 or 6.12.83 or 6.18.24 or 6.19.14 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.