# CVE-2024-36896: USB: core: Fix access violation during port device removal

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.36% (percentile 72, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-30T15:29:00.850Z
- **Modified:** 2026-06-17T07:37:18.107Z

## Who should check

- Anyone running Linux \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 5f1d68ef5ddac27c6b997adccd1c339cef1e6848; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 63533549ff53d24daf47c443dbd43c308afc3434; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 6119ef6517ce501fc548154691abdaf1f954a277; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< a4b46d450c49f32e9d4247b421e58083fde304ce
- Anyone running Linux 6.0

## Description

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.

## Affected and fixed versions

- Linux: \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 5f1d68ef5ddac27c6b997adccd1c339cef1e6848; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 63533549ff53d24daf47c443dbd43c308afc3434; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 6119ef6517ce501fc548154691abdaf1f954a277; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< a4b46d450c49f32e9d4247b421e58083fde304ce (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36896. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36896.md
Affected: Linux >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < 5f1d68ef5ddac27c6b997adccd1c339cef1e6848; >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < 63533549ff53d24daf47c443dbd43c308afc3434; >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < 6119ef6517ce501fc548154691abdaf1f954a277; >= f061f43d7418cb62b8d073e…
Fixed in: Linux 5f1d68ef5ddac27c6b997adccd1c339cef1e6848, Linux 63533549ff53d24daf47c443dbd43c308afc3434, Linux 6119ef6517ce501fc548154691abdaf1f954a277

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36896 being exploited?

There is no confirmed exploitation: CVE-2024-36896 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.36% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36896?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-36896?

Linux \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 5f1d68ef5ddac27c6b997adccd1c339cef1e6848; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 63533549ff53d24daf47c443dbd43c308afc3434; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< 6119ef6517ce501fc548154691abdaf1f954a277; \>= f061f43d7418cb62b8d073e221ec75d3f5b89e17, \< a4b46d450c49f32e9d4247b421e58083fde304ce; Linux 6.0.

### Is there a fix for CVE-2024-36896?

Yes. Fixed in Linux 5f1d68ef5ddac27c6b997adccd1c339cef1e6848, Linux 63533549ff53d24daf47c443dbd43c308afc3434, Linux 6119ef6517ce501fc548154691abdaf1f954a277. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-36896?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5f1d68ef5ddac27c6b997adccd1c339cef1e6848>
- patch: <https://git.kernel.org/stable/c/63533549ff53d24daf47c443dbd43c308afc3434>
- patch: <https://git.kernel.org/stable/c/6119ef6517ce501fc548154691abdaf1f954a277>
- patch: <https://git.kernel.org/stable/c/a4b46d450c49f32e9d4247b421e58083fde304ce>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36896>

HTML: <https://flawdb.com/CVE-2024-36896> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36896>
