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

CVE-2023-53651

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

Description

In the Linux kernel, the following vulnerability has been resolved: Input: exc3000 - properly stop timer on shutdown We need to stop the timer on driver unbind or probe failures, otherwise we get UAF/Oops.

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 < 6.6(包含exc3000驱动且未应用补丁的版本)
Linux Kernel 6.6.x(未修复版本)
Linux Kernel 6.1.x LTS(未修复版本)
Linux Kernel 5.15.x LTS(未修复版本)
Linux Kernel 5.10.x LTS(未修复版本)
Linux Kernel 5.4.x LTS(未修复版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * CVE-2023-53651 - Linux Kernel exc3000 UAF via timer not stopped on shutdown * * This PoC demonstrates the vulnerability by simulating the race condition * between driver unbind and timer firing. * * Note: This is a conceptual PoC. Actual exploitation requires kernel module * loading privileges and a real or emulated exc3000 touchscreen device. */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/timer.h> #include <linux/input.h> #include <linux/slab.h> /* Simulated exc3000 private data structure */ struct exc3000_data { struct input_dev *input; struct timer_list timer; char data_buffer[64]; int state; }; static struct exc3000_data *exc_data; /* Timer callback - simulates the vulnerable timer handler */ static void exc3000_timer_handler(struct timer_list *t) { struct exc3000_data *data = from_timer(data, t, timer); /* VULNERABILITY: data may have been freed if timer was not stopped */ pr_info("Timer fired, accessing data->state: %d\n", data->state); pr_info("Timer fired, data buffer: %s\n", data->data_buffer); /* Re-arm timer */ mod_timer(&data->timer, jiffies + msecs_to_jiffies(100)); } /* Simulated probe function - registers and starts timer */ static int __init exc3000_vuln_init(void) { exc_data = kzalloc(sizeof(struct exc3000_data), GFP_KERNEL); if (!exc_data) return -ENOMEM; /* Setup and start timer */ timer_setup(&exc_data->timer, exc3000_timer_handler, 0); mod_timer(&exc_data->timer, jiffies + msecs_to_jiffies(100)); pr_info("exc3000: Timer started, data allocated at %p\n", exc_data); return 0; } /* Simulated remove function - VULNERABLE: does NOT stop timer */ static void __exit exc3000_vuln_exit(void) { /* VULNERABILITY: Missing timer_shutdown_sync(&exc_data->timer) */ /* This causes UAF when timer fires after kfree */ pr_info("exc3000: Freeing data without stopping timer at %p\n", exc_data); kfree(exc_data); exc_data = NULL; /* Timer still active - will fire and access freed memory -> UAF/Oops */ } module_init(exc3000_vuln_init); module_exit(exc3000_vuln_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Security Research"); MODULE_DESCRIPTION("CVE-2023-53651 PoC - exc3000 timer UAF"); /* * Trigger steps: * 1. Load the vulnerable module: insmod exc3000_vuln.ko * 2. Wait for timer to be active * 3. Unload the module: rmmod exc3000_vuln * 4. Timer fires after kfree -> Use-After-Free -> kernel Oops/panic * * Fix: Add timer_shutdown_sync(&exc_data->timer) before kfree() in exit path. */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53651", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-07T16:15:48.620", "lastModified": "2026-02-03T22:24:42.040", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nInput: exc3000 - properly stop timer on shutdown\n\nWe need to stop the timer on driver unbind or probe failures, otherwise\nwe get UAF/Oops."}], "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": "4.15", "versionEndExcluding": "6.1.20", "matchCriteriaId": "82D4A26D-3FFB-4576-9232-8D3E9B9BAECD"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.2.3", "matchCriteriaId": "88C67289-22AD-4CA9-B202-5F5A80E5BA4B"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/526a177ac6353d65057eadb5d6edafc168f64484", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/79c81d137d36f9635bbcbc3916c0cccb418a61dd", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/bee57c20fc0ca5ef9b9a53a0335eab2ac9e9cae1", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}