CVE-2021-38204
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-38204 is a vulnerability discovered in the MAX-3421 host USB device driver in the Linux kernel before version 5.13.6. The vulnerability allows physically proximate attackers to cause a denial of service through use-after-free and system panic conditions by removing a MAX-3421 USB device in certain situations (Ubuntu Security, NVD).

Technical details

The vulnerability stems from improper handling of device removal events in the MAX-3421 USB driver. The driver was remembering the state of USB toggles for a device/endpoint and only updating them when a new device/endpoint was being used. If the old device was removed, this would cause writes to freed memory, leading to memory corruption (Linux Commit). The issue has been assigned a CVSS 3 Severity Score of 6.8 (Medium) (Ubuntu Security).

Impact

When exploited, this vulnerability can result in a denial of service condition through system crashes. The attack requires physical access to the system and can only be triggered by removing a MAX-3421 USB device at specific times during operation (NVD).

Mitigation and workarounds

The issue has been fixed in Linux kernel version 5.13.6 with a patch that changes how USB toggles are handled. The fix implements a simpler scheme where toggles are read from hardware when a URB is completed and written to hardware when any URB transaction is started. While this causes more SPI transactions, it prevents kernel panics (Linux Commit). Various Linux distributions have backported the fix to their supported kernel versions (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-modules-partner
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • python3-perf
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management