Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
net: tun: bound receive headroom
tun_get_user() uses tun->align both as skb headroom and when choosing how much packet data to keep linear. OVS can propagate an oversized headroom request from another port to TUN or TAP.
When align is larger than the usable space in a one-page skb head, SKB_MAX_HEAD(align) underflows and the result becomes negative when stored in good_linear. That value later wraps when assigned to the size_t linear variable, and tun_alloc_skb() can place skb->data outside the allocated head.
Bound the headroom stored by TUN to the one-page skb-head budget and the largest non-sentinel 16-bit skb header offset. Leave one linear byte for raw TUN and a complete Ethernet header for TAP, including NET_IP_ALIGN.
Also pull the raw-TUN protocol byte and the TAP Ethernet header before accessing them, so these checks remain safe for nonlinear skbs supplied by other allocation paths.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 7 ELS , Debian 10 ELS , Debian 11 ELS , Oracle Linux 7 ELS , RHEL 7 ELS , TuxCare 9.6 ESU , TuxCare 9.8 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 4.18.0 (+16 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
68 kernels
|
| AlmaLinux 8 | Released |
135 kernels
|
| AlmaLinux 9 | Released |
135 kernels
|
| AlmaLinux 9.6 ESU | In Rollout |
20 kernels
|
| Amazon Linux 2 | Planned | — |
| CentOS 7 ELS | Planned | — |
| CentOS 8 | Released |
33 kernels
|
| CloudLinux OS 7h | Released |
119 kernels
|
| CloudLinux OS 8 | Released |
114 kernels
|
| Debian 12 | Planned | — |
| Debian 13 | Released |
17 kernels
|
| Oracle Linux 10 | Released |
53 kernels
|
| Oracle Linux 7 UEK 6 | Released |
112 kernels
|
| Oracle Linux 8 | Released |
152 kernels
|
| Oracle Linux 8 UEK 6 | Released |
165 kernels
|
| Oracle Linux 8 UEK 7 | Released |
113 kernels
|
| Oracle Linux 9 | Released |
134 kernels
|
| Oracle Linux 9 UEK 7 | Released |
113 kernels
|
| RHEL 10 | Released |
69 kernels
|
| RHEL 7 | In Progress | — |
| RHEL 8 | Released |
151 kernels
|
| RHEL 9 | Released |
133 kernels
|
| Rocky Linux 10 | Released |
53 kernels
|
| Rocky Linux 8 | Released |
112 kernels
|
| Rocky Linux 9 | Released |
110 kernels
|