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 9DF26405C39 for ; Wed, 27 May 2026 13:00:16 +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=1779886817; cv=none; b=aB29rq54aT8njNAy3Oh6H2qUg68e8keav6QmPNzJseqNsXlWnVD/nB5P++RTw9dyQB7kJN3eu3LvA3rVur7MVCLKikGVY00oUNR0Cel5pS53ICDxJvuPeZQ2kHFCRKN7Va386oiZT8Zz94XiWzk6KUQ0NL0wZwH1dT9TH+5UPfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886817; c=relaxed/simple; bh=GXK718WRJsGkII16QemmCVP/3iVBsAwJ3v5DUtAHdUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k3qu8ENR9Sd6We4kymprlyqx5e8nnsCBMv7bWTmm67z6iozazMRtRYcUdoYpI7Nl8ZLNzJUmnH/J+joSojt4f5qHt5ueLxooDSbkubBjcFF67ChckkEv/qyNYviPkyfRd8oGFhv6EE0DNLbmMNI6x2gwZo+SWlpx1+ThFhQ8RLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YDJ3soRM; 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="YDJ3soRM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CD981F000E9; Wed, 27 May 2026 13:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886816; bh=x2arFkzqjc3FqnWLNlR59MZ9sG3uOKjzCjGDT3y+1jI=; h=From:To:Cc:Subject:Date:Reply-To; b=YDJ3soRM7ps65hCnvD0ZUi2NgBRoNKRkJh9/8qX24ykClJXSJsE6XcLPUxNM9zrP6 lYDgN0inNZ3ML+Orb9BPaalzcF6BPYgbnusX1W5qvVV4JIW9jzEntp1VIo0sWtTYD8 2j21Pl5mUuaJtZo6Fx8l+BMPhRpL61fMJESkJTH8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45997: scsi: sd: fix missing put_disk() when device_add(&disk_dev) fails Date: Wed, 27 May 2026 14:58:48 +0200 Message-ID: <2026052741-CVE-2026-45997-1c32@gregkh> X-Mailer: git-send-email 2.54.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=3292; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JEbikIFjg9eDcBoesxknyJwN7p0e+dVkjIicdKg13MM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlirxpnNkRlrjl038cuW+a5t8aK41Mv1RktM7dh+D3xY +epEiu+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInkSG2ezJ56xv/Tnw9Fny kaj/hjnaeqbObxjme2dlPjpS+cJ84ZWMLvfj+45xMmfaAgA= 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 missing put_disk() when device_add(&disk_dev) fails If device_add(&sdkp->disk_dev) fails, put_device() runs scsi_disk_release(), which frees the scsi_disk but leaves the gendisk referenced. The device_add_disk() error path in sd_probe() calls put_disk(gd); call put_disk(gd) here to mirror that cleanup. The Linux kernel CVE team has assigned CVE-2026-45997 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 265dfe8ebbabae7959060bd1c3f75c2473b697ed and fixed in 6.6.140 with commit 262152ec37101f9dc524743ccdbd6c7641d14573 Issue introduced in 5.15 with commit 265dfe8ebbabae7959060bd1c3f75c2473b697ed and fixed in 6.12.86 with commit b64b4f499801b12d0e2785447e4df6c164c608a9 Issue introduced in 5.15 with commit 265dfe8ebbabae7959060bd1c3f75c2473b697ed and fixed in 6.18.27 with commit 13e550fbfccdb311e76ec96892dfe35f0dba0657 Issue introduced in 5.15 with commit 265dfe8ebbabae7959060bd1c3f75c2473b697ed and fixed in 7.0.4 with commit a95d38c5701431bfc826e7b18acc0785919d5c88 Issue introduced in 5.15 with commit 265dfe8ebbabae7959060bd1c3f75c2473b697ed and fixed in 7.1-rc1 with commit 1e111c4b3a726df1254670a5cc4868cedb946d37 Issue introduced in 4.4.288 with commit d56459d361a9a99bead8b594635353053271356c Issue introduced in 4.9.286 with commit a3e5a9208466b63f27a2509a691023b446ea5105 Issue introduced in 4.14.250 with commit 4e8e6427319de323f613caa8fd37120df83138d0 Issue introduced in 4.19.210 with commit eadb60bcc2005247d97dcb3becee57aba4024ff4 Issue introduced in 5.4.152 with commit 350d048cc506368a316f0bc4082426b24a2a9fc0 Issue introduced in 5.10.72 with commit 60df9f55562a57173a11b6c7011eee40dfa48157 Issue introduced in 5.14.11 with commit e95f62013a1159eeea752bb52df0683ee77f70ca 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-45997 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/262152ec37101f9dc524743ccdbd6c7641d14573 https://git.kernel.org/stable/c/b64b4f499801b12d0e2785447e4df6c164c608a9 https://git.kernel.org/stable/c/13e550fbfccdb311e76ec96892dfe35f0dba0657 https://git.kernel.org/stable/c/a95d38c5701431bfc826e7b18acc0785919d5c88 https://git.kernel.org/stable/c/1e111c4b3a726df1254670a5cc4868cedb946d37