net: do not send ICMP/NDISC Redirects when peer allocation fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 92d8682926342d2b6aa5b2ecc02221e00e1573a0 · < dbc3791e3b2472e1ccc08947e0f83b443470ff4f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: do not send ICMP/NDISC Redirects when peer allocation fails
When inet_getpeer_v4() or inet_getpeer_v6() fails to allocate a peer entry under memory pressure or tree size caps, redirect handlers previously fell back to sending un-rate-limited ICMP/NDISC Redirect messages.
In IPv4, ip_rt_send_redirect() called icmp_send() directly when peer == NULL. In IPv6, ip6_forward() and ndisc_send_redirect() passed a NULL peer into inet_peer_xrlim_allow(), which returned true when peer == NULL.
Because ICMP/NDISC Redirects are not part of the default global rate limit mask (sysctl_icmp_ratemask), sending redirects when peer == NULL creates an un-rate-limited ICMP packet storm.
Fix this by failing closed in ip_rt_send_redirect(), ip6_forward(), and ndisc_send_redirect() when peer is NULL.
From the CVE record · Linux
The Linux kernel could send un-rate-limited ICMP/NDISC Redirects when peer allocation fails under memory pressure or tree size caps. Network traffic that triggers redirects under those conditions can cause an ICMP packet storm. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels should check their vendor advisory; affected versions are not specified.