CVE-2026-100052
JSON

Not scored

net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()

Severity
Not scored
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev() skb_copy_and_csum_dev() 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 CHECKSUM_PARTIAL skb that has been pulled past its csum_start gives a negative offset, which gets past the check and becomes a ~4GB copy. It also trusts csum_offset when it stores the folded checksum. So far skb_copy_and_csum_bits() BUG()ing on a short skb has covered for that, but once it returns instead, a bad csum_offset 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 csum_start and that the checksum field fits in the frame, and if not, copy the whole frame with skb_copy_bits() without filling in the checksum, with a DEBUG_NET_WARN_ON_ONCE() 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

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f31a1f4c18edba84b61c016f3d68fe5f945b75e2, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8c0d59fd1402c989fe6ec1ab3a015b3e2974862d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fbe0784189f28079a23991e1fc385efcaf7beb8a, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c59aeb403f6cc4205a9ebb7217e7d3ec62624bf1, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 77ef7f1d47d50501f4730075ede2bad23ca84d03, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 818fb17d609baf8e9646425c3efea6beba14379b, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5fe6757584ab7fdeeb2bbd3b82120769dcdbacd9, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 56453199d28f0072a8196fba14b2d702632e2219 and 7 more
Not affected: from 5.10.275 up to 5.10.*, from 5.15.226 up to 5.15.*, from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.117 up to 6.12.*, from 6.18.63 up to 6.18.*
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-100052 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-100052 changed 2026-11-30Public domain