Description
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix buffer overflow in the BSG target device map The size of the target device map buffer is held in a u16 while the number of devices it is derived from is not bounded to fit. With enough devices the size wraps, a short buffer is allocated, and the loop that fills it writes past the end. Do the calculation in size_t.
Affected products and versions
Linux Linux8ba997b22f2cd5d29aad8c39f6201f7608ed0c04 – < 18f8301c66da25bbd4efed6ee39d57f31c66b88f · fb428a2005fc1260d18b989cc5199f281617f44d – < 60b25364d7e430c202fb3f1aa24247914d7b1d53 · fb428a2005fc1260d18b989cc5199f281617f44d – < 89930d3c26c282526f904118ddbe0d5b5755cb0b · fb428a2005fc1260d18b989cc5199f281617f44d – < 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8 · fb428a2005fc1260d18b989cc5199f281617f44d – < fe81812af36bad609d233f11ba989dedcde41ca3 · fb428a2005fc1260d18b989cc5199f281617f44d – < 203b3072e7aa10d98b3f2b766693ea925cfc571d · 2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2 · 6.1.16 – < 6.1.193 · 6.2.3 – < 6.3Fixed in: 18f8301c66da25bbd4efed6ee39d57f31c66b88f · 60b25364d7e430c202fb3f1aa24247914d7b1d53 · 89930d3c26c282526f904118ddbe0d5b5755cb0b · 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8 · fe81812af36bad609d233f11ba989dedcde41ca3 · 203b3072e7aa10d98b3f2b766693ea925cfc571d · 6.1.193 · 6.3
Linux Linux6.3Fixed in: 6.1.193 · 6.6.163 · 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1
References
- git.kernel.org/stable/c/18f8301c66da25bbd4efed6ee39d57f31c66b88f
- git.kernel.org/stable/c/60b25364d7e430c202fb3f1aa24247914d7b1d53
- git.kernel.org/stable/c/89930d3c26c282526f904118ddbe0d5b5755cb0b
- git.kernel.org/stable/c/3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8
- git.kernel.org/stable/c/fe81812af36bad609d233f11ba989dedcde41ca3
- git.kernel.org/stable/c/203b3072e7aa10d98b3f2b766693ea925cfc571d
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.