CVE-2024-26964

usb: xhci: Add error handling in xhci_map_urb_for_dma

MEDIUM
5.5
CVSS Score
Published: May 1, 2024 at 05:19 AM UTC
Updated: June 17, 2026 at 07:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.1545.11 ≤ v < 6.1.845.11 ≤ v < 6.6.245.11 ≤ v < 6.7.125.11 ≤ v < 6.8.35.11 ≤ v < 6.95.16 ≤ v < 6.1.846.2 ≤ v < 6.6.246.7 ≤ v < 6.7.126.8 ≤ v < 6.8.32017a1e58472a27e532b9644b4a61dfe18f6baac5.11
Vendor states this is fixed in 4a49d24fdec0a802aa686a567a3989a9fdf4e5dd (fixed)
Vendor states this is fixed in 620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4 (fixed)
Vendor states this is fixed in 7b6cc33593d7ccfc3011b290849cfa899db46757 (fixed)
Vendor states this is fixed in 962300a360d24c5be5a188cda48da58a37e4304d (fixed)
Vendor states this is fixed in b2c898469dfc388f619c6c972a28466cbb1442ea (fixed)
Vendor states this is fixed in be95cc6d71dfd0cba66e3621c65413321b398052 (fixed)
Vendor states this is fixed in 5.11 (unaffected)
Vendor states this is fixed in 5.15.154 (unaffected)
Vendor states this is fixed in 6.1.84 (unaffected)
Vendor states this is fixed in 6.6.24 (unaffected)
Vendor states this is fixed in 6.7.12 (unaffected)
Vendor states this is fixed in 6.8.3 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4a49d24fdec0a802aa686a567a3989a9fdf4e5dd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7b6cc33593d7ccfc3011b290849cfa899db46757
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/962300a360d24c5be5a188cda48da58a37e4304d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b2c898469dfc388f619c6c972a28466cbb1442ea
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/be95cc6d71dfd0cba66e3621c65413321b398052

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card