Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AAB95433C8 for ; Thu, 27 Feb 2025 02:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622738; cv=none; b=LhIa4V8pcJyQ/6dZIkiyWODQ/DPe+I2mUN2LcCfIy7PWC2j1HMTC8qWvIc4ctt8c8kh5/TH/YxwFGNK4gHs73KjALcZ+YfR/HiUxpyu2bMBK98Mq4NNCQvKtc5ZKxU/2wVvLQMC6QfpUzi6YY/9QcREaLsqkbS0vyEikBOP3IWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622738; c=relaxed/simple; bh=TTZmXMy9w0+LrYUxtBbodcLpW1z99dIm9PUOXf0FtMw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lY7dfy350qu9Mms/t9GLe4kiv89rpyuvxte18dwLWqNXF/0ya+hYXwfgo/+oxBM7ontmANjOR9GnKWU0yp1qWzJ8oVzLeCMVgLUqcAXKSmOTAgYRuXYbfbz0hZELjZFhnCiLPgFkBPcB2KOGDBSsk9BVfWtiRwZUKpb3vSKMQkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q5VIzXGO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q5VIzXGO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80103C4CED6; Thu, 27 Feb 2025 02:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622738; bh=TTZmXMy9w0+LrYUxtBbodcLpW1z99dIm9PUOXf0FtMw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Q5VIzXGOI37kJRP4qa6JvmXDSi0tppXz3xhVspEdj4JYa20b2Har4wmE1OZPArTI0 nXk78125XhoiabDzSt56Pp6pnYBcFIObVqdkvqHf4vgQkbmTYn3NHAHrwQ0qhLrkM2 JXRS9PbxD58Ag9gWDqkg1trNp/6s9f50e0LCyTzk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-54458: scsi: ufs: bsg: Set bsg_queue to NULL after removal Date: Wed, 26 Feb 2025 18:17:06 -0800 Message-ID: <2025022602-CVE-2024-54458-75cd@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2208; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TTZmXMy9w0+LrYUxtBbodcLpW1z99dIm9PUOXf0FtMw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T8tp32oMimU0lPu0dFu99dmF8360zEuMLjmSrBi/t Ev0x1mhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIUiXDgr70TgZursOekn/3 9nMcCghdm20dzDA/cE8ru9CmTvfrliJyvBn78voniYUAAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: bsg: Set bsg_queue to NULL after removal Currently, this does not cause any issues, but I believe it is necessary to set bsg_queue to NULL after removing it to prevent potential use-after-free (UAF) access. The Linux kernel CVE team has assigned CVE-2024-54458 to this issue. Affected and fixed versions =========================== Fixed in 6.1.129 with commit 5e7b6e44468c3242c21c2a8656d009fb3eb50a73 Fixed in 6.6.79 with commit 5f782d4741bf558def60df192b858b0efc6a5f0a Fixed in 6.12.16 with commit 88a01e9c9ad40c075756ba93b47984461d4ff15d Fixed in 6.13.4 with commit 9193bdc170cc23fe98aca71d1a63c0bf6e1e853b Fixed in 6.14-rc1 with commit 1e95c798d8a7f70965f0f88d4657b682ff0ec75f 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-2024-54458 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/ufs/core/ufs_bsg.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/5e7b6e44468c3242c21c2a8656d009fb3eb50a73 https://git.kernel.org/stable/c/5f782d4741bf558def60df192b858b0efc6a5f0a https://git.kernel.org/stable/c/88a01e9c9ad40c075756ba93b47984461d4ff15d https://git.kernel.org/stable/c/9193bdc170cc23fe98aca71d1a63c0bf6e1e853b https://git.kernel.org/stable/c/1e95c798d8a7f70965f0f88d4657b682ff0ec75f