Security Vulnerability Report
中文
CVE-2025-71302 CVSS 5.5 MEDIUM

CVE-2025-71302

Published: 2026-05-08 14:16:32
Last Modified: 2026-05-14 19:07:30
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: drm/panthor: fix for dma-fence safe access rules Commit 506aa8b02a8d6 ("dma-fence: Add safe access helpers and document the rules") details the dma-fence safe access rules. The most common culprit is that drm_sched_fence_get_timeline_name may race with group_free_queue.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
Linux Kernel (Versions prior to fix including commits ab8c0de60f16d, eae60933abd11, efe24898485c5)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC for CVE-2025-71302 (Conceptual) * This code attempts to trigger the race condition between * drm_sched_fence_get_timeline_name and group_free_queue. * Compile with: gcc -o poc_cve2025_71302 poc_cve2025_71302.c -lpthread */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <string.h> #define DEVICE_PATH "/dev/dri/renderD128" // Typical path, adjust as needed // Simulating the structure of the ioctl call that triggers the path // Actual IOCTL definitions would be needed from kernel headers void* trigger_timeline_name(void* arg) { int fd = *(int*)arg; // This thread continuously calls operations that lead to // drm_sched_fence_get_timeline_name while (1) { // Pseudo-code for the triggering syscall // ioctl(fd, DRM_IOCTL_PANTHOR_SUBMIT, ...); usleep(100); // Attempt to create timing window } return NULL; } void* trigger_group_free(void* arg) { int fd = *(int*)arg; // This thread triggers the cleanup path (group_free_queue) while (1) { // Pseudo-code for destroying the context/queue // ioctl(fd, DRM_IOCTL_PANTHOR_CTX_FREE, ...); usleep(150); // Slight offset to increase race probability } return NULL; } int main() { int fd = open(DEVICE_PATH, O_RDWR); if (fd < 0) { perror("Failed to open device"); return 1; } pthread_t t1, t2; printf("Starting PoC for CVE-2025-71302...\n"); pthread_create(&t1, NULL, trigger_timeline_name, &fd); pthread_create(&t2, NULL, trigger_group_free, &fd); pthread_join(t1, NULL); pthread_join(t2, NULL); close(fd); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-71302", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2026-05-08T14:16:31.607", "lastModified": "2026-05-14T19:07:30.090", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/panthor: fix for dma-fence safe access rules\n\nCommit 506aa8b02a8d6 (\"dma-fence: Add safe access helpers and document\nthe rules\") details the dma-fence safe access rules. The most common\nculprit is that drm_sched_fence_get_timeline_name may race with\ngroup_free_queue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.10", "versionEndExcluding": "6.18.16", "matchCriteriaId": "99F278E8-9E78-450B-A119-371329BC8941"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.19", "versionEndExcluding": "6.19.6", "matchCriteriaId": "373EEEDA-FAA1-4FB4-B6ED-DB4DD99DBE67"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/ab8c0de60f16d7e0b162ccbbb35fcf1f277c97c2", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/eae60933abd11df013876f647c9edbd35ce67615", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/efe24898485c5c831e629d9c6fb9350c35cb576f", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}