Skip to contentSkip to conversation

CVE-2026-97484: usbip: vhci_hcd: fix NULL deref in status_show_vhci

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

usbip: vhci_hcd: fix NULL deref in status_show_vhci

platform_get_drvdata() can return NULL if a VHCI host controller's probe failed (e.g. due to USB bus number exhaustion). status_show_vhci() checked for a NULL pdev but not for a NULL hcd returned by platform_get_drvdata(). Passing NULL to hcd_to_vhci_hcd() does not return NULL - it returns a pointer offset of 0x260, causing a NULL pointer dereference when that value is subsequently dereferenced.

Add a NULL check on hcd before calling hcd_to_vhci_hcd(). Move status_show_not_ready() above status_show_vhci() to make it callable from the new error path without a forward declaration.

The Linux kernel CVE team has assigned CVE-2026-97484 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.111 with commit 046a94fdb02eb1df86c8fa4614104ff801ba3ab7
	Fixed in 6.18.53 with commit dacd7c317ba12e035653c28a0eaaf23d91abc073
	Fixed in 7.2 with commit bc150783542ba2e7c1257d1299c6f3269bdba270

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97484

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/usb/usbip/vhci_sysfs.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/046a94fdb02eb1df86c8fa4614104ff801ba3ab7
	https://git.kernel.org/stable/c/dacd7c317ba12e035653c28a0eaaf23d91abc073
	https://git.kernel.org/stable/c/bc150783542ba2e7c1257d1299c6f3269bdba270