ipv4: icmp: validate reply type before using icmp_pointers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d329ea5bd8845f0b196bf41b18b6173340d6e0e4 · < d700c34a5d186b9ba0715bcb19e0ff80ffbfbfc1| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel can access outside the icmp_pointers array when handling an IPv4 ICMP extended echo reply. This occurs because the reply type is beyond the array's range; the input does not specify authentication requirements, user interaction, or a further attacker impact.
Engineers running Linux kernels should check their installations; affected versions are not specified.