net/packet: clear RX owner on VNET header error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 61fad6816fc10fb8793a925d5c1256d1c3db0cd2 · < 805edbdcb8681da5f7ee43b3c3c809f7a8c31208| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/packet: clear RX owner on VNET header error
Commit 61fad6816fc1 ("net/packet: tpacket_rcv: avoid a producer race condition") added rx_owner_map and made tpacket_rcv() claim a V1 or V2 ring slot before converting the virtio-net header. If the conversion fails, the drop path leaves the slot claimed.
With a one-frame TPACKET_V2 ring, an unsupported UDP GSO packet leaves the only slot unavailable, so the ring also drops the next valid packet.
Clear the ownership bit on this error path. TPACKET_V3 already clears its block state here.
From the CVE record · Linux
In the Linux kernel, a failed virtio-net header conversion can leave a TPACKET_V1 or V2 ring slot claimed. With a one-frame TPACKET_V2 ring, an unsupported UDP GSO packet can cause the next valid packet to be dropped. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the affected net/packet code should check their systems; affected versions are not specified.