ipv6: exthdrs: refresh nh after handling HAO option
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a831f5bbc89a9978795504be9e1ff412043f8f77 · < 751db1b802a067b7fff25880f4e9f9152a171538| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: exthdrs: refresh nh after handling HAO option
ip6_parse_tlv() caches skb_network_header(skb) in nh while walking IPv6 TLVs.
ipv6_dest_hao() may call pskb_expand_head() for a cloned skb, which can move the skb head and invalidate the cached network header pointer. Refresh nh after ipv6_dest_hao() returns so any trailing padding or TLVs are parsed from the current skb head.
This matches the existing pattern used in ip6_parse_tlv() after helpers that can modify skb header storage.
From the CVE record · Linux
The Linux kernel’s IPv6 TLV parser can use a cached network-header pointer after handling an HAO option moves the packet buffer, leaving the pointer invalid. The input does not establish what an attacker can do with this flaw or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with the affected IPv6 extension-header parsing code should check their installations; affected versions are not specified.