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 63BB71EB1A8 for ; Thu, 1 May 2025 14:14:11 +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=1746108852; cv=none; b=S8YiyQlY03QiIjlGafzl4GXZjSbGkK4HkRRW2/7g4Qp54sl4dMglW9jLMxo0YbD0lEieo6IA+Fb5yVrwpLDGO60ovSyEMnXci6cT+NG9NZLakG/3T5FHMwWyC0Q6hluaBlC+5/TRDRPK0ys76Jabpk3i4x3/UPZTCivlWbhSD2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108852; c=relaxed/simple; bh=MjOFEfQZ4g2804zl1k0FcHm3e7EnlDt9Ml43W4ElXW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OceBP0Q/Cm+ZfgQwewhO2uSk2Nfjoc0rhzwMBhVDfEuufQy8RZUGBo6VN/BYKzM/WqHy/u/ptS2RMEn9RS69uIcDsnvuQQPaBu5U2UWe2Me0pX7DnAvv7EjjcTps5s4iDQUk8KXSL+PXrwK/OKt1kNwAeB0+aLUFa9BxbkB1JBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L6oEvGGU; 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="L6oEvGGU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79C14C4CEE3; Thu, 1 May 2025 14:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108851; bh=MjOFEfQZ4g2804zl1k0FcHm3e7EnlDt9Ml43W4ElXW4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L6oEvGGU6jcRq2ROgkVBGz72FZLhQYzn2fIBknxEoJfxVPOeH6Nt98mJBY8Y+590h kfuA6eCbf2f/4Nq9iMZLXjR7mK9YiWexHPzc8KnSaOSkKDIMvHYB3xdmLxLL8X+Eif JcnKwkdm488OZiTIx4I2jzQDUXVJl/C6leoya1Bc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49831: btrfs: zoned: initialize device's zone info for seeding Date: Thu, 1 May 2025 16:10:21 +0200 Message-ID: <2025050137-CVE-2022-49831-751b@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=2039; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1xyjpk43FuoUL6A6z6YBR/ero9SnQmM0Z2DJvvzaLnw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQsTeQrY6i03hp4wspYT+6JjPIdTWu+yb9GhXat/y HAGN77siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInY/GBYsMqDOZjh8Qu+M1aF FzSjL33/ECk6lWF+wUqV1ObnwY4JPi+e/nN98rbQcLkjAA== 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: initialize device's zone info for seeding When performing seeding on a zoned filesystem it is necessary to initialize each zoned device's btrfs_zoned_device_info structure, otherwise mounting the filesystem will cause a NULL pointer dereference. This was uncovered by fstests' testcase btrfs/163. The Linux kernel CVE team has assigned CVE-2022-49831 to this issue. Affected and fixed versions =========================== Fixed in 5.15.79 with commit 91c38504e589dadbcde47b1cacdfc5b684154d44 Fixed in 6.0.9 with commit 544f38a738343d7e75f104e5e9d1ade58d8b71bd Fixed in 6.1 with commit a8d1b1647bf8244a5f270538e9e636e2657fffa3 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-49831 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/disk-io.c fs/btrfs/volumes.c fs/btrfs/volumes.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/91c38504e589dadbcde47b1cacdfc5b684154d44 https://git.kernel.org/stable/c/544f38a738343d7e75f104e5e9d1ade58d8b71bd https://git.kernel.org/stable/c/a8d1b1647bf8244a5f270538e9e636e2657fffa3