Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Use krealloc_array() in dal_vector_reserve()
[Why & How] dal_vector_reserve() computes the allocation size as “capacity * vector->struct_size” using uint32_t arithmetic, which can silently wrap to a small value on overflow. This would cause krealloc to return a smaller buffer than expected, leading to heap overflows on subsequent vector appends.
Replace krealloc() with krealloc_array() which performs an internal overflow check and returns NULL on wrap, preventing the issue.
(cherry picked from commit 37668568641ccc4cc1dbca4923d0a16609dd5707)
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , Debian 10 ELS , Debian 11 ELS , Oracle Linux 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 @ 5.10.0 (+12 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
60 kernels
|
| AlmaLinux 8 | In Rollout |
126 kernels
|
| AlmaLinux 9 | Released |
126 kernels
|
| AlmaLinux 9.2 ESU | Released |
32 kernels
|
| AlmaLinux 9.6 ESU | Released |
18 kernels
|
| CentOS 8 | Released |
33 kernels
|
| CloudLinux OS 7h | Released |
116 kernels
|
| CloudLinux OS 8 | Released |
111 kernels
|
| Debian 11 | Released |
44 kernels
|
| Debian 11 cloud | Released |
24 kernels
|
| Debian 12 | Released |
40 kernels
|
| Oracle Linux 10 | Released |
46 kernels
|
| Oracle Linux 8 | Released |
145 kernels
|
| Oracle Linux 9 | Released |
125 kernels
|
| RHEL 10 | Released |
60 kernels
|
| RHEL 8 | In Rollout |
142 kernels
|
| RHEL 9 | Released |
124 kernels
|
| Rocky Linux 10 | Released |
43 kernels
|
| Rocky Linux 8 | In Rollout |
104 kernels
|
| Rocky Linux 9 | Released |
101 kernels
|