Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
KEYS: encrypted: fix integer overflow of datablob_len
encrypted_key_alloc() stores datablob_len in a u16. It is computed from multiple string and payload lengths. If the result exceeds U16_MAX, the assignment truncates the allocation size. KASAN reports a 32760-byte slab-out-of-bounds write when __ekey_init() copies the master key description into the undersized buffer.
The total payload length stored in key->datalen is also a u16. Use check_add_overflow() to reject values that do not fit either destination, and use kzalloc_flex() for the flexible-array allocation.
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 6 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:
- linux @ 5.10.259 (+18 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
79 kernels
|
| AlmaLinux 8 | In Rollout |
147 kernels
|
| AlmaLinux 9 | Released |
144 kernels
|
| AlmaLinux 9.2 ESU | Released |
39 kernels
|
| AlmaLinux 9.6 ESU | Released |
23 kernels
|
| CentOS 7 ELS | Released |
38 kernels
|
| CentOS 8 | In Rollout |
33 kernels
|
| CloudLinux OS 7h | In Rollout |
127 kernels
|
| CloudLinux OS 8 | In Rollout |
121 kernels
|
| Debian 13 | Released |
18 kernels
|
| Oracle Linux 10 | Released |
63 kernels
|
| Oracle Linux 8 | In Rollout |
162 kernels
|
| Oracle Linux 9 | Released |
143 kernels
|
| RHEL 10 | Released |
80 kernels
|
| RHEL 8 | In Rollout |
163 kernels
|
| RHEL 9 | In Rollout |
1 kernel
|
| Rocky Linux 10 | Released |
62 kernels
|
| Rocky Linux 8 | In Rollout |
123 kernels
|
| Rocky Linux 9 | Released |
119 kernels
|
| Ubuntu 24.04 | Planned | — |
| Ubuntu 24.04 AWS | Planned | — |
| Ubuntu 26.04 | Planned | — |