Description
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 sk_rcvbuf limit, and raw_v4_input() skips the socket before setting 'delivered', so it returns 0. Then ip_protocol_deliver_rcu() sees 'raw' is 0, thinks no one handles this protocol and calls icmp_send() to send ICMP Protocol Unreachable. IPv6 has the same issue, ip6_protocol_deliver_rcu() sends ICMPv6 Parameter Problem instead. Also, we'd better run icmp_filter() and ip_mc_sf_allow() (icmpv6_filter() for IPv6) before we check sk_rcvbuf, otherwise packets rejected by ICMP_FILTER/ICMPV6_FILTER or the multicast filter are counted in sk_drops. So move the check right before skb_clone().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
026763ece881b4c636173c25d012cde085689027 to < 3c375c11b9b1ec1d539d80632652e835aa6ec36eaffected026763ece881b4c636173c25d012cde085689027 to < 943450de8fc7679859dbdaa201b46b2f7ebfb019affected026763ece881b4c636173c25d012cde085689027 to < 45441a94d50200f1478c52857725e6df624bf2adaffected
Linux Linux
Default version status: affected
6.9affected0 to < 6.9unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected