Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: zero-initialize GART table on allocation
GART TLB is flushed after unmapping but not after mapping. Since amdgpu_bo_create_kernel() does not zero-initialize the buffer, when a single PTE is written the TLB may speculatively load other uninitialized entries from the same cacheline. Those garbage entries can appear valid, and a subsequent write to another PTE in the same cacheline may cause the GPU to use a stale garbage PTE from the TLB.
Fix this by calling memset_io() to zero-initialize the GART table with gart_pte_flags immediately after allocation.
Using AMDGPU_GEM_CREATE_VRAM_CLEARED, SDMA-based clear will not work since SDMA needs GART to be initialized to work.
(cherry picked from commit d9af8263b82b6eaa60c5718e0c6631c5037e4b24)
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:
- linux @ 5.4.0 (+13 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
|
| CentOS 8 | Released |
33 kernels
|
| CloudLinux OS 7h | Released |
116 kernels
|
| CloudLinux OS 8 | Released |
111 kernels
|
| Debian 12 | Planned | — |
| 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
|
| Ubuntu 24.04 | Released |
46 kernels
|