Linux
net: gro: don't merge zcopy skbs
In the Linux kernel, the following vulnerability has been resolved: net: gro: don't merge zcopy skbs skb_gro_receive() can currently copy frags between the source and GRO skb, without checking the zerocopy status, and in particular the SKBFL_MANAGED_FRAG_REFS flag. When SKBFL_MANAGED_FRAG_REFS is set, the skb doesn't hold a reference on the pages in shinfo->frags. Appending those frags to another skb's frags without fixing up the page refcount can lead to UAF. When either the last skb in the GRO chain (the one we would append frags to) or the source skb is zerocopy, don't merge the skbs.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 753f1ca4e1e50248a1b760c9774d6d6b354562cc, < 3c6cc9f2ca65b6dd61b1af75452dc0e1cd0aad8d
- >= 753f1ca4e1e50248a1b760c9774d6d6b354562cc, < 1f9c828556416fbe3f49386708ce999fc4d4da06
- >= 753f1ca4e1e50248a1b760c9774d6d6b354562cc, < 479084ae0e1d9cb7929cb4298d35623de189f80a
- >= 753f1ca4e1e50248a1b760c9774d6d6b354562cc, < e334cbf3388fd9334503a778a82d9e9f14dd2f71
- >= 753f1ca4e1e50248a1b760c9774d6d6b354562cc, < 44bea2032af0425e4ce6d26a8af0ede79db49ec1
- >= 753f1ca4e1e50248a1b760c9774d6d6b354562cc, < 4db79a322db8c97f7b73b8a347395ef4d685eb40
Fixed in 3c6cc9f2ca65b6dd61b1af75452dc0e1cd0aad8d, 1f9c828556416fbe3f49386708ce999fc4d4da06, 479084ae0e1d9cb7929cb4298d35623de189f80a, e334cbf3388fd9334503a778a82d9e9f14dd2f71, 44bea2032af0425e4ce6d26a8af0ede79db49ec1, 4db79a322db8c97f7b73b8a347395ef4d685eb40
- 6.0
Fixed in 0, 6.1.176, 6.6.142, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to 3c6cc9f2ca65b6dd61b1af75452dc0e1cd0aad8d or 1f9c828556416fbe3f49386708ce999fc4d4da06 or 479084ae0e1d9cb7929cb4298d35623de189f80a or e334cbf3388fd9334503a778a82d9e9f14dd2f71 or 44bea2032af0425e4ce6d26a8af0ede79db49ec1 or 4db79a322db8c97f7b73b8a347395ef4d685eb40 or later.
Upgrade Linux to 0 or 6.1.176 or 6.6.142 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.