AZL-117839: CVE-2026-142972 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: fix the error handling of amdgpuvminitentities()
When initializing the immediate entity fails, amdgpuvminitentities() destroys that entity which was never set up, and when initializing the delayed entity fails, it returns without destroying the immediate one.
On navi48, with the allocation of the immediate entity's scheduler list failing through failslab while opening the render node:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] RIP: 0010:dorawspinlock+0x7b/0x280 rawspinlock+0x3c/0x50 drmschedrqremoveentity+0x90/0x2a0 [gpusched] drmschedentitykill+0x86/0x5a0 [gpusched] drmschedentityfini+0x23/0x270 [gpusched] drmschedentitydestroy+0x24/0x30 [gpusched] amdgpuvminitentities+0xc7/0x100 [amdgpu] amdgpuvminit+0x5d1/0x1480 [amdgpu] amdgpudriveropenkms+0x2b1/0xd10 [amdgpu]
Only destroy the immediate entity once it exists and the delayed one failed.
(cherry picked from commit 2f538f57501a71baeb7116ff7485f9a7025e4fb9)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 2f538f57501a71baeb7116ff7485f9a7025e4fb9
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the AMDGPU driver and opening its render node are implicated. The reported failure was reproduced on navi48 with KASAN and failslab fault injection enabled.
What must happen for the failure to occur?
Initialization of an AMDGPU VM scheduling entity must fail during setup. In the reported case, allocation of the immediate entity's scheduler list failed while the render node was being opened.
What is the observable impact if the issue is triggered?
The kernel can hit an Oops caused by a null-pointer dereference during scheduler entity cleanup. The failure occurs because cleanup may destroy an entity that was not initialized, or leave the immediate entity undisposed when delayed-entity initialization fails.
How can I tell whether this condition has occurred?
Look for a kernel Oops while opening the AMDGPU render node, with stack frames including amdgpu_vm_init_entities, drm_sched_entity_destroy, drm_sched_entity_fini, and drm_sched_rq_remove_entity. The supplied trace identifies the fault as a null-pointer dereference in the spin-lock path.