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 E24462ED872 for ; Tue, 30 Dec 2025 12:25:56 +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=1767097557; cv=none; b=hbUGruaEgRTmV30Z8AYcxWyRYlRMqa/qv8MNeFLuMnUcOxv0uMvUcyroKS043AeiLFMC/RH/to+FJLHktMIMx0X1TkcQiJd4XVBGh54AxPpyhzKUuDyxAWBoSZy1crQHp7nsxWLW4KpqRBXqVNFgY8ngvnnPmMmsJXEkyZ5qgAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097557; c=relaxed/simple; bh=amXITp3Podw98coAyai2HW0oIqAxC76ZbQ2op2pVATk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tIUuSNivq7fZmCGl3ktht58j9QYCjCQyKGvvRyjKf/di8NSLMpPCFZFvr3/yJc19VEq3rAxI4u1/ZxpHCKfjuzZyp6q/mcTL46xEQeJeDi6GaajmxPlnr3HXOktoYyVsdYQayP7LpPGrBsyn1gcojgd1AgBdo692ns+3bzYej3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sqgdAy+I; 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="sqgdAy+I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70D7BC4CEFB; Tue, 30 Dec 2025 12:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097556; bh=amXITp3Podw98coAyai2HW0oIqAxC76ZbQ2op2pVATk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=sqgdAy+I2MfidDol0XovmlzazI3BavqIuZfZJoR8U3/vDdCAIvz2ut0/G43mtYcmK Ll3kyQBzp/WuTEp50Ml2Ch6/axMkp9URuDfNLDJww0vDv6eTUCY0OI00x5pC091d+n lO3fmCuOrUEfxG7MzrSv4mR4wWkHMSjeo1RJU8rY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54297: btrfs: zoned: fix memory leak after finding block group with super blocks Date: Tue, 30 Dec 2025 13:23:50 +0100 Message-ID: <2025123031-CVE-2023-54297-6171@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=2647; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ei0rcLbbXWp0/NHoY0XZ9MITpO591nVysvJoCl2H4m4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR5zjpc/avn9cZWh5Y0Xm2ZSN27h3bQr2k/pbMfeQL ONuJlW5jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjINQ+G+fFyvx1qFjnOq76c f+PYnJodF5Ia5zPMzzT9fr3yiXxSw3TL3JdJsnYast6aAA== 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: btrfs: zoned: fix memory leak after finding block group with super blocks At exclude_super_stripes(), if we happen to find a block group that has super blocks mapped to it and we are on a zoned filesystem, we error out as this is not supposed to happen, indicating either a bug or maybe some memory corruption for example. However we are exiting the function without freeing the memory allocated for the logical address of the super blocks. Fix this by freeing the logical address. The Linux kernel CVE team has assigned CVE-2023-54297 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 5.15.123 with commit ab80a901f8daca07c4a54af0ab0de745c9918294 Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 6.1.42 with commit c35ea606196243063e63785918c7c8fe27c45798 Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 6.4.7 with commit cca627afb463a4b47721eac017516ba200de85c3 Issue introduced in 5.11 with commit 12659251ca5df05a484eb122c2c34c18d84e797c and fixed in 6.5 with commit f1a07c2b4e2c473ec322b8b9ece071b8c88a3512 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-54297 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: fs/btrfs/block-group.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/ab80a901f8daca07c4a54af0ab0de745c9918294 https://git.kernel.org/stable/c/c35ea606196243063e63785918c7c8fe27c45798 https://git.kernel.org/stable/c/cca627afb463a4b47721eac017516ba200de85c3 https://git.kernel.org/stable/c/f1a07c2b4e2c473ec322b8b9ece071b8c88a3512