CVE-2026-53362: ipv6: account for fraggap on the paged allocation path
In ip6appenddata(), when the paged-allocation branch is taken (MSGMORE / NETIFFSG / large fraglen), alloclen and pagedlen are computed as
alloclen = fragheaderlen + transhdrlen; pagedlen = datalen - transhdrlen;
datalen already includes fraggap (datalen = length + fraggap). When fraggap is non-zero, this is not the first skb and transhdrlen is zero. The fraggap bytes carried over from the previous skb are copied just past the fragment headers in the new skb's linear area. The linear area is therefore undersized by fraggap bytes while pagedlen is overstated by the same amount, and the copy writes past skb->end into the trailing skbsharedinfo.
An unprivileged user can trigger this via a UDPv6 socket using MSGMORE together with MSGSPLICEPAGES.
The bad accounting was introduced by commit 773ba4fe9104 ("ipv6: avoid partial copy for zc"). Before commit ce650a166335 ("udp6: Fix ip6appenddata()'s handling of MSGSPLICEPAGES"), the negative copy value caused -EINVAL to be returned. That later commit allowed MSGSPLICEPAGES to proceed in this case, making the corruption triggerable.
The non-paged branch sets alloclen to fraglen, which already accounts for fraggap because datalen does. Bring the paged branch in line by adding fraggap to alloclen and subtracting it from pagedlen.
After this adjustment, copy no longer collapses to -fraggap on the paged path, so remove the stale comment describing that old arithmetic. Since a negative copy is no longer expected for a valid MSGSPLICEPAGES case, remove the MSGSPLICEPAGES exception from the negative copy check.
Other sources
ipv6: account for fraggap on the paged allocation path
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.144.1-1 - Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Fixed in CVE-2026-53362, CVE-2026-53366 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ce650a166335 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 773ba4fe9104
Event History
Frequently Asked Questions
What is the severity of CVE-2026-53362?
CVE-2026-53362 has a severity rating of 75.
What impact does CVE-2026-53362 have on the Linux kernel?
CVE-2026-53362 affects the IPv6 implementation in the Linux kernel related to paged allocation paths.
How does CVE-2026-53362 potentially affect network operations?
CVE-2026-53362 could lead to issues in data fragmentation and packet handling in network operations.
How do I mitigate CVE-2026-53362?
To mitigate CVE-2026-53362, ensure that you are using the latest patched version of the Linux kernel.
When was CVE-2026-53362 published?
CVE-2026-53362 was published on July 4, 2026.