CVE-2025-21704

Aliases:UBUNTU-CVE-2025-21704DEBIAN-CVE-2025-21704
Advisory lineage Upstream: 0 Downstream: 61
Modified
Published: 22 Feb 2025, 09:43
Last modified:12 May 2026, 12:03

Vulnerability Summary

Overall Risk (default)
medium
41/100
CVSS Score
7.8 HIGH
v3.1 (nvd)
EPSS Score
0.36% LOW
0% probability +0.32%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

22 Feb 2025, 09:43
Published
Vulnerability first disclosed
12 May 2026, 12:03
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.36% Percentile: 29%

Techniques & Countermeasures

  • CWE-787Out-of-bounds Write

    The product writes data past the end, or before the beginning, of the intended buffer.

Affected Systems

  • debianlinux

    < 5.10.237-1 | < 6.1.129-1 | < 6.12.16-1 | < 6.12.16-1

  • debianlinux-6.1

    < 6.1.129-1~deb11u1

  • ubuntulinux

    all | < 4.4.0-278.312 | < 4.15.0-247.259 | < 5.4.0-216.236 | < 5.15.0-140.150 | < 6.8.0-78.78

  • ubuntulinux-allwinner-5.19

    all

  • ubuntulinux-aws

    < 4.4.0-1152.158 | < 4.4.0-1190.205 | < 4.15.0-1189.202 | < 5.4.0-1146.156 | < 5.15.0-1084.91 | < 6.8.0-1035.37

  • ubuntulinux-aws-5.0

    all

  • ubuntulinux-aws-5.11

    all

  • ubuntulinux-aws-5.13

    all

  • ubuntulinux-aws-5.15

    < 5.15.0-1084.91~20.04.1

  • ubuntulinux-aws-5.19

    all

  • ubuntulinux-aws-5.3

    all

  • ubuntulinux-aws-5.4

    < 5.4.0-1146.156~18.04.1

  • ubuntulinux-aws-5.8

    all

  • ubuntulinux-aws-6.2

    all

  • ubuntulinux-aws-6.5

    all

  • ubuntulinux-aws-6.8

    < 6.8.0-1035.37~22.04.1

  • ubuntulinux-aws-fips

    < 4.15.0-2127.133 | all | < 5.4.0-1146.156+fips1 | < 5.15.0-1084.91+fips1

  • ubuntulinux-aws-hwe

    < 4.15.0-1189.202~16.04.1

  • ubuntulinux-azure

    < 4.15.0-1197.212~14.04.1 | < 4.15.0-1197.212~16.04.1 | all | < 5.4.0-1151.158 | < 5.15.0-1089.98 | < 6.8.0-1034.39

  • ubuntulinux-azure-4.15

    < 4.15.0-1197.212

  • ubuntulinux-azure-5.11

    all

  • ubuntulinux-azure-5.13

    all

  • ubuntulinux-azure-5.15

    < 5.15.0-1089.98~20.04.1

  • ubuntulinux-azure-5.19

    all

  • ubuntulinux-azure-5.3

    all

  • ubuntulinux-azure-5.4

    < 5.4.0-1151.158~18.04.1

  • ubuntulinux-azure-5.8

    all

  • ubuntulinux-azure-6.11

    < 6.11.0-1015.15~24.04.1

  • ubuntulinux-azure-6.2

    all

  • ubuntulinux-azure-6.5

    all

  • ubuntulinux-azure-6.8

    < 6.8.0-1034.39~22.04.1

  • ubuntulinux-azure-edge

    all

  • ubuntulinux-azure-fde

    all | all

  • ubuntulinux-azure-fde-5.19

    all

  • ubuntulinux-azure-fde-6.2

    all

  • ubuntulinux-azure-fips

    < 4.15.0-2106.112 | all | < 5.4.0-1151.158+fips1 | < 5.15.0-1089.98+fips1

  • ubuntulinux-azure-nvidia

    < 6.8.0-1022.23

  • ubuntulinux-bluefield

    all | < 5.4.0-1105.112 | < 5.15.0-1066.68

  • ubuntulinux-fips

    < 4.4.0-1122.129 | all | < 4.15.0-1144.156 | < 5.4.0-1120.130 | < 5.15.0-140.150+fips1 | < 6.8.0-78.78+fips1

  • ubuntulinux-gcp

    < 4.15.0-1182.199~16.04.1 | all | < 5.4.0-1149.158 | < 5.15.0-1083.92 | < 6.8.0-1036.38

  • ubuntulinux-gcp-4.15

    < 4.15.0-1182.199

  • ubuntulinux-gcp-5.11

    all

  • ubuntulinux-gcp-5.13

    all

  • ubuntulinux-gcp-5.15

    < 5.15.0-1083.92~20.04.1

  • ubuntulinux-gcp-5.19

    all

  • ubuntulinux-gcp-5.3

    all

  • ubuntulinux-gcp-5.4

    < 5.4.0-1149.158~18.04.1

  • ubuntulinux-gcp-5.8

    all

  • ubuntulinux-gcp-6.11

    < 6.11.0-1015.15~24.04.1

  • ubuntulinux-gcp-6.2

    all

Showing first 50 affected entries in server-rendered view.

References (63)