ip_vti: fix potential slab-use-after-free in decode_session6
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f855691975bb06373a98711e4cfe2c224244b536 · < 2b05bf5dc437f7891dd409a3eaf5058459391c7a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ip_vti: fix potential slab-use-after-free in decode_session6
When ip_vti device is set to the qdisc of the sfb type, the cb field of the sent skb may be modified during enqueuing. Then, slab-use-after-free may occur when ip_vti device sends IPv6 packets. As commit f855691975bb ("xfrm6: Fix the nexthdr offset in _decode_session6.") showed, xfrm_decode_session was originally intended only for the receive path. IP6CB(skb)->nhoff is not set during transmission. Therefore, set the cb field in the skb to 0 before sending packets.
From the CVE record · Linux
The Linux kernel’s ip_vti code may trigger a slab use-after-free when an ip_vti device uses an sfb qdisc and sends IPv6 packets. The input does not specify how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with ip_vti devices configured with an sfb qdisc should check their exposure; affected versions are not specified.