net: skbuff: don't BUG() on a bad csum_start in skb_copy_and_csum_dev()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before f31a1f4c18edba84b61c016f3d68fe5f945b75e2 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8c0d59fd1402c989fe6ec1ab3a015b3e2974862d Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fbe0784189f28079a23991e1fc385efcaf7beb8a Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c59aeb403f6cc4205a9ebb7217e7d3ec62624bf1 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 77ef7f1d47d50501f4730075ede2bad23ca84d03 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 818fb17d609baf8e9646425c3efea6beba14379b Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5fe6757584ab7fdeeb2bbd3b82120769dcdbacd9 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 56453199d28f0072a8196fba14b2d702632e2219 Affectedbefore 5.10.275 Affectedbefore 5.15.226 Affectedbefore 6.1.193 Affectedbefore 6.6.163 Affectedbefore 6.12.117 Affectedbefore 6.18.63 Affectedbefore 7.3.4 Affected |
| Linux Linux | 5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/f31a1f4c18edba84b61c016f3d68fe5f945b75e2
- https://git.kernel.org/stable/c/8c0d59fd1402c989fe6ec1ab3a015b3e2974862d
- https://git.kernel.org/stable/c/fbe0784189f28079a23991e1fc385efcaf7beb8a
- https://git.kernel.org/stable/c/c59aeb403f6cc4205a9ebb7217e7d3ec62624bf1
- https://git.kernel.org/stable/c/77ef7f1d47d50501f4730075ede2bad23ca84d03
- https://git.kernel.org/stable/c/818fb17d609baf8e9646425c3efea6beba14379b
- https://git.kernel.org/stable/c/5fe6757584ab7fdeeb2bbd3b82120769dcdbacd9
- https://git.kernel.org/stable/c/56453199d28f0072a8196fba14b2d702632e2219
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.