CVE-2024-35951 drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()
A use-after-free vulnerability in the Panfrost GPU driver allows attackers to cause denial of service or potentially escalate privileges via unbalanced page reference counting.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35951?
CVE-2024-35951 is a high-severity use after free vulnerability in Linux kernel, published on 20 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2024-35951?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35951?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-35951 being exploited?
There is no known exploitation of CVE-2024-35951 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-67755, BELL-CVE-2024-35951, DEBIAN-CVE-2024-35951, GHSA-w6jp-r2wp-jmpx, ROOT-OS-DEBIAN-11-CVE-2024-35951, ROOT-OS-DEBIAN-12-CVE-2024-35951 and 1 more.