CVE-2024-36896 USB: core: Fix access violation during port device removal
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
6 packages: 6 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.94-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +20 more | 6.1.94-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| Linux kernel | < 6.1.91; < 6.6.31; < 6.8.10; < 6.9 +18 more | 5f1d68ef5dda, 5f1d68ef5ddac27c6b997adccd1c339cef1e6848, 6.1.91, 6.6.31, 6.8.10, 6.9, 6119ef6517ce, 6119ef6517ce501fc548154691abdaf1f954a277, 63533549ff53, 63533549ff53d24daf47c443dbd43c308afc3434, a4b46d450c49, a4b46d450c49f32e9d4247b421e58083fde304ce | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-40.40 | 6.8.0-40.40 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.94-1 | 6.1.94-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.11-1 | 6.8.11-1 |
Show 25 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:14) | < 6.8.11-1 | 6.8.11-1 |
| Linux kernel | >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < 5f1d68ef5ddac27c6b997adccd1c339cef1e6848 | 5f1d68ef5ddac27c6b997adccd1c339cef1e6848 |
| Linux kernel | >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < 63533549ff53d24daf47c443dbd43c308afc3434 | 63533549ff53d24daf47c443dbd43c308afc3434 |
| Linux kernel | >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < 6119ef6517ce501fc548154691abdaf1f954a277 | 6119ef6517ce501fc548154691abdaf1f954a277 |
| Linux kernel | >= f061f43d7418cb62b8d073e221ec75d3f5b89e17, < a4b46d450c49f32e9d4247b421e58083fde304ce | a4b46d450c49f32e9d4247b421e58083fde304ce |
| Linux kernel | = 6.0 | No fix listed |
| Linux kernel | < 6.1.91 | 6.1.91 |
| Linux kernel | < 6.6.31 | 6.6.31 |
| Linux kernel | < 6.8.10 | 6.8.10 |
| Linux kernel | < 6.9 | 6.9 |
| Linux kernel | >= f061f43d7418, < 5f1d68ef5dda | 5f1d68ef5dda |
| Linux kernel | >= f061f43d7418, < 63533549ff53 | 63533549ff53 |
| Linux kernel | >= f061f43d7418, < 6119ef6517ce | 6119ef6517ce |
| Linux kernel | >= f061f43d7418, < a4b46d450c49 | a4b46d450c49 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-40.40 | 6.8.0-40.40 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 |
| Linux kernel | >= 6.0, < 6.1.91 | 6.1.91 |
| Linux kernel | >= 6.2, < 6.6.31 | 6.6.31 |
| Linux kernel | >= 6.7, < 6.8.10 | 6.8.10 |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| Linux kernel | = 6.9-rc3 | No fix listed |
| Linux kernel | = 6.9-rc4 | No fix listed |
| Linux kernel | = 6.9-rc5 | No fix listed |
| Linux kernel | = 6.9-rc6 | No fix listed |
References
- Debian Security Tracker CVE-2024-36896 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6949-1 vendor-advisory
- USN-6952-1 vendor-advisory
- USN-6955-1 vendor-advisory
- USN-6949-2 vendor-advisory
- USN-6952-2 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch