scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() call in _base_assign_reply_queues()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.1.189, Kernel 5.15.222, Kernel 6.18.53 and 10 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.16 <6.1.189, >=5.3 <5.15.222, >=6.13 <6.18.53, >=6.19 <7.2.7, >=6.2 <6.6.158, >=6.7 <6.12.111, =7.3, >=728bbc6cbff70051813730fb7977f5d99d867e12 <0a5f7cdb0cb911584720591069065f09c59ec4fc, >=728bbc6cbff70051813730fb7977f5d99d867e12 <45504e621b7e884abe59f201e093a3eac7fca7fe, >=728bbc6cbff70051813730fb7977f5d99d867e12 <7b23144c3ff6e46d7d4a464b02f8944265684e39, >=728bbc6cbff70051813730fb7977f5d99d867e12 <7bcce856c79c1799351e170aec83e018ccf3d044, >=728bbc6cbff70051813730fb7977f5d99d867e12 <e0d26fe176a8db6ccad4ab38c5bab29391c1946b, >=728bbc6cbff70051813730fb7977f5d99d867e12 <f531758ef21ba9a7716148cc290e8d9a110f20d9, =5.3, >=728bbc6cbff70051813730fb7977f5d99d867e12 <06a994ad7bbd13714cd45df582389f751531e60c | 6.1.189, 5.15.222, 6.18.53, 7.2.7, 6.6.158, 6.12.111, 0a5f7cdb0cb911584720591069065f09c59ec4fc, 45504e621b7e884abe59f201e093a3eac7fca7fe, 7b23144c3ff6e46d7d4a464b02f8944265684e39, 7bcce856c79c1799351e170aec83e018ccf3d044, e0d26fe176a8db6ccad4ab38c5bab29391c1946b, f531758ef21ba9a7716148cc290e8d9a110f20d9, 06a994ad7bbd13714cd45df582389f751531e60c |
| linux-kernel: Kernel | >=5.16.0 <6.1.189, >=5.3.0 <5.15.222, >=6.13.0 <6.18.53, >=6.19.0 <7.2.7, >=6.2.0 <6.6.158, >=6.7.0 <6.12.111 | 6.1.189, 5.15.222, 6.18.53, 7.2.7, 6.6.158, 6.12.111 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket