Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 376C18003D for ; Thu, 17 Sep 2026 16:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662179; cv=none; b=Mo0YKtJW6aghQ3Zq2Q0tzuyu3CVK3rPPp4UGBI2Bmxe4sV5gTBHLHXrU4KYhm/GxV4wMb//KgOTzwPQy4ObXwju5fIavt7/tmlmKSRMc5ORI8EpJf1c5wcZp5yVa/uk4mCj9YB4G52K5FBGjT8r5yejjZB190XzyeQEV8IPF9mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662179; c=relaxed/simple; bh=iSg7A1EDQf34a2qWNt9hxtB/lyXCFEIaNkN843jLjao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QL4SqlJdjKDTVfWcUfXWpXpC/LWpejcUVoArVMzmIVdOuEoceM10jXT6cFh64OzmyFLQJEgrtUoGeXObd9DPfJ6Ackq4BjcFmmwpHX9gJXvIuEb8QOp8mlX3D1r987i+pB+8w+8BYxcDB+w5jCS9TpmgU0d65QBIoTM5Ds928B0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dtl2sf5A; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Dtl2sf5A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7093E1F00899; Thu, 17 Sep 2026 16:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662178; bh=o/uiEnjrfV1iQf9ntjrOzT0K1gCNOh+EY2gMqojCeXY=; h=From:To:Cc:Subject:Date:Reply-To; b=Dtl2sf5ALBpKdWxa4gij96o/DZydladynscJ1XLFv4sUfmGE3Qh3gN8qWCuQXN7tq 9vHS4DEf43cL09GVo49oGzYOCovX6IAaueAJ4xws8DXWWV1l3YVZ7MWxsPPR3CKHcu Jun1rdLZvZu6oiSXhz0uYRC4WVZEbgdPxW+Urdq8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90267: scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails Date: Thu, 17 Sep 2026 17:11:37 +0100 Message-ID: <2026091747-CVE-2026-90267-8623@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2168; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CjEbgn8U5+I+pauCjq/v7oFdozE16lC2at9kaofVIjk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBPqzXTgl4o5f0mZLt1LiaP/C/Ian/GnM9RX7Tl64+ 2KddKF4RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEdTXD/LqfNSvNFbMKN3+4 PGvF2Vf8P00OtDIsODt96quPO1KzvYs/yH9n2Z5keempIwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails sd_set_special_bvec() allocates a special payload page for UNMAP and WRITE SAME commands. If scsi_alloc_sgtables() fails afterward in sd_setup_unmap_cmnd() or sd_setup_write_same{10,16}_cmnd(), the SCSI midlayer does not call uninit_command() because RQF_DONTPREP is not set yet, leaking the page. Call sd_uninit_command() on error, and clear RQF_SPECIAL_PAYLOAD after freeing the page. The Linux kernel CVE team has assigned CVE-2026-90267 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 and fixed in 7.2.6 with commit 5d7d1b8b525e5eff33a01d07dfcf7bdd3b6d790d Issue introduced in 4.12 with commit 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 and fixed in 7.3-rc1 with commit bb31844d88b77138b67aa20c3600203baff40140 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-90267 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/sd.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/5d7d1b8b525e5eff33a01d07dfcf7bdd3b6d790d https://git.kernel.org/stable/c/bb31844d88b77138b67aa20c3600203baff40140