CVE-2024-26964
usb: xhci: Add error handling in xhci_map_urb_for_dma
Reported by linux · Published May 1, 2024
In the Linux kernel, the following vulnerability has been resolved: usb: xhci: Add error handling in xhci_map_urb_for_dma Currently xhci_map_urb_for_dma() creates a temporary buffer and copies the SG list to the new linear buffer. But if the kzalloc_node() fails, then the following sg_pcopy_to_buffer() can lead to crash since it tries to memcpy to NULL pointer. So return -ENOMEM if kzalloc returns null pointer.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-headers | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.84-99.169.amzn2023 |
| perf | Amazon Linux | 6.1.84-99.169.amzn2023 |
| linux_kernel | linux | 6.8.3, 6.7.12, 6.6.24, 6.1.84, 5.15.154 |
| Linux | Linux | be95cc6d71dfd0cba66e3621c65413321b398052, b2c898469dfc388f619c6c972a28466cbb1442ea, 962300a360d24c5be5a188cda48da58a37e4304d, 7b6cc33593d7ccfc3011b290849cfa899db46757, 620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4, 4a49d24fdec0a802aa686a567a3989a9fdf4e5dd |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2017a1e58472a27e532b9644b4a61dfe18f6baac, 2017a1e58472a27e532b9644b4a61dfe18f6baac, 2017a1e58472a27e532b9644b4a61dfe18f6baac |
| Linux | Linux | 5.11, 0, 5.15.154 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | perf | 0 |
| Linux | Linux | 6.1.84, 6.6.24, 6.7.12 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.84-99.169 | 0 |
| linux | linux_kernel | 5.11, 5.11, 5.11 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
Timeline
- May 1, 2024 EPSS Score (30 in total, the first dated here)
- May 1, 2024 CVE Published
- Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
- Dec 5, 2024 PoC Published (2 in total, the first dated here)
- Jan 15, 2026 Security Advisory (329 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (291 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26964
vulnetix vdb fixes CVE-2024-26964
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26964/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart