xdp: reject clones that overrun skb_shared_info tailroom
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 58408982fa39f9758124cec169f42854d6f98f35, Kernel 685edea27ac68d08fe4dbd3de74b858d2ad8e830, Kernel ba13763d667e008e185fedf592d53846a5b457d1 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: xdp: reject clones that overrun skb_shared_info tailroom xdpf_clone() clones broadcast copies into a single page and sets frame_sz to PAGE_SIZE. __xdp_build_skb_from_frame() later treats that page like a normal XDP frame and expects the usual skb_shared_info tailroom at the end of the buffer. The current check only rejects frames whose linear xdp_frame header, headroom, and packet data exceed PAGE_SIZE. A source frame backed by a larger allocation can still satisfy that check while extending into the clone's required shared-info area. When such a clone is converted back into an skb, build_skb_around() places skb_shared_info over live packet bytes and later writes can corrupt XDP return metadata. Reject clones unless their linear area fits inside SKB_WITH_OVERHEAD(PAGE_SIZE), matching the tailroom requirement already enforced by the XDP-to-skb conversion path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.14, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <58408982fa39f9758124cec169f42854d6f98f35, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <685edea27ac68d08fe4dbd3de74b858d2ad8e830, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <ba13763d667e008e185fedf592d53846a5b457d1, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <e48e8edbef2eb824201495daa5234560f632b23c, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <ef4b7c7046d29a67090de15af0da0d1ae8d1b192, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <f463b6f4957c9c3fd1c75f8d3e5af4879fa609c0, >=e624d4ed4aa8cc3c69d1359b0aaea539203ed266 <fab820f1691a9e26d9031f18aae1e9ce09078f92 | 58408982fa39f9758124cec169f42854d6f98f35, 685edea27ac68d08fe4dbd3de74b858d2ad8e830, ba13763d667e008e185fedf592d53846a5b457d1, e48e8edbef2eb824201495daa5234560f632b23c, ef4b7c7046d29a67090de15af0da0d1ae8d1b192, f463b6f4957c9c3fd1c75f8d3e5af4879fa609c0, fab820f1691a9e26d9031f18aae1e9ce09078f92 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket