CVE-2026-100052: net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()
In the Linux kernel, the following vulnerability has been resolved:
net: skbuff: don't BUG() on a bad csumstart in skbcopyandcsumdev()
skbcopyandcsumdev() copies everything up to the checksum start out of the linear area, and BUG()s if the checksum start is past the end of the linear area. It misses the other direction: a CHECKSUMPARTIAL skb that has been pulled past its csumstart gives a negative offset, which gets past the check and becomes a ~4GB copy. It also trusts csumoffset when it stores the folded checksum. So far skbcopyandcsumbits() BUG()ing on a short skb has covered for that, but once it returns instead, a bad csumoffset would write past the end of the caller's buffer.
The function returns void and its callers are drivers copying a frame into a bounce buffer just before handing it to the hardware. There's nothing for them to back out of, so check both ends of csumstart and that the checksum field fits in the frame, and if not, copy the whole frame with skbcopybits() without filling in the checksum, with a DEBUGNETWARNONONCE() for debug kernels. The frame goes out with a bad checksum and is dropped by the receiver. If even that copy fails, zero the buffer so the driver doesn't send stale bytes.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
How can administrators detect occurrences of this condition?
On debug kernels, the resolved code emits a DEBUG_NET_WARN_ON_ONCE() warning when it detects an invalid checksum start or a checksum field that does not fit in the frame.
What happens to malformed packets after the fix is applied?
The kernel copies the full frame without filling in the checksum when the checksum metadata is invalid. The resulting frame has a bad checksum and is expected to be dropped by the receiver; if copying also fails, the truncated description indicates the fallback behavior continues beyond the available data.