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 C398FA95E for ; Tue, 20 May 2025 15:22:39 +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=1747754560; cv=none; b=paop4JU2X94IKjNLaWB4JoZJ//p5Oe6PFT79cG2cnhJxk56huWL2DLhKinSYf5j0j7R7eEJacGnlXos+k9r+zlTKUEmz+8qqNJal2xO4sfjY/scOY9Co7S/PcgXqYcwtyVVu7JwdHEn14+uEd/gCvYNmKla4l/CCZzod4beq9oI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754560; c=relaxed/simple; bh=ppH6q3IkKXdD+eDluU8pxewbmkqQjSewxNYbuBfat4k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KvogrqGQiU60ut/xxTHcGHlFfDAncl7dAbzkkt0UVgiZzRzVKMsWbnl91pFbAxRQFHyjWH4KFMcynS3CALN5k4qb9QOBhO1cf4KiO7DuyXebpWzNL52PQwssFcUT7joc+Yba6eu0OGmN62hXGo1GiokNpTSIn0oUhbC/BCeklE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GhoVKAUD; 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="GhoVKAUD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAD0DC4CEE9; Tue, 20 May 2025 15:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754559; bh=ppH6q3IkKXdD+eDluU8pxewbmkqQjSewxNYbuBfat4k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GhoVKAUDsPqsO2NfnVBpL04bk/efdwrlK7Ll514DOju5ZWE/02fQKveirxZxjo0VC njdY1plQSXs1nBdQ1fPTTHx8diavo67QjxsSU049uejZUugdJnqCk0hE4huJLY9crs rZTS/LqqdcAH6n+uSkDYrHcM488jFgljlhLBEwkg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37906: ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd Date: Tue, 20 May 2025 17:22:03 +0200 Message-ID: <2025052057-CVE-2025-37906-0bd6@gregkh> X-Mailer: git-send-email 2.49.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=2067; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1sgXcYWyI1JJ6VfD+L5VUSSSyfwqNEnRejYdTuoM9wI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk680QlvD2PnrxraFPLdZ3/m23C/n/+TsKpjs8qAlYZZ f66+8KzI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiPY1hwUx3FQ61TsEMo5ku adVMtlzsTSYKDLOY1y62MFOSkCqZ6LboseHb4ilc9tIA 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: ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd ublk_cancel_cmd() calls io_uring_cmd_done() to complete uring_cmd, but we may have scheduled task work via io_uring_cmd_complete_in_task() for dispatching request, then kernel crash can be triggered. Fix it by not trying to canceling the command if ublk block request is started. The Linux kernel CVE team has assigned CVE-2025-37906 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 216c8f5ef0f209a3797292c487bdaa6991ab4b92 and fixed in 6.14.6 with commit fb2eb9ddf556f93fef45201e1f9d2b8674bcc975 Issue introduced in 6.7 with commit 216c8f5ef0f209a3797292c487bdaa6991ab4b92 and fixed in 6.15-rc4 with commit f40139fde5278d81af3227444fd6e76a76b9506d 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-2025-37906 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/block/ublk_drv.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/fb2eb9ddf556f93fef45201e1f9d2b8674bcc975 https://git.kernel.org/stable/c/f40139fde5278d81af3227444fd6e76a76b9506d