Bug 2281940 (CVE-2024-35951) - CVE-2024-35951 kernel: drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()
Summary: CVE-2024-35951 kernel: drm/panfrost: Fix the error path in panfrost_mmu_map_f...
Keywords:
Status: NEW
Alias: CVE-2024-35951
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2281941
Blocks: 2282032
TreeView+ depends on / blocked
 
Reported: 2024-05-20 17:22 UTC by Robb Gatica
Modified: 2024-10-01 19:49 UTC (History)
49 users (show)

Fixed In Version: kernel 6.6.28, kernel 6.8.7, kernel 6.9
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the panfrost_mmu_map_fault_addr() function in the Linux kernel's drm panfrost_mmu.c driver, where improper error handling and cleanup can lead to resource management problems and system instability. This occurs when the shmem_read_mapping_page() or sg_alloc_table_from_pages() functions fail, causing panfrost_mmu_map_fault_addr() to handle the error by freeing any allocated pages prematurely. By calling drm_gem_shmem_put_pages() prematurely, a potential double-free scenario can result, leading to memory corruption or resource leaks.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-05-20 17:22:41 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

The Linux kernel CVE team has assigned CVE-2024-35951 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024052017-CVE-2024-35951-d66a@gregkh/T

Comment 1 Robb Gatica 2024-05-20 17:23:20 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281941]

Comment 2 Alex 2024-06-09 14:30:07 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-35951 is: 	SKIP	No affected files built, so skip this CVE	NO			-	-	unknown	 (where first YES/NO value means if related sources built).


Note You need to log in before you can comment on or make changes to this bug.