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 9232328AAEA for ; Thu, 10 Jul 2025 07:42:55 +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=1752133375; cv=none; b=HUg/D0w8WpCDoUUWdWIhUXYiE+NQLqW12sER7apopcTMXMiJwoaB/11WOXes8aQYqUbuzG7Y/Mfh0UZuq8u5SWeyRSyPunM2/2B046gsTooXW1j4QLv8VB2FZrKxLbPiSEduIhUM78b3gU7YLCCduCYmYUVAa9FgFNhQAxIesG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133375; c=relaxed/simple; bh=zjrarIEjk3wCsDKrtU1U1QnRsOtTBp/YftJ0tCF5UsE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=umR3+rFh0k2eCTEvSM+vFdr0mCezwEmFacHgwcBriN+e4dmyl2PmE4+Y4AYnxOUxrw9eG2nZxHlBOrxT6CrAHPZUihdX1yeKzLuvdB/j8EYSfgSQ+dtOOrZ5yD3bTVD07AC+QibQm6evUrZhEyJkc/Dp9C2a49P9owd7wZRUc4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nlTLB0Fd; 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="nlTLB0Fd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A4C6C4CEE3; Thu, 10 Jul 2025 07:42:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133375; bh=zjrarIEjk3wCsDKrtU1U1QnRsOtTBp/YftJ0tCF5UsE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nlTLB0FdlbnF51Gp/kH7fhzYbzUuB/ekW26wB/mtMG4FYsRMoh7Ewv1RrzhL0qa+u pEbK0nXUNbOT80Nl376q70CTu+daSoYRy2u0jUT4IRc6FeB9c2dwAhXtWTo7/6afpO kZrEtqVLzV0RIXN/bJwyBILAKYtDTKqwqqAClGIw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38269: btrfs: exit after state insertion failure at btrfs_convert_extent_bit() Date: Thu, 10 Jul 2025 09:42:10 +0200 Message-ID: <2025071007-CVE-2025-38269-fb65@gregkh> X-Mailer: git-send-email 2.50.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=2273; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iLuB1TZlAOOz1CcnCQFiVH+4qyivftabwpufSdsxrp0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eefn98V7fPvF8X1+QtSH7V7fzmty3FUuPvDVsiDl7 jqVkmPbOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAittIM8x3CAiq+vXm8sVdX 7sWHyOLsjZvXWzLMj/NMVuLjsI7+fyFmxy1LsyDGT1y6AA== 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: exit after state insertion failure at btrfs_convert_extent_bit() If insert_state() state failed it returns an error pointer and we call extent_io_tree_panic() which will trigger a BUG() call. However if CONFIG_BUG is disabled, which is an uncommon and exotic scenario, then we fallthrough and call cache_state() which will dereference the error pointer, resulting in an invalid memory access. So jump to the 'out' label after calling extent_io_tree_panic(), it also makes the code more clear besides dealing with the exotic scenario where CONFIG_BUG is disabled. The Linux kernel CVE team has assigned CVE-2025-38269 to this issue. Affected and fixed versions =========================== Fixed in 6.12.34 with commit 58c50f45e1821a04d61b62514f9bd34afe67c622 Fixed in 6.15.3 with commit 8d9d32088e304e2bc444a3087cab0bbbd9951866 Fixed in 6.16-rc1 with commit 3bf179e36da917c5d9bec71c714573ed1649b7c1 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-2025-38269 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/extent-io-tree.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/58c50f45e1821a04d61b62514f9bd34afe67c622 https://git.kernel.org/stable/c/8d9d32088e304e2bc444a3087cab0bbbd9951866 https://git.kernel.org/stable/c/3bf179e36da917c5d9bec71c714573ed1649b7c1