drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()
Subject: [PATCH] drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()
If some the pages or sgt allocation failed, we shouldn't release the pages ref we got earlier, otherwise we will end up with unbalanced get/put_pages() calls. We should instead leave everything in place and let the BO release function deal with extra cleanup when the object is destroyed, or let the fault handler try again next time it's called.
From the CVE record · Linux
The Panfrost MMU fault handler can incorrectly release page references when page or scatter-gather table allocation fails, causing unbalanced get/put_pages() calls. The input does not specify an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the Panfrost driver should check their versions against the vendor advisory; affected versions are not specified.