CVE-2026-139339: drm/panthor: Fully disable the AS even if it's going to be re-assigned
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fully disable the AS even if it's going to be re-assigned
We're trying to be smart by skipping the UPDATE(UNMAPPED) step, but it remains to be proven it adds any noticeable overhead. Moreover, it's breaking the assumption that, once the VM is unbound, no access can happen on it.
For instance, say the panthormmuasenable() call in panthorvmactive() fails after we've called panthorvmreleaseaslocked(), we're now in a state where the HW still points to the old page table, but SW slot points to the new VM, which is not truly HW-bound.
If, after the asslots lock is released, the evicted VM itself is released, the HW might have access to memory that has been returned to the system until the reset we scheduled (because of the faulty ASCOMMAND) is effective.
Let's make this bullet-proof by doing a full bound -> unbound -> bound cycle on AS slot recycling.
Affected Software
Event History
Frequently Asked Questions
What conditions are needed for the stale hardware page-table access to occur?
The issue can arise when an address-space slot is recycled and panthor_mmu_as_enable() fails after panthor_vm_release_as_locked() has released the previous VM binding. In that state, hardware may still point to the old page table while software associates the slot with a new VM.
What is the potential impact if the affected VM is released?
If the evicted VM is released after the address-space-slot lock is dropped, hardware may access memory that has been returned to the system. This exposure can persist until a reset scheduled because of the faulty AS_COMMAND takes effect.
What does the fix change?
The fix performs a complete bound-to-unbound-to-bound cycle when recycling an address-space slot. This ensures the address space is fully disabled before it is reassigned, rather than skipping the UPDATE(UNMAPPED) step.