Linux
scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() call in _base_assign_reply_queues()
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < f531758ef21ba9a7716148cc290e8d9a110f20d9
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < 06a994ad7bbd13714cd45df582389f751531e60c
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < 7bcce856c79c1799351e170aec83e018ccf3d044
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < 0a5f7cdb0cb911584720591069065f09c59ec4fc
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < 7b23144c3ff6e46d7d4a464b02f8944265684e39
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < 45504e621b7e884abe59f201e093a3eac7fca7fe
- >= 728bbc6cbff70051813730fb7977f5d99d867e12, < e0d26fe176a8db6ccad4ab38c5bab29391c1946b
Fixed in f531758ef21ba9a7716148cc290e8d9a110f20d9, 06a994ad7bbd13714cd45df582389f751531e60c, 7bcce856c79c1799351e170aec83e018ccf3d044, 0a5f7cdb0cb911584720591069065f09c59ec4fc, 7b23144c3ff6e46d7d4a464b02f8944265684e39, 45504e621b7e884abe59f201e093a3eac7fca7fe, e0d26fe176a8db6ccad4ab38c5bab29391c1946b
- 5.3
Fixed in 0, 5.15.222, 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7, 7.3
Mitigation
Upgrade Linux to f531758ef21ba9a7716148cc290e8d9a110f20d9 or 06a994ad7bbd13714cd45df582389f751531e60c or 7bcce856c79c1799351e170aec83e018ccf3d044 or 0a5f7cdb0cb911584720591069065f09c59ec4fc or 7b23144c3ff6e46d7d4a464b02f8944265684e39 or 45504e621b7e884abe59f201e093a3eac7fca7fe or e0d26fe176a8db6ccad4ab38c5bab29391c1946b or later.
Upgrade Linux to 0 or 5.15.222 or 6.1.189 or 6.6.158 or 6.12.111 or 6.18.53 or 7.2.7 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.