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 D23F22FFFB6 for ; Tue, 13 Jan 2026 15:32:02 +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=1768318322; cv=none; b=HyYOPgpgcLXDFj1gh9Ne7LylE6v3Q2TOp0/Ol3N3BxnF2cpOqX5wpn+MpjIjS6cEZmnu6tQHnMGGtQ0fZa2SN2iIT1HiG1k6i+J3aOwDqFDnnrDFK9migV32kTTXmzGyCZKwJcGVcFoDOkl5WzbEAcwenuJ3eVN9pjBwN0/ysfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318322; c=relaxed/simple; bh=ADHEjkSSfGEZsOJOzktrC/nNZ8dcrGrQQZQJ78lT5R8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=muycbDc9v8MBaTK3S0l4Ns4oYefc9tq4wYm1jxyo9Wt9hltzm8u9s/L2/dwv+gE7hXD9sSvnG4y3xaXyA5OU6KaPZuLhMijZWMRF5aVVCGlHzwJo77W/HNY5Ug/HtomUIDXccAqfxdjnrTJoaq5vCvBUphy/+59uuZVkKKguhJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jz0QbIh/; 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="jz0QbIh/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ECCFC116C6; Tue, 13 Jan 2026 15:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318322; bh=ADHEjkSSfGEZsOJOzktrC/nNZ8dcrGrQQZQJ78lT5R8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=jz0QbIh/lnsRrQxpEseGWBq2ahGWOOSh+hgCaoFmtcFihPp560Ywt/326wfXF0gcp fGPNtvl7tWWMXoguslHW/S0YJkWHlZd1UtQMykH9BbEUqnJtwygZX6LeC2pVNQbDLz 6S825gP04Vknd+EIyHx28n5KCfzLx9UPwYvU8U24= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68823: ublk: fix deadlock when reading partition table Date: Tue, 13 Jan 2026 16:29:49 +0100 Message-ID: <2026011316-CVE-2025-68823-8bf1@gregkh> X-Mailer: git-send-email 2.52.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=2763; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4jNcK/yfMtspcfwlHldLRtEuWaCfawfB3y8u2zsVY88=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKWe+MX5a8CM9JDyce/msDb9ffP81eVl/VNDmluo/V 9fdmJdc3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATmXibYUHrjVf7H58R7Tbf 8Gm3Z/v7kAtch64xLFjUdv5tGINImO6DvHSdayuiAlUcvgEA 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 deadlock when reading partition table When one process(such as udev) opens ublk block device (e.g., to read the partition table via bdev_open()), a deadlock[1] can occur: 1. bdev_open() grabs disk->open_mutex 2. The process issues read I/O to ublk backend to read partition table 3. In __ublk_complete_rq(), blk_update_request() or blk_mq_end_request() runs bio->bi_end_io() callbacks 4. If this triggers fput() on file descriptor of ublk block device, the work may be deferred to current task's task work (see fput() implementation) 5. This eventually calls blkdev_release() from the same context 6. blkdev_release() tries to grab disk->open_mutex again 7. Deadlock: same task waiting for a mutex it already holds The fix is to run blk_update_request() and blk_mq_end_request() with bottom halves disabled. This forces blkdev_release() to run in kernel work-queue context instead of current task work context, and allows ublk server to make forward progress, and avoids the deadlock. [axboe: rewrite comment in ublk] The Linux kernel CVE team has assigned CVE-2025-68823 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.18.3 with commit 0460e09a614291f06c008443f47393c37b7358e7 Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.19-rc2 with commit c258f5c4502c9667bccf5d76fa731ab9c96687c1 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-68823 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/0460e09a614291f06c008443f47393c37b7358e7 https://git.kernel.org/stable/c/c258f5c4502c9667bccf5d76fa731ab9c96687c1