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 205F02E7F20 for ; Sat, 31 Jan 2026 11:40:13 +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=1769859614; cv=none; b=VPAt9lamW53OceTLYcJAWOQZK7dGbuatjetGG24sHXRBCKDW0IkqYVk1jqSlgCpE+JGUUMtsG3UeomHLLgK2Xzf+B7CqJpsHMiiEw1AuyPavE7EByEM/7NUcnwzMBJzb2eDm+DcQU7JjHENobP+uxeXoz0nOH3Ft5t6WV850xLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859614; c=relaxed/simple; bh=Bja4dJHStywWxGlyvcckfJdLkH/SdJxFqR19mgzo3O4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=npdfLdirkqHLN4eKihgiF+ewP3CZ1WROnaaeFJrsNxIT4s/FBfnL2QiuWO64XhQX5Vhs5JY6NqSR1sqNoiIWrfY6oLrTCqNVqXZw9r8AATEjgCf8eTs/Np39WzDsD2HyZ4rfrcRkAwaNgk752KHwX+RUquQm8Ls04uFCk6iB3m0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eWeOCzL5; 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="eWeOCzL5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9AB9C4CEF1; Sat, 31 Jan 2026 11:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769859613; bh=Bja4dJHStywWxGlyvcckfJdLkH/SdJxFqR19mgzo3O4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=eWeOCzL5qK1eMJlRwgka4VzhEVVTdd0hpMjqp/ZKp3kFed2krLhNp0dNeumEgg2db aFSYuA9YOsp/qFe79SmF7XNdYQ2KEPDNWqTrga+LDLrqAyAMaW45D7VeLZJw9Iu/Eo GEA5anV76fZsYjzRerKzAYApdj9KGGIEeCGER6hE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71184: btrfs: fix NULL dereference on root when tracing inode eviction Date: Sat, 31 Jan 2026 12:39:35 +0100 Message-ID: <2026013134-CVE-2025-71184-e27f@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2547; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2HQfMvzKMcYLwmznOUb6u4Qyn2+cS8nGxA3pC40yPTY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm1L79V/nzbkPTgxg6bPVdTHO67KvGsZ+AJCJn+eCN/X Mf+JNPFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRmUIM8xM1SmObnpxot1ny vtxjwiznfRfiXjIsWPbiUFmEVereuoCTEe6pp5+V62eXAwA= 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: fix NULL dereference on root when tracing inode eviction When evicting an inode the first thing we do is to setup tracing for it, which implies fetching the root's id. But in btrfs_evict_inode() the root might be NULL, as implied in the next check that we do in btrfs_evict_inode(). Hence, we either should set the ->root_objectid to 0 in case the root is NULL, or we move tracing setup after checking that the root is not NULL. Setting the rootid to 0 at least gives us the possibility to trace this call even in the case when the root is NULL, so that's the solution taken here. The Linux kernel CVE team has assigned CVE-2025-71184 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.39 with commit 1abe9b8a138c9988ba8f7bfded6453649a31541f and fixed in 6.12.66 with commit 582ba48e4a4c06fef6bdcf4e57b7b9af660bbd0c Issue introduced in 2.6.39 with commit 1abe9b8a138c9988ba8f7bfded6453649a31541f and fixed in 6.18.6 with commit 99e057f3d3ef24b99a7b1d84e01dd1bd890098da Issue introduced in 2.6.39 with commit 1abe9b8a138c9988ba8f7bfded6453649a31541f and fixed in 6.19-rc5 with commit f157dd661339fc6f5f2b574fe2429c43bd309534 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-71184 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: include/trace/events/btrfs.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/582ba48e4a4c06fef6bdcf4e57b7b9af660bbd0c https://git.kernel.org/stable/c/99e057f3d3ef24b99a7b1d84e01dd1bd890098da https://git.kernel.org/stable/c/f157dd661339fc6f5f2b574fe2429c43bd309534