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 C439EDF59 for ; Tue, 9 Dec 2025 01:33:04 +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=1765243985; cv=none; b=m/TxkBKUCUDgx1FmIMnnWygjX5iyW4vM55XGu1JFxcAhOShkoHoBqnO+hZc+u0Vn2gjd4d1Ehshm50pZ0ql47E7B/yOq9amhgIbUSCDhp26c+olwWFmktHXrdJ1xEJxm/4typGhQbt9z0pcHGif2o4cUAir+I3mlGcyEesdROmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243985; c=relaxed/simple; bh=tEqVp88EdUYXJxB3xUVcVzbkIzmyzq3vWlk+r0ywA50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q14rDuIzS822SAkqitBf3q0Wl7p/cZDW0zXdV1Sb6fdX+QMLK12729epJAyAsYuZ09P0S2SZ+M6fDbzVPYqvRlusXs+T6Zv0a3IZkKGCXBYSp2ydpyBG16E2hIp76jQt2xplqPpYv/Nc0yvKqAlVEWHBcY2/Csu8pwWSU5yqAx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QYO3mXyI; 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="QYO3mXyI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1D95C4CEF1; Tue, 9 Dec 2025 01:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243984; bh=tEqVp88EdUYXJxB3xUVcVzbkIzmyzq3vWlk+r0ywA50=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QYO3mXyINVTFxCyNUB8GSBM9MlE+bQP1SLZJm95/WCrnReFvr363ovcWmQJzcONcJ ioNf3PF8OBH54IoPtAS9a1ywQKA4idMriWjS+g6UKH1mUNZB6Laq71W/EWOaAaOBZI 6c7IQIWa4h5zngrH5m9pyljPEI1ZnjxyFWXiSCIY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53848: md/raid5-cache: fix a deadlock in r5l_exit_log() Date: Tue, 9 Dec 2025 10:31:32 +0900 Message-ID: <2025120900-CVE-2023-53848-8cd8@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=2857; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P4e/odxSAenYzForn7nO0CIDjHZgM6vFF8ro+mj2i7k=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1VdezuBnv6LwYMrh36qycgfVLVx95v6frVo1dc73+ Jq5viL+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCROE+G+eXBpfbML213+HUv YDoi+2vF/KwTDxkWrBZ+Ur43LXPu8fRHy/35+QxXbajhAgA= 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: md/raid5-cache: fix a deadlock in r5l_exit_log() Commit b13015af94cf ("md/raid5-cache: Clear conf->log after finishing work") introduce a new problem: // caller hold reconfig_mutex r5l_exit_log flush_work(&log->disable_writeback_work) r5c_disable_writeback_async wait_event /* * conf->log is not NULL, and mddev_trylock() * will fail, wait_event() can never pass. */ conf->log = NULL Fix this problem by setting 'config->log' to NULL before wake_up() as it used to be, so that wait_event() from r5c_disable_writeback_async() can exist. In the meantime, move forward md_unregister_thread() so that null-ptr-deref this commit fixed can still be fixed. The Linux kernel CVE team has assigned CVE-2023-53848 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b13015af94cf405f73ff64ce0797269554020c37 and fixed in 6.1.53 with commit ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b Issue introduced in 6.0 with commit b13015af94cf405f73ff64ce0797269554020c37 and fixed in 6.4.16 with commit 71cf23271f015a57038bdc4669952096f9fe5500 Issue introduced in 6.0 with commit b13015af94cf405f73ff64ce0797269554020c37 and fixed in 6.5.3 with commit c406984738215dc20ac2dc63e49d70f20797730e Issue introduced in 6.0 with commit b13015af94cf405f73ff64ce0797269554020c37 and fixed in 6.6 with commit a705b11b358dee677aad80630e7608b2d5f56691 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-2023-53848 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/md/raid5-cache.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/ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b https://git.kernel.org/stable/c/71cf23271f015a57038bdc4669952096f9fe5500 https://git.kernel.org/stable/c/c406984738215dc20ac2dc63e49d70f20797730e https://git.kernel.org/stable/c/a705b11b358dee677aad80630e7608b2d5f56691