From mboxrd@z Thu Jan 1 00:00:00 1970 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 0F80C2EAE4 for ; Wed, 26 Feb 2025 02:15: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=1740536102; cv=none; b=KLbtexcZ3cQuR5J2JgVdgKwHpJRMb1XNkMrdDGgLMOMILXT19tUXzhQv+zAa3b0J9QHKDH+z3tVZNHcByBcDOvF9MLY5fyVLF3TKJ4pUbmAxQ7PHYJYcadCzaUSsqRnQoQGx8398YHeVAHneojWgztzmdaYk8BaJzLwOeFjpN8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536102; c=relaxed/simple; bh=RQ0KeOd3Qo7CyMNfmF7j+zQp/HSPxacwCs3TBWyqZh8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IAjOMHzmE0uqoJnCNzFZTTj6U6eUbJee8vnO64G66YVsiqReJ7fkpWhFXxIAlZByx/v5VYjeIU7nBLm39aitSokXbnWtzT+OQIkMgayQW6Dcgn1WlSgJZTvXGWC08G0lhGvVEiWLDBC/DO8JovjXyWkr3RNkybTjn8uGWM4pshg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y/gXno8o; 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="Y/gXno8o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3E58C4CEDD; Wed, 26 Feb 2025 02:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536101; bh=RQ0KeOd3Qo7CyMNfmF7j+zQp/HSPxacwCs3TBWyqZh8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y/gXno8o0KG5sohjNhVd/YaDZbAzJDJUKdOhMKJAVFWYXzfpSwfdfNObA/3IibskD +38Lqo/xNVFw5777Mq9G4DqYJdbop8+U+Ms/AlmGTNfJ0ht1rHOpZ1b8QthILGB78f mpPw4ZQenR9oFsUvtgLJbLxyHgACHDqxBWmUV0PA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49469: btrfs: fix anon_dev leak in create_subvol() Date: Wed, 26 Feb 2025 03:12:23 +0100 Message-ID: <2025022602-CVE-2022-49469-8006@gregkh> X-Mailer: git-send-email 2.48.1 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=1926; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RQ0KeOd3Qo7CyMNfmF7j+zQp/HSPxacwCs3TBWyqZh8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yn/tnPpSJElxyuK69Knvzv6p/Ph05rvA3GuC/TnLf HRVZ/Lf74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJnJ7EMM/2/12NLY8KX1bH z11adTP6Y5kG73GGBfNemq4+p3vc663+yuKW0PVRCvesNwAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: btrfs: fix anon_dev leak in create_subvol() When btrfs_qgroup_inherit(), btrfs_alloc_tree_block, or btrfs_insert_root() fail in create_subvol(), we return without freeing anon_dev. Reorganize the error handling in create_subvol() to fix this. The Linux kernel CVE team has assigned CVE-2022-49469 to this issue. Affected and fixed versions =========================== Fixed in 5.17.14 with commit d887b3de318834f9aa637ecf79c6bc66cba7c69a Fixed in 5.18.3 with commit 7a875ad8706f0903a0e812e0dd701956ee9826ff Fixed in 5.19 with commit 2256e901f5bddc56e24089c96f27b77da932dfcc 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-2022-49469 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/ioctl.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/d887b3de318834f9aa637ecf79c6bc66cba7c69a https://git.kernel.org/stable/c/7a875ad8706f0903a0e812e0dd701956ee9826ff https://git.kernel.org/stable/c/2256e901f5bddc56e24089c96f27b77da932dfcc