net: skbuff: fix pull-bound underflow in skb_checksum_setup_ipv6()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 · < cfa643f2ca36c6f913fe1a2ceb12412ebb0fd962| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: skbuff: fix pull-bound underflow in skb_checksum_setup_ipv6()
skb_maybe_pull_tail() subtracts skb_headlen(skb) from the unsigned max argument and passes the result to __pskb_pull_tail() as a signed int. The function does not ensure that max is at least skb_headlen(skb).
This can happen while parsing IPv6 extension headers when an skb already has a linear area larger than MAX_IPV6_HDR_LEN. Once the parser needs data beyond the linear area, max - skb_headlen(skb) wraps and is converted to a negative delta. __pskb_pull_tail() then passes that negative length to skb_copy_bits(), where it can become a very large copy length.
Pass the requested length itself as the pull bound at the three extension-header call sites, so the delta can no longer go negative.
From the CVE record · Linux
The Linux kernel can underflow a pull bound while parsing IPv6 extension headers when a packet buffer’s linear area exceeds MAX_IPV6_HDR_LEN and the parser needs data beyond it. An attacker who can cause such a buffer to be processed could trigger a very large copy length; the input does not establish whether this is remotely reachable or requires authentication or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.