scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() call in _base_assign_reply_queues()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 728bbc6cbff70051813730fb7977f5d99d867e12 · < 45504e621b7e884abe59f201e093a3eac7fca7fe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() call in _base_assign_reply_queues()
dev_to_node() can return NUMA_NO_NODE (-1) on systems without NUMA topology information for the PCI device, such as single-socket boards that don't expose device-to-node affinity. Passing -1 directly into cpumask_of_node() indexes node_to_cpumask_map[-1], an out-of-bounds array read caught by UBSAN:
UBSAN: array-index-out-of-bounds in arch/x86/include/asm/topology.h:72:28 index -1 is out of range for type 'cpumask *[1024]'
Fall back to cpu_online_mask when no NUMA node is available, rather than assuming dev_to_node() always returns a valid node index.
From the CVE record · Linux
The Linux kernel's mpt3sas driver can make an out-of-bounds read while assigning reply queues when a PCI device has no NUMA node information. The input does not describe an attacker-controlled trigger or specify whether authentication or user interaction is required.
Engineers running Linux kernels with the mpt3sas driver on systems where PCI devices lack NUMA node information should check their installations; affected versions are not specified.