CVE-2025-21704 Details
Description
In the Linux kernel, the following vulnerability has been resolved: usb: cdc-acm: Check control transfer buffer size before access If the first fragment is shorter than struct usb_cdc_notification, we can't calculate an expected_size. Log an error and discard the notification instead of reading lengths from memory outside the received data, which can lead to memory corruption when the expected_size decreases between fragments, causing `expected_size - acm->nb_index` to wrap. This issue has been present since the beginning of git history; however, it only leads to memory corruption since commit ea2583529cd1 ("cdc-acm: reassemble fragmented notifications"). A mitigating factor is that acm_ctrl_irq() can only execute after userspace has opened /dev/ttyACM*; but if ModemManager is running, ModemManager will do that automatically depending on the USB device's vendor/product IDs and its other interfaces.
A vulnerability in the Linux kernel's USB CDC-ACM driver can lead to out-of-bounds writes, causing memory corruption. This issue arises because the driver does not properly check the size of control transfer buffers before accessing them. When notifications are fragmented, the first fragment may not provide a complete header, allowing for manipulation of the expected size and resulting in data being written outside the allocated memory. The vulnerability has been present since the introduction of fragmented notification reassembly in version 4.12, but only recently began causing memory corruption. Exploitation requires sending carefully crafted fragmented notifications over USB, particularly on devices running ModemManager, which can automatically open the relevant device files.
The vulnerability has been fixed in the mainline Linux kernel and in several stable branches, including 6.13.4, 6.12.16, 6.6.79, and 6.1.129. Users should upgrade to these versions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.13, < 5.4.291 >= 5.5, < 5.10.235 >= 5.11, < 5.15.179 >= 5.16, < 6.1.129 >= 6.2, < 6.6.79 >= 6.7, < 6.12.16 >= 6.13, < 6.13.4 2.6.12 - 2.6.12 rc2 2.6.12 rc3 2.6.12 rc4 2.6.12 rc5 6.14 rc1 6.14 rc2 |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Oct 15, 2026 | CVE Modified | CVE |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 23, 2025 | Initial Analysis | [email protected] |
| Mar 25, 2025 | CVE Modified | kernel.org |
| Mar 13, 2025 | CVE Modified | kernel.org |
| Feb 22, 2025 | New CVE Received | kernel.org |