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 432091DC99C for ; Thu, 1 May 2025 14:14:21 +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=1746108861; cv=none; b=O/qZjPcIMhjKsP2pPeISradUYr/r4rrAF0UVBVnodRhJqlbXSI1DZtjW6J6mpOSwMFbDsz0jbhZDyBlVTlUVgYXsqivXqv8KNqSpKBkHiHlXWj3c815C5rvgARpWamGI+yh9LyV8q3p/f3Jb6XQHdhdNc3QoVD/SCUdiyzLJY0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108861; c=relaxed/simple; bh=ixG9oIRFY1WQasWKlnWnIPAztG95Th0Fb5TPdKOWxEU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WfDbTjW6/N3br5HNYGFvEK9QxlWu4jEKK6RX7nCuvbBC/EKbTIqyKnD0+5R8n+A80uDYWQfZ1LxLPe3RwrgEvtcsHNmezEudkXPjOmJdMZMDVkKGjvis2I8P4PLCpCwLSE/vL5po6oFaxeuQ+k02TFzWOkP2PfeFn27rTaUGIM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SXej2oCs; 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="SXej2oCs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFC7AC4CEE3; Thu, 1 May 2025 14:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108861; bh=ixG9oIRFY1WQasWKlnWnIPAztG95Th0Fb5TPdKOWxEU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SXej2oCsFHtwapSLQsqPOf5/w1eWRWRCRWZzoyBbcgfOIPE2tUL9g6ep+C5CdfOCJ QFuWYbvCdyX4cJ9at5nYUAgIQETvhfVX660ekG1Ha5VyJD3f+zc0rXEaJmLX05/CCZ RaTZVfqNrcB+YMYmSTbF3EZk1dwhIYlaiPFFj5jg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49833: btrfs: zoned: clone zoned device info when cloning a device Date: Thu, 1 May 2025 16:10:23 +0200 Message-ID: <2025050137-CVE-2022-49833-b809@gregkh> X-Mailer: git-send-email 2.49.0 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=1965; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UWDj3UG1hJ1uq8m7J4qX+IfIjwTMOQWcIZct+r8Pp7s=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQsfm7+8J9tb5Lc7skt/hSL/1foYnve3rkt+/e/Wv VKh8A5PRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykbB3DPMsDmjbcv5m/v8np Ozd96fQF3DdT/RkW9DZdLPjZ+fn5t4NFdnuk/yqxJCzOBQA= 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: clone zoned device info when cloning a device When cloning a btrfs_device, we're not cloning the associated btrfs_zoned_device_info structure of the device in case of a zoned filesystem. Later on this leads to a NULL pointer dereference when accessing the device's zone_info for instance when setting a zone as active. This was uncovered by fstests' testcase btrfs/161. The Linux kernel CVE team has assigned CVE-2022-49833 to this issue. Affected and fixed versions =========================== Fixed in 6.0.9 with commit ad88cabcec942c033f980cd1e28d56ecdaf5f3b8 Fixed in 6.1 with commit 21e61ec6d0bb786818490e926aa9aeb4de95ad0d 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-49833 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/volumes.c fs/btrfs/zoned.c fs/btrfs/zoned.h 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/ad88cabcec942c033f980cd1e28d56ecdaf5f3b8 https://git.kernel.org/stable/c/21e61ec6d0bb786818490e926aa9aeb4de95ad0d