# CVE-2024-35951: drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-20T09:41:45.999Z
- Modified: 2026-10-30T13:17:27.683Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 187d2929206e6b098312c174ea873e4cedf5420d before f959d043b745b352c7d1c9b832a57ffcf05bc935; from 187d2929206e6b098312c174ea873e4cedf5420d before 31806711e8a4b75e09b1c43652f2a6420e6e1002; from 187d2929206e6b098312c174ea873e4cedf5420d before e18070c622c63f0cab170348e320454728c277aa; from 187d2929206e6b098312c174ea873e4cedf5420d before 1fc9af813b25e146d3607669247d0f970f5a87c3; 5.4 (not affected: before 5.4; from 6.1.191 up to 6.1.*; from 6.6.28 up to 6.6.*; from 6.8.7 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.4 before 6.6.28; from 6.7 before 6.8.7; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f959d043b745b352c7d1c9b832a57ffcf05bc935>
- <https://git.kernel.org/stable/c/31806711e8a4b75e09b1c43652f2a6420e6e1002> (patch)
- <https://git.kernel.org/stable/c/e18070c622c63f0cab170348e320454728c277aa> (patch)
- <https://git.kernel.org/stable/c/1fc9af813b25e146d3607669247d0f970f5a87c3> (patch)
- <http://www.openwall.com/lists/oss-security/2024/05/30/2> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2024/05/30/1> (mailing-list)

## Sources

- CVE List: [CVE-2024-35951](https://www.cve.org/CVERecord?id=CVE-2024-35951), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2024-35951](https://nvd.nist.gov/vuln/detail/CVE-2024-35951), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2024-35951 · Whole record: https://cve.day/CVE-2024-35951.json · Rebuilt by cve.day 2026-11-25T22:58:40.632Z
