udp: fix potential use-after-free in tunnel segmentation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dbef491ebe7f3a4fb1b9111878b86a426fd540b7 · < 64d322c288577793eedd352b96ef75234ed380fe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
udp: fix potential use-after-free in tunnel segmentation
__skb_udp_tunnel_segment() gets the UDP header before ensuring the tunnel header is in the skb head. If the pull reallocates skb->head, the saved UDP header pointer is no longer valid.
Get the UDP header after the pull to avoid a potential use-after-free.
From the CVE record · Linux
The Linux kernel's UDP tunnel segmentation code can retain a pointer to a UDP header after a buffer reallocation invalidates it, creating a potential use-after-free. The input does not establish whether an attacker can trigger this over the network or locally, or whether authentication or user interaction is required.
Engineers running Linux kernels should check whether their versions are affected; no affected versions are specified.