NULL pointer dereference in Linux
CVE-2024-36896
- CVSS v3
- 9.1 Critical
- Public exploits
- None known
- EPSS
- 0.009 · 60.9th percentile
- Published
- 2024-05-30
In the Linux kernel, the following vulnerability has been resolved:
USB: core: Fix access violation during port device removal
Testing with KASAN and syzkaller revealed a bug in port.c:disable_store():
usb_hub_to_struct_hub() can return NULL if the hub that the port belongs to
is concurrently removed, but the function does not check for this
possibility before dereferencing the returned value.
It turns out that the first dereference is unnecessary, since hub->intfdev
is the parent of the port device, so it can be changed easily. Adding a
check for hub == NULL prevents further problems.
The same bug exists in the disable_show() routine, and it can be fixed the
same way.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.009, 60.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions f061f43d7418cb62b8d073e221ec75d3f5b89e17, 6.0, 0
- Linux Kernel — versions 6.9