CVE-2026-4179

stm32: usb: Infinite while loop in Interrupt Handler

Published Mar 14, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Issues in stm32 USB device driver (drivers/usb/device/usb_dc_stm32.c) can lead to an infinite while loop.

Analysis

AI-generated

Technical impact

An flaw in the STM32 USB device controller driver embedded in Zephyr RTOS causes the interrupt handler to enter an endless loop when processing USB events. This unchecked loop, classified as CWE‑835, prevents the kernel from servicing other tasks, effectively freezing the system and denying service to legitimate USB operations.

Affected Systems

The vulnerability resides in the Zephyr RTOS STM32 USB device driver (drivers/usb/device/usb_dc_stm32.c). Every Zephyr build that includes this driver may be impacted, as no specific version was identified in the advisory.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity and the EPSS score of less than 1% suggests a low likelihood of widespread exploitation. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker could trigger the infinite loop by interacting with the USB subsystem, for example by sending malformed USB packets or by connecting a compromised peripheral. If the system permits USB access from untrusted sources, the denial of service could affect any user relying on USB functionality.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Zephyr patch that resolves the STM32 USB driver issue or upgrade to a release that includes the fix
  • If patching is not immediately possible, disable or tightly restrict USB device functionality on the embedded system
  • Monitor CPU usage and thread states for abnormal activity that may indicate an infinite loop
  • Review Zephyr security advisories regularly to stay informed about new patches

Generated by OpenCVE AI on April 3, 2026 at 00:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Zephyrproject
Zephyrproject zephyr
CPEs cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*
Vendors & Products Zephyrproject
Zephyrproject zephyr
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Zephyrproject-rtos
Zephyrproject-rtos zephyr
Vendors & Products Zephyrproject-rtos
Zephyrproject-rtos zephyr
Type Values Removed Values Added
Description Issues in stm32 USB device driver (drivers/usb/device/usb_dc_stm32.c) can lead to an infinite while loop.
Title stm32: usb: Infinite while loop in Interrupt Handler
Weaknesses CWE-835
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H'}

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
zephyr
Published
Updated
Oct 15, 2026, 10:10 PM
Reserved
Mar 14, 2026, 9:31 PM
Status
Analyzed
Published
Mar 16, 2026, 2:19 PM
Modified
Oct 15, 2026, 11:17 PM