CVE-2026-46037: ipv4: icmp: validate reply type before using icmp_pointers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipv4: icmp: validate reply type before using icmp_pointers
Extended echo replies use ICMP_EXT_ECHOREPLY as the outbound reply type. That value is outside the range covered by icmp_pointers[], which only describes the traditional ICMP types up to NR_ICMP_TYPES.
Avoid consulting icmp_pointers[] for reply types outside that range, and use array_index_nospec() for the remaining in-range lookup. Normal ICMP replies keep their existing behavior unchanged.
The Linux kernel CVE team has assigned CVE-2026-46037 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit d329ea5bd8845f0b196bf41b18b6173340d6e0e4 and fixed in 6.6.140 with commit 92e7c209036dcc0e8ffdf806fdfd3645b263bea5 Issue introduced in 5.13 with commit d329ea5bd8845f0b196bf41b18b6173340d6e0e4 and fixed in 6.12.86 with commit bc64a66e0b9ad937d3d49934242ee62b01ba9a94 Issue introduced in 5.13 with commit d329ea5bd8845f0b196bf41b18b6173340d6e0e4 and fixed in 6.18.27 with commit c2178ff1c70ebfc2ab9651b230c58a34683db759 Issue introduced in 5.13 with commit d329ea5bd8845f0b196bf41b18b6173340d6e0e4 and fixed in 7.0.4 with commit d700c34a5d186b9ba0715bcb19e0ff80ffbfbfc1 Issue introduced in 5.13 with commit d329ea5bd8845f0b196bf41b18b6173340d6e0e4 and fixed in 7.1-rc1 with commit 67bf002a2d7387a6312138210d0bd06e3cf4879b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46037
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/ipv4/icmp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/92e7c209036dcc0e8ffdf806fdfd3645b263bea5 https://git.kernel.org/stable/c/bc64a66e0b9ad937d3d49934242ee62b01ba9a94 https://git.kernel.org/stable/c/c2178ff1c70ebfc2ab9651b230c58a34683db759 https://git.kernel.org/stable/c/d700c34a5d186b9ba0715bcb19e0ff80ffbfbfc1 https://git.kernel.org/stable/c/67bf002a2d7387a6312138210d0bd06e3cf4879b