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 319FD4A28 for ; Tue, 29 Oct 2024 00:51:19 +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=1730163080; cv=none; b=EFsjljIv/1ksD9P/NHIgxZHrgoxmSnxnANLofADxj9vpNHUdVwp03zZ2ICeqA3LWp4YBHy6a/Wprru4egcGKdcDknSd/H/ATMjFb7uhvuroGKBB8YaQtfnbgnk6cPQsq8sBsOgJR4Fc5iO/1tl0mvflbcFWwz6d3+9lh12tsUmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163080; c=relaxed/simple; bh=swsctZiNsSsYH6KuVECUTZJ+ml5AWCSzb0yFGvvSgNg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DU+v6qzCSGE/3/I8ZIbIMlMEO4c8jiYPa1SdRlZvEGL+B3r/YWoy9/+ftfAYbNb16b0fn+Y6Qwf+s3HNGbCsLPAQQeca5mOlcGRQROL8FVjl09r853f7sy8bv8KdtxzaPBD8lKhJCFNAKWGbRYygkLUGus/HvgLDjKGFjZeeTuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a49vUZJL; 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="a49vUZJL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75BA9C4CEC3; Tue, 29 Oct 2024 00:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163079; bh=swsctZiNsSsYH6KuVECUTZJ+ml5AWCSzb0yFGvvSgNg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a49vUZJLb9xhK59dIRKXdFIiRYq929gKQggLncZWWBDgSv1hC1BfqA8pZ2rzVQlAv oayiKfMbdJU5gAsrrz5HdwhGkine5GDrV845VDblcKeaI55NYCEvGy85aYjhnq0A7L V8849fPvcSOP7i4X1hX9/lkPUKgEBpivQtQ4g71E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50081: blk-mq: setup queue ->tag_set before initializing hctx Date: Tue, 29 Oct 2024 01:50:44 +0100 Message-ID: <2024102937-CVE-2024-50081-f8d6@gregkh> X-Mailer: git-send-email 2.47.0 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=1982; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=swsctZiNsSsYH6KuVECUTZJ+ml5AWCSzb0yFGvvSgNg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhrEBeb6NWlWv7upuUF+w7882i/3yV0pPCd5cw77/V OCcPRdcO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiLz4xzPc/HhPbzMJr7nKz Un06+0H5tx1s+gzzc+4YhhlqML+7NaHogQ5f+PHrFTcUAA== 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: blk-mq: setup queue ->tag_set before initializing hctx Commit 7b815817aa58 ("blk-mq: add helper for checking if one CPU is mapped to specified hctx") needs to check queue mapping via tag set in hctx's cpuhp handler. However, q->tag_set may not be setup yet when the cpuhp handler is enabled, then kernel oops is triggered. Fix the issue by setup queue tag_set before initializing hctx. The Linux kernel CVE team has assigned CVE-2024-50081 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 7b815817aa58 and fixed in 6.11.5 with commit d28b256db525 Issue introduced in 6.10 with commit 7b815817aa58 and fixed in 6.12-rc4 with commit c25c0c9035bb 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-50081 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: block/blk-mq.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/d28b256db525d9432bc3eb2c8d83f7d3f5e1cc87 https://git.kernel.org/stable/c/c25c0c9035bb8b28c844dfddeda7b8bdbcfcae95