CVE-2024-35951

drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()

State
Published
Severity
7.8 High
Published
May 20, 2024
Updated
Oct 30, 2026
Reserved
May 17, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 187d2929206e6b098312c174ea873e4cedf5420d to before f959d043b745b352c7d1c9b832a57ffcf05bc935Affected
  • 187d2929206e6b098312c174ea873e4cedf5420d to before 31806711e8a4b75e09b1c43652f2a6420e6e1002Affected
  • 187d2929206e6b098312c174ea873e4cedf5420d to before e18070c622c63f0cab170348e320454728c277aaAffected
  • 187d2929206e6b098312c174ea873e4cedf5420d to before 1fc9af813b25e146d3607669247d0f970f5a87c3Affected
LinuxLinux
  • 5.4Affected
  • before 5.4Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.28 through 6.6.*Not affected
  • 6.8.7 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.