ZeroDay Brief
CVE-2025-21704

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, w…

CVSS
7.8High
Chance of exploitation (EPSS)
—
Published
Feb 22, 2025
In the news
1 story
Vendor advisory More from this vendor

What to do

A serious memory corruption flaw in Linux kernel that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Affected versions
Linux
2.6.12

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.

CWE-787

Affected products

Get alerts for these →

Timeline 6

Latest change: Siemens SIMATIC S7 Webserver API (Oct 22, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Thu, Oct 22, 2026

  1. AdvisorySiemens SIMATIC S7 Webserver APICISA · 12:00 UTC
  2. AdvisorySiemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFPCISA · 12:00 UTC
  3. AdvisorySiemens SIMATIC IPCsCISA · 12:00 UTC
  4. AdvisorySiemens SIMATIC S7 PLCs Web ServerCISA · 12:00 UTC
  5. AdvisorySiemens SIMATIC S7-1500 TM MFPCISA · 12:00 UTC

Sat, Feb 22, 2025

  1. CVECVE-2025-21704 published (CVSS 7.8)CVE Program · 10:15 UTC

References 13

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”