Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 728bbc6cbff70051813730fb7977f5d99d867e12 before f531758ef21ba9a7716148cc290e8d9a110f20d9; affected 728bbc6cbff70051813730fb7977f5d99d867e12 before 06a994ad7bbd13714cd45df582389f751531e60c; affected 728bbc6cbff70051813730fb7977f5d99d867e12 before 7bcce856c79c1799351e170aec83e018ccf3d044; affected 728bbc6cbff70051813730fb7977f5d99d867e12 before 0a5f7cdb0cb911584720591069065f09c59ec4fc; affected 728bbc6cbff70051813730fb7977f5d99d867e12 before 7b23144c3ff6e46d7d4a464b02f8944265684e39; affected 728bbc6cbff70051813730fb7977f5d99d867e12 before 45504e621b7e884abe59f201e093a3eac7fca7fe; affected 728bbc6cbff70051813730fb7977f5d99d867e12 before e0d26fe176a8db6ccad4ab38c5bab29391c1946b |
| Linux / Linux | affected 5.3; unaffected 0 before 5.3; unaffected 5.15.222 through 5.15.*; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2.7 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/f531758ef21ba9a7716148cc290e8d9a110f20d9
- https://git.kernel.org/stable/c/06a994ad7bbd13714cd45df582389f751531e60c
- https://git.kernel.org/stable/c/7bcce856c79c1799351e170aec83e018ccf3d044
- https://git.kernel.org/stable/c/0a5f7cdb0cb911584720591069065f09c59ec4fc
- https://git.kernel.org/stable/c/7b23144c3ff6e46d7d4a464b02f8944265684e39
- https://git.kernel.org/stable/c/45504e621b7e884abe59f201e093a3eac7fca7fe
- https://git.kernel.org/stable/c/e0d26fe176a8db6ccad4ab38c5bab29391c1946b