ipv6: fix possible UAF in icmpv6_rcv()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4b3418fba0fe819197e3359d5ddbef84ba2c59de · < 7c66b368c6ff453f99cb39d84af93e908e51eef2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: fix possible UAF in icmpv6_rcv()
Caching saddr and daddr before pskb_pull() is problematic since skb->head can change.
Remove these temporary variables:
- We only access &ipv6_hdr(skb)->saddr and &ipv6_hdr(skb)->daddr when net_dbg_ratelimited() is called in the slow path.
- Avoid potential future misuse after pskb_pull() call.
From the CVE record · Linux
The Linux kernel’s icmpv6_rcv() can use IPv6 address data after pskb_pull() changes the packet buffer. This creates a possible use-after-free; the input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels should check whether their versions are affected; affected versions are not specified.