CVE-2024-57981 usb: xhci: Fix NULL pointer dereference on certain command aborts
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
usb: xhci: Fix NULL pointer dereference on certain command aborts
If a command is queued to the final usable TRB of a ring segment, the
enqueue pointer is advanced to the subsequent link TRB and no further.
If the command is later aborted, when the abort completion is handled
the dequeue pointer is advanced to the first TRB of the next segment.
If no further commands are queued, xhci_handle_stopped_cmd_ring() sees
the ring pointers unequal and assumes that there is a pending command,
so it calls xhci_mod_cmd_timer() which crashes if cur_cmd was NULL.
Don't attempt timer setup if cur_cmd is NULL. The subsequent doorbell
ring likely is unnecessary too, but it's harmless. Leave it alone.
This is probably Bug 219532, but no confirmation has been received.
The issue has been independently reproduced and confirmed fixed using
a USB MCU programmed to NAK the Status stage of SET_ADDRESS forever.
Everything continued working normally after several prevented crashes.
Upgrade path
13 packages: 10 fixed, 1 partially fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Siemens SIMATIC S7-1500 TM MFP - BIOS | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | All versions | No fix listed | No fix yet |
| cbl-mariner kernel(CBL-Mariner 2.0) | < 5.15.179.1-1; All versions | 5.15.179.1-1 | Partially fixed |
| azure linux kernel(Azure Linux 3.0) | < 6.6.78.1-3 | 6.6.78.1-3 | Fixed |
| debian/linux(Debian 12) | < 6.1.129-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +32 more | 6.1.129-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.13-1 | 6.12.13-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.13-1 | 6.12.13-1 | Fixed |
| Linux kernel | < 5.4.291; < 5.10.235; < 5.15.179; < 6.1.129 +17 more | 0ce5c0dac768be14afe2426101b568a0f66bfc4d, 1e0a19912adb68a4b2b74fd77001c96cd83eb073, 4ff18870af793ce2034a6ad746e91d0a3d985b88, 5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.76, 6.12.13, 6.13.2, 6.14, ae069cd2ba09a2bd6a87a68c59ef0b7ea39cd641, b649f0d5bc256f691c7d234c3986685d54053de1, b44253956407046e5907d4d72c8fa5b93ae94485, cf30300a216a4f8dce94e11781a866a09d4b50d4, fd8bfaeba4a85b14427899adec0efb3954300653 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-140.150 | 5.15.0-140.150 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-64.67 | 6.8.0-64.67 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1080.85 | 5.15.0-1080.85 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1078.81 | 5.15.0-1078.81 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1031.35 | 6.8.0-1031.35 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner kernel(CBL-Mariner:2.0) | < 5.15.179.1-1 | 5.15.179.1-1 |
| azure linux kernel(Azure Linux:3.0) | < 6.6.78.1-3 | 6.6.78.1-3 |
| cbl-mariner kernel(CBL-Mariner:2.0) | All versions | No fix listed |
| debian/linux(Debian:12) | < 6.1.129-1 | 6.1.129-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| 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 |
Show 44 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.13-1 | 6.12.13-1 |
| debian/linux(Debian:14) | < 6.12.13-1 | 6.12.13-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-140.150 | 5.15.0-140.150 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1080.85 | 5.15.0-1080.85 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1078.81 | 5.15.0-1078.81 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < fd8bfaeba4a85b14427899adec0efb3954300653 | fd8bfaeba4a85b14427899adec0efb3954300653 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < b44253956407046e5907d4d72c8fa5b93ae94485 | b44253956407046e5907d4d72c8fa5b93ae94485 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < cf30300a216a4f8dce94e11781a866a09d4b50d4 | cf30300a216a4f8dce94e11781a866a09d4b50d4 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < 4ff18870af793ce2034a6ad746e91d0a3d985b88 | 4ff18870af793ce2034a6ad746e91d0a3d985b88 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < b649f0d5bc256f691c7d234c3986685d54053de1 | b649f0d5bc256f691c7d234c3986685d54053de1 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < ae069cd2ba09a2bd6a87a68c59ef0b7ea39cd641 | ae069cd2ba09a2bd6a87a68c59ef0b7ea39cd641 |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < 0ce5c0dac768be14afe2426101b568a0f66bfc4d | 0ce5c0dac768be14afe2426101b568a0f66bfc4d |
| Linux kernel | >= c311e391a7efd101250c0e123286709b7e736249, < 1e0a19912adb68a4b2b74fd77001c96cd83eb073 | 1e0a19912adb68a4b2b74fd77001c96cd83eb073 |
| Linux kernel | = 3.16 | No fix listed |
| Linux kernel | < 5.4.291 | 5.4.291 |
| Linux kernel | < 5.10.235 | 5.10.235 |
| Linux kernel | < 5.15.179 | 5.15.179 |
| Linux kernel | < 6.1.129 | 6.1.129 |
| Linux kernel | < 6.6.76 | 6.6.76 |
| Linux kernel | < 6.12.13 | 6.12.13 |
| Linux kernel | < 6.13.2 | 6.13.2 |
| Linux kernel | < 6.14 | 6.14 |
| Siemens SIMATIC S7-1500 TM MFP - BIOS | All versions | No fix listed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | All versions | No fix listed |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-64.67 | 6.8.0-64.67 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1031.35 | 6.8.0-1031.35 |
| Linux kernel | >= 3.16, < 6.1.129 | 6.1.129 |
| Linux kernel | >= 6.2, < 6.6.76 | 6.6.76 |
| Linux kernel | >= 6.7, < 6.12.13 | 6.12.13 |
| Linux kernel | >= 6.13, < 6.13.2 | 6.13.2 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2024-57981 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7510-1 vendor-advisory
- USN-7510-2 vendor-advisory
- USN-7511-1 vendor-advisory
- USN-7511-2 vendor-advisory
- USN-7512-1 vendor-advisory
- USN-7516-1 vendor-advisory
- USN-7516-2 vendor-advisory
- USN-7517-1 vendor-advisory
- USN-7518-1 vendor-advisory
- USN-7521-1 vendor-advisory
- USN-7510-3 vendor-advisory
- USN-7510-4 vendor-advisory
- USN-7510-5 vendor-advisory
- USN-7511-3 vendor-advisory
- USN-7516-3 vendor-advisory
- USN-7516-4 vendor-advisory
- USN-7517-2 vendor-advisory
- USN-7521-2 vendor-advisory
- USN-7516-5 vendor-advisory
- USN-7516-6 vendor-advisory
- USN-7517-3 vendor-advisory
- USN-7510-6 vendor-advisory
- USN-7521-3 vendor-advisory
- USN-7510-7 vendor-advisory
- USN-7539-1 vendor-advisory
- USN-7540-1 vendor-advisory
- USN-7516-7 vendor-advisory
- USN-7516-8 vendor-advisory
- USN-7510-8 vendor-advisory
- USN-7516-9 vendor-advisory
- USN-7593-1 vendor-advisory
- USN-7602-1 vendor-advisory
- USN-7640-1 vendor-advisory
- USN-7651-1 vendor-advisory
- USN-7652-1 vendor-advisory
- USN-7653-1 vendor-advisory
- USN-7651-2 vendor-advisory
- USN-7651-3 vendor-advisory
- USN-7651-4 vendor-advisory
- USN-7651-5 vendor-advisory
- USN-7651-6 vendor-advisory
- USN-7737-1 vendor-advisory
- www.cve.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org mailing-list patch
- git.kernel.org mailing-list patch
- git.kernel.org mailing-list patch
- git.kernel.org mailing-list patch
- git.kernel.org mailing-list patch
- lists.debian.org
- lists.debian.org
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2025-5266 third-party-advisory