CVE-2026-143225: net: raw: fix ICMP unreachable sent when receive queue is full
In the Linux kernel, the following vulnerability has been resolved:
net: raw: fix ICMP unreachable sent when receive queue is full
It's found in a raw socket application. When the application doesn't read packets in time, the client receives ICMP Protocol Unreachable, which makes the client abort the session.
The reason is that the server hits the skrcvbuf limit, and rawv4input() skips the socket before setting 'delivered', so it returns 0. Then ipprotocoldeliverrcu() sees 'raw' is 0, thinks no one handles this protocol and calls icmpsend() to send ICMP Protocol Unreachable.
IPv6 has the same issue, ip6protocoldeliverrcu() sends ICMPv6 Parameter Problem instead.
Also, we'd better run icmpfilter() and ipmcsfallow() (icmpv6filter() for IPv6) before we check skrcvbuf, otherwise packets rejected by ICMPFILTER/ICMPV6FILTER or the multicast filter are counted in skdrops. So move the check right before skbclone().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In the raw-socket receive path, run the IPv4 filters icmp_filter() and ip_mc_sf_allow() and the IPv6 filter icmpv6_filter() immediately before skb_clone(), before checking sk_rcvbuf.
Event History
Frequently Asked Questions
Who is affected by this issue?
Systems running raw socket applications are affected when those applications do not read received packets quickly enough and their socket receive queue reaches the sk_rcvbuf limit. The behavior is described for both IPv4 and IPv6.
What is the practical impact when the receive queue is full?
For IPv4, the system can send an ICMP Protocol Unreachable message to the client, which can cause the client to abort its session. For IPv6, it can send an ICMPv6 Parameter Problem message instead.
Does exploitation require an attacker to fill a raw socket receive queue?
The described condition requires a raw socket application's receive queue to hit its sk_rcvbuf limit because the application is not reading packets in time. The provided data does not describe any additional authentication, privilege, or remote-access requirements.
What changes in the resolved behavior?
The receive-buffer check is moved to occur immediately before skb_clone(), so a raw socket is treated as handling the protocol even when its receive queue is full. Filtering checks for ICMP and multicast traffic are also performed before the receive-buffer check, preventing packets rejected by those filters from being counted in sk_drops.