Description
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.
Product status
753f1ca4e1e50248a1b760c9774d6d6b354562cc (git) before 1f9c828556416fbe3f49386708ce999fc4d4da06
753f1ca4e1e50248a1b760c9774d6d6b354562cc (git) before 479084ae0e1d9cb7929cb4298d35623de189f80a
753f1ca4e1e50248a1b760c9774d6d6b354562cc (git) before e334cbf3388fd9334503a778a82d9e9f14dd2f71
753f1ca4e1e50248a1b760c9774d6d6b354562cc (git) before 44bea2032af0425e4ce6d26a8af0ede79db49ec1
753f1ca4e1e50248a1b760c9774d6d6b354562cc (git) before 4db79a322db8c97f7b73b8a347395ef4d685eb40
6.0
Any version before 6.0
6.6.142 (semver)
6.12.92 (semver)
6.18.34 (semver)
7.0.11 (semver)
7.1-rc5 (original_commit_for_fix)
References
git.kernel.org/...c/1f9c828556416fbe3f49386708ce999fc4d4da06
git.kernel.org/...c/479084ae0e1d9cb7929cb4298d35623de189f80a
git.kernel.org/...c/e334cbf3388fd9334503a778a82d9e9f14dd2f71
git.kernel.org/...c/44bea2032af0425e4ce6d26a8af0ede79db49ec1
git.kernel.org/...c/4db79a322db8c97f7b73b8a347395ef4d685eb40