CVE-2022-49962 xhci: Fix null pointer dereference in remove if xHC has only one roothub
A null pointer dereference in the Linux kernel xHCI driver causes a system crash during reboot when only one root hub is present.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49962?
CVE-2022-49962 is a medium-severity vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
xhci: Fix null pointer dereference in remove if xHC has only one roothub
The remove path in xhci platform driver tries to remove and put both main and shared hcds even if only a main hcd exists (one roothub)
This causes a null pointer dereference in reboot for those controllers.
Check that the shared_hcd exists before trying to remove it.
Weakness: CWE-476
Which versions are affected by CVE-2022-49962?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49962?
Apply the vendor's patch.
Is CVE-2022-49962 being exploited?
There is no known exploitation of CVE-2022-49962 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49962, GHSA-7hw6-wgqh-2g44, UBUNTU-CVE-2022-49962.