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 9C12015534D for ; Mon, 29 Jul 2024 15:04:44 +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=1722265484; cv=none; b=BRWj1mNoFaZCSkev1fW6MXrmsah4JU3/nLj8eo9Zi22u55u419GJaLeJa1xgfDUW0wfS/BfPTmdR6rTCqoFX3rzDawTDJFwCJMgMh6iUaognQFy2kT8Pn0iS5jzBHOSy5HWBIbRElDGOL0X6b/cu4CIO5sDNOUn4997bQQiKaWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722265484; c=relaxed/simple; bh=NBN63ja5DvoE+bNmqK2hmrZxnQ9DNZ9rpJBcR05UxO0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iDz11LaIU32CqqON/lXmmV3KYXPJP+q0166GnG4MKZjus6buVYUWamcIkJgEsM4r12D9x4+mmy6zPc5XQuQFPepIXjfP31nBTYYVo3QsCDwnNtuLJrCL/cQtmKhOA4d4OywviSGbnJRMKvVduUF9alri9qInQoTLjrxdlVc4k1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sM7heAUf; 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="sM7heAUf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E727FC4AF0E; Mon, 29 Jul 2024 15:04:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722265484; bh=NBN63ja5DvoE+bNmqK2hmrZxnQ9DNZ9rpJBcR05UxO0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sM7heAUfKWHy6Qt48uPH65gaAHJdchc5ZbS/GeEKOG59AgWyba35OpUux4hxR0eez BYvkRwIyJlQstgNONhoeHPR4h4ZiRJn1pXrajkpPkSxSMP5gkko47/uVPs6BUK6i00 /5eQdsjl+XgQWSMirnIsmMoHWlcFxuSyZ4vwucJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41080: io_uring: fix possible deadlock in io_register_iowq_max_workers() Date: Mon, 29 Jul 2024 17:04:28 +0200 Message-ID: <2024072926-CVE-2024-41080-6385@gregkh> X-Mailer: git-send-email 2.45.2 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=2084; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NBN63ja5DvoE+bNmqK2hmrZxnQ9DNZ9rpJBcR05UxO0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnL11dp22vJ6t+d6GXe+i4gvLlf5k9L4Iu/m06XTy6I8 b6+t2RSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEUIZhwamPjJt1bcxFDj6+ /Mp67tWqO17mvAwLTrBWVjjP2y4dVSIvfiLmwsc7i4++BwA= 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: io_uring: fix possible deadlock in io_register_iowq_max_workers() The io_register_iowq_max_workers() function calls io_put_sq_data(), which acquires the sqd->lock without releasing the uring_lock. Similar to the commit 009ad9f0c6ee ("io_uring: drop ctx->uring_lock before acquiring sqd->lock"), this can lead to a potential deadlock situation. To resolve this issue, the uring_lock is released before calling io_put_sq_data(), and then it is re-acquired after the function call. This change ensures that the locks are acquired in the correct order, preventing the possibility of a deadlock. The Linux kernel CVE team has assigned CVE-2024-41080 to this issue. Affected and fixed versions =========================== Fixed in 6.9.11 with commit b571a367502c Fixed in 6.10 with commit 73254a297c2d 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-41080 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: io_uring/register.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/b571a367502c7ef94c688ef9c7f7d69a2ce3bcca https://git.kernel.org/stable/c/73254a297c2dd094abec7c9efee32455ae875bdf