Description
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix buffer overflow when caching log data Each log data slot holds a header followed by the payload, but the copy was sized against the whole slot and so wrote one header length past the end of it. Subtracting the header on its own is not enough either, because the entry size is derived from the controller reply size and can be smaller than the header. Work out the payload room first and clamp the copy to it.
Affected products and versions
Linux Linux43ca110050988c7a0e581d24ce212ef34a4cdf29 – < ae6868f44e1977cbc6ef4fccbf289cc100c0f42a · 43ca110050988c7a0e581d24ce212ef34a4cdf29 – < 415e38d80d19e1b754edec8b2b3819aab033b149 · 43ca110050988c7a0e581d24ce212ef34a4cdf29 – < 2841b026431455e55015506fde993279a06a2b5b · 43ca110050988c7a0e581d24ce212ef34a4cdf29 – < 7a4044f890fc3091610ea6bfe62de24d7a81d0a4 · 43ca110050988c7a0e581d24ce212ef34a4cdf29 – < 27b51ecdd2258bc261f5330eda0694bdc2685fd1 · 43ca110050988c7a0e581d24ce212ef34a4cdf29 – < 9ff1af19c488efad66f2b803eefa0abd5fdac8f4Fixed in: ae6868f44e1977cbc6ef4fccbf289cc100c0f42a · 415e38d80d19e1b754edec8b2b3819aab033b149 · 2841b026431455e55015506fde993279a06a2b5b · 7a4044f890fc3091610ea6bfe62de24d7a81d0a4 · 27b51ecdd2258bc261f5330eda0694bdc2685fd1 · 9ff1af19c488efad66f2b803eefa0abd5fdac8f4
Linux Linux5.19Fixed 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/ae6868f44e1977cbc6ef4fccbf289cc100c0f42a
- git.kernel.org/stable/c/415e38d80d19e1b754edec8b2b3819aab033b149
- git.kernel.org/stable/c/2841b026431455e55015506fde993279a06a2b5b
- git.kernel.org/stable/c/7a4044f890fc3091610ea6bfe62de24d7a81d0a4
- git.kernel.org/stable/c/27b51ecdd2258bc261f5330eda0694bdc2685fd1
- git.kernel.org/stable/c/9ff1af19c488efad66f2b803eefa0abd5fdac8f4
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.