CVE-2026-90202: scsi: mpt3sas: Avoid freeing unallocated PCIe SGL buffers
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpt3sas: Avoid freeing unallocated PCIe SGL buffers
_base_release_memory_pools() unconditionally frees every ioc->pcie_sg_lookup[] entry, including ones the setup loop never allocated after a partial failure, causing a "bad dma" warning on debug kernels or a NULL pointer dereference otherwise.
The Linux kernel CVE team has assigned CVE-2026-90202 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 5.10.270 with commit 3361709fb6f6568b157c6f24ed21a4a5d86d73db Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 5.15.221 with commit 240b582b6372bebb1245d911add9954b7dd6c02d Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.1.188 with commit a61181f9ee30a98d2350c1bff32954a7521f9a23 Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.6.157 with commit afedf35df054bd713e9e13771aa0a056932c5c67 Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.12.110 with commit bc3398db3b64729b4a7907af317daad04795ad40 Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 6.18.52 with commit 2dbdd025b228110ccbfbab95fe16e098313a14af Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 7.2.6 with commit e2cd23443d3616ea0876f27762b17e2ec67d896c Issue introduced in 4.16 with commit dbec4c9040edc15442c3ebdb65408aa9d3b82c24 and fixed in 7.3-rc1 with commit b9f679dfe629004b593f018df33b330d799bcee4
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90202
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/scsi/mpt3sas/mpt3sas_base.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/3361709fb6f6568b157c6f24ed21a4a5d86d73db https://git.kernel.org/stable/c/240b582b6372bebb1245d911add9954b7dd6c02d https://git.kernel.org/stable/c/a61181f9ee30a98d2350c1bff32954a7521f9a23 https://git.kernel.org/stable/c/afedf35df054bd713e9e13771aa0a056932c5c67 https://git.kernel.org/stable/c/bc3398db3b64729b4a7907af317daad04795ad40 https://git.kernel.org/stable/c/2dbdd025b228110ccbfbab95fe16e098313a14af https://git.kernel.org/stable/c/e2cd23443d3616ea0876f27762b17e2ec67d896c https://git.kernel.org/stable/c/b9f679dfe629004b593f018df33b330d799bcee4