net: avoid potential underflow in qdisc_pkt_len_init() with UFO
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cf9acc90c80ecbee00334aa85d92f4e74014bcff · < 25ab0b87dbd89cecef8a9c60a02bb97832e471d1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: avoid potential underflow in qdisc_pkt_len_init() with UFO
After commit 7c6d2ecbda83 ("net: be more gentle about silly gso requests coming from user") virtio_net_hdr_to_skb() had sanity check to detect malicious attempts from user space to cook a bad GSO packet.
Then commit cf9acc90c80ec ("net: virtio_net_hdr_to_skb: count transport header in UFO") while fixing one issue, allowed user space to cook a GSO packet with the following characteristic :
IPv4 SKB_GSO_UDP, gso_size=3, skb->len = 28.
When this packet arrives in qdisc_pkt_len_init(), we end up with hdr_len = 28 (IPv4 header + UDP header), matching skb->len
Then the following sets gso_segs to 0 :
gso_segs = DIV_ROUND_UP(skb->len - hdr_len, shinfo->gso_size);
From the CVE record · Linux
The Linux kernel's qdisc_pkt_len_init() can mishandle a malformed UDP GSO packet, leading to a crash in fq_codel. A local user-space attacker who can submit a crafted GSO packet can trigger the crash; no user interaction is described.
Engineers running Linux kernels should check whether their kernel includes the affected network code; affected version ranges are not specified.