CVE-2026-99030: net: skbuff: don't leave stale bytes in skb_copy_and_csum_bits()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: skbuff: don't leave stale bytes in skb_copy_and_csum_bits()
When skb_copy_and_csum_bits() reaches unreadable frags it returns 0 after copying only the linear part, and the rest of the caller's buffer is left as it was. The callers copy into a buffer that is about to go out on the wire: an ICMP error quoting the offending packet, or a driver's TX bounce buffer in skb_copy_and_csum_dev(). Neither buffer is zeroed beforehand, so whatever was in memory there gets sent.
Zero the part of the buffer we didn't fill. The checksum usually won't match the data any more, so the receiver will usually drop the packet, but either way it no longer carries anything it shouldn't. Only zero for a positive @len, a negative one from a broken caller must not turn into a huge memset().
The Linux kernel CVE team has assigned CVE-2026-99030 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit 65249feb6b3df9e17bab5911ee56fa7b0971e231 and fixed in 6.12.113 with commit 5f19b9cfff79508e8cb09be40d014cb0807f3854 Issue introduced in 6.12 with commit 65249feb6b3df9e17bab5911ee56fa7b0971e231 and fixed in 6.18.57 with commit 5551399751e2c9f31e4f3428040985a07e79d9c2 Issue introduced in 6.12 with commit 65249feb6b3df9e17bab5911ee56fa7b0971e231 and fixed in 7.2.11 with commit 39d1a6b601831237c6038b5e3ac8dbb883c1700a Issue introduced in 6.12 with commit 65249feb6b3df9e17bab5911ee56fa7b0971e231 and fixed in 7.3 with commit ab9414ed70bd783e902a85c350620dee269bcb2b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99030
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/core/skbuff.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/5f19b9cfff79508e8cb09be40d014cb0807f3854 https://git.kernel.org/stable/c/5551399751e2c9f31e4f3428040985a07e79d9c2 https://git.kernel.org/stable/c/39d1a6b601831237c6038b5e3ac8dbb883c1700a https://git.kernel.org/stable/c/ab9414ed70bd783e902a85c350620dee269bcb2b