From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796047911; b=uunM6MQef+W5Q4A4IKn6oegAkt9gN8B1n8A1ZsuAdxrAd2uf7VlfcPVRft7n9rkaQZHB H1EZJqPIk85JQc5KwXATtR3rFhVpuxHHuNVxCu/NNTzgBb6EbcWmoXIs0UQ5+tym+U1NH sPuxwRK/FN13kP3fgjeSnPWjAMJWHRcHe/7h4XVvUhLocHdz8SaIC3RQ3xGPkzlxhHf1N Rmb9snWppXzez7s12q+bmZgNR6Wn7xyP6RF2rVMVz5LAeMD7FmaWphH7bNbqX2wGNSyq6 LSOD4sRsNqZft4Nnm+u6ZpysIP3FyR4pGP7UHcXziTxc9EYGzOG/+/eopi5/C8sdJxw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047911; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=/kj6IhbeI/mQV/WNHc51mjX1iyNei0YJf+dUAldYlAM=; b=C+NvcQGCX45tb6KDha5kTFD3eLd8G7/g8KLHU11d62Q91y5/2dScqX6t0Fky1Tkdfcek qPGkKkcybJJr9YVWtbKeGe2trSWUJ4yhLPnGceZwpHTddd2um1HmLtAwpMiyNYMR2TLkX eAtT1CmQ7oEQE5FZD5X0IFH/ZDmDFcZRHBn8q2IGZ+no8zGYwShvleWGCezQczHJ2jcVR XcDhXPUy6dVvZHGr0f5MM6T17KL1x55L2SV5eE/jDM4R56VyriYlOxDXoULgfIon8Aapb FAri0ATVKoQ8IuOIouZ+euEZNR5d17Gy9pJ5QaLIkiClDl+yvyVzKMyIQtnqVukrl0A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=zfQg5CAt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 135C8606A325 for ; Mon, 30 Nov 2026 14:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=zfQg5CAt Received: by smtp.kernel.org (Postfix) with ESMTPSA id E89C11F0089C; Mon, 30 Nov 2026 14:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796047910; bh=/kj6IhbeI/mQV/WNHc51mjX1iyNei0YJf+dUAldYlAM=; h=From:To:Cc:Subject:Date:Reply-To; b=zfQg5CAt44OpqpCpyEs8YQvK+cwJujpgxYL8jCp5GUqPrCc6Dk6KZF29lYNqmYUmK DHmWiIg85lwbls+MSihMVklVgi6iJn/anUgbmhJfJBKtIjAA6RpuGeW9FxI0+uJnxJ WxR+oiA/DSxzsS4C+oJBSi0q8OxRKuapUgjgw39E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139432: btrfs: refactor read_key_bytes() to remove the dest_folio parameter Date: Mon, 30 Nov 2026 14:37:21 +0100 Message-ID: <2026113034-CVE-2026-139432-e305@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4223; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R2RLqUfzvE4EN+LVYY1wg0GcgsilygpwJw5ncSO807w=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8VZ/ay3kEZF/wreI8fK5Zyt9gKsMa9md/DldfKf82f 22F43rPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIBB2GefpfH/9JO78uOitC N32v8Lecr/NMbRnm2RiW3S/awuxoaHGgTLPj5EoHlmOWAA== 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: refactor read_key_bytes() to remove the dest_folio parameter The function read_key_bytes() have 3 call sites: - For BTRFS_VERITY_DESC_ITEM_KEY offset 0 inside btrfs_get_verity_descriptor() - For BTRFS_VERITY_DESC_ITEM_KEY offset 1 inside btrfs_get_verity_descriptor() Those are to read the description items, which are pretty small with fixed item size. Those call sites do not utilize the @dest_folio parameter. - For btrfs_read_merkle_tree_page() This is to read the BTRFS_VERITY_MERKLE_ITEM_KEY, which can be pretty large and split into multiple items. This is the only call site utilizing the @dest_folio parameter. Just for the only btrfs_read_merkle_tree_page() call site, we have a complex scheme for @dest and @dest_folio parameters. Since @dest can be NULL, it means if we pass @dest as NULL, then no matter if @dest_folio is provided, the merkle data will not be loaded into that @dest_folio. This can lead to a bug where a highmem folio is not mapped, then we pass folio_address(folio), which is NULL, into read_key_bytes(), causing no data to be written into @dest_folio. To address the complex scheme between @dest and @dest_folio, remove the @dest_folio parameter completely, and let the only caller to map the folio and pass the mapped kernel address into read_key_bytes() instead. This not only reduces the parameter list, but also make it much clear on the @dest parameter handling. The only downside is a longer duration of locally mapped page, but this should still be fine, as kmap_local_folio() can survive context switch. The Linux kernel CVE team has assigned CVE-2026-139432 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 146054090b0859b28fc39015c7704ccc3c3a347f and fixed in 6.1.193 with commit d8372ed5b688435ade4c5628d1125e6086feb1cc Issue introduced in 5.15 with commit 146054090b0859b28fc39015c7704ccc3c3a347f and fixed in 6.6.163 with commit 4bd53a335becc3b0738eb879e550d8a15e0e2d47 Issue introduced in 5.15 with commit 146054090b0859b28fc39015c7704ccc3c3a347f and fixed in 6.12.119 with commit e7e14a217844385a2954a7b008e021c177c735a5 Issue introduced in 5.15 with commit 146054090b0859b28fc39015c7704ccc3c3a347f and fixed in 6.18.65 with commit 8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24 Issue introduced in 5.15 with commit 146054090b0859b28fc39015c7704ccc3c3a347f and fixed in 7.3.6 with commit 474361b0ee085e206e3fccaca2b6463571c43891 Issue introduced in 5.15 with commit 146054090b0859b28fc39015c7704ccc3c3a347f and fixed in 7.4-rc1 with commit fdf56b9d03d475881d73b75afbdbe4058db04ffc 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-2026-139432 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/verity.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/d8372ed5b688435ade4c5628d1125e6086feb1cc https://git.kernel.org/stable/c/4bd53a335becc3b0738eb879e550d8a15e0e2d47 https://git.kernel.org/stable/c/e7e14a217844385a2954a7b008e021c177c735a5 https://git.kernel.org/stable/c/8de0d7c6bb7fb7867a5b2f2d4bb94826e9e98e24 https://git.kernel.org/stable/c/474361b0ee085e206e3fccaca2b6463571c43891 https://git.kernel.org/stable/c/fdf56b9d03d475881d73b75afbdbe4058db04ffc