CVE-2025-21776
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21776 affects the Linux kernel's USB hub driver, where a vulnerability was discovered that could lead to a NULL pointer dereference. The issue was discovered by Robert Morris and disclosed in February 2025. The vulnerability exists when a USB hub device violates the USB 2.0 specification by having more than one configuration or interface, causing the usbhubtostructhub() function to potentially dereference a NULL or inappropriate pointer (NVD).

Technical details

The vulnerability occurs when a USB hub device has two interfaces, causing the hub driver to bind to interface 1 instead of interface 0, where usbhubtostructhub() expects to find the hub structure. This can result in a general protection fault with a non-canonical address access. The issue manifests as a NULL pointer dereference in the usbhubadjust_deviceremovable function. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause a kernel crash through a NULL pointer dereference, leading to a denial of service condition. The impact is limited to local attacks and requires low privileges to execute (NVD).

Mitigation and workarounds

The issue has been patched in the Linux kernel by adding validation checks in the hub_probe function to reject USB hub devices that violate the USB 2.0 specification by having more than one configuration or interface. The fix prevents the vulnerability by returning -EINVAL when such non-compliant devices are detected (Kernel Patch).

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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 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