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 C32A729BD8C for ; Tue, 30 Dec 2025 12:16:12 +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=1767096973; cv=none; b=NBT9mXlRf/mhgycX//cdkdD/+3bqTuGNMu94gzo7d2Dfzyrlgzmxq/IfiROo3WojhfibywrWkb4f30lrzpKs/PVqPTT1HEyR5imCZKpCrOvArl+vg5duIJ78KXDNK6j+5BkidsbzR1aHTo+8yT4FabWVdQ9h6Vd74Mnsml+oEC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096973; c=relaxed/simple; bh=vev4iANmfLW/KjkSkXStywxOh2lHkvPc7ez72YUpPdc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RXeP4iN2iqLChkiiCO//hpUUP8xwhNPh93ci/IbvM1WTTnsP6TRYlXY+9TipTeC5Z11g+GLSUiSsDE5WlEDOzyBb/vfnneK24/JHC6RZX8PbDJc7X4QXl/1mFIqjA9hZB1tgX18pk6p73fumXA44FwiU3p69zDxFFuRxDdcHYN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dilj0uD4; 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="Dilj0uD4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B94F8C4CEFB; Tue, 30 Dec 2025 12:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096972; bh=vev4iANmfLW/KjkSkXStywxOh2lHkvPc7ez72YUpPdc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Dilj0uD4LYWGlx+2EnjM7UfBLCEJptoLwRr+ZyUB+Ynr0vTYDBz1OTlAlCKqAqjfg gQB1zq4loMeJxig4Fa6Rhq3sS5DUZULK1dyp3AT1WfhmcGXo6sWMvcVPaNDocvsriw lGdGNvNwrdO9/mVy127KW57iXk9MHcjt5flU4pgI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54209: block: fix blktrace debugfs entries leakage Date: Tue, 30 Dec 2025 13:13:39 +0100 Message-ID: <2025123023-CVE-2023-54209-39be@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=2790; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a5J/azmawQ6diVPLZ69Sx06DK5FgNmt0G0Ok/Gc+MUM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBx9XlU+xnZr8MMD22gm27UVS/TW75C8XpS1RXyS4S e38wUc3OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/boM8wNmOsyuCC1UM+Fc IKJ36kfcZGdTUYYFJ4Pb3vJx5/i1BqtecfO8GWdaofIbAA== 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: block: fix blktrace debugfs entries leakage Commit 99d055b4fd4b ("block: remove per-disk debugfs files in blk_unregister_queue") moves blk_trace_shutdown() from blk_release_queue() to blk_unregister_queue(), this is safe if blktrace is created through sysfs, however, there is a regression in corner case. blktrace can still be enabled after del_gendisk() through ioctl if the disk is opened before del_gendisk(), and if blktrace is not shutdown through ioctl before closing the disk, debugfs entries will be leaked. Fix this problem by shutdown blktrace in disk_release(), this is safe because blk_trace_remove() is reentrant. The Linux kernel CVE team has assigned CVE-2023-54209 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 99d055b4fd4bbb309c6cdb51a0d420669f777944 and fixed in 6.1.39 with commit aa07e56c6a9c7558165690d14eed4fe8babf34fb Issue introduced in 5.19 with commit 99d055b4fd4bbb309c6cdb51a0d420669f777944 and fixed in 6.3.13 with commit 7149e57cf01184fba175589f8fbe9fbf33be02e1 Issue introduced in 5.19 with commit 99d055b4fd4bbb309c6cdb51a0d420669f777944 and fixed in 6.4.4 with commit 942e81650b81b4ca62f1d8c61de455c9e7c7e6ca Issue introduced in 5.19 with commit 99d055b4fd4bbb309c6cdb51a0d420669f777944 and fixed in 6.5 with commit dd7de3704af9989b780693d51eaea49a665bd9c2 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-54209 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/genhd.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/aa07e56c6a9c7558165690d14eed4fe8babf34fb https://git.kernel.org/stable/c/7149e57cf01184fba175589f8fbe9fbf33be02e1 https://git.kernel.org/stable/c/942e81650b81b4ca62f1d8c61de455c9e7c7e6ca https://git.kernel.org/stable/c/dd7de3704af9989b780693d51eaea49a665bd9c2