Skip to contentSkip to conversation

CVE-2026-43117: btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file()

If overlay is used on top of btrfs, dentry->d_sb translates to overlay's super block and fsid assignment will lead to a crash.

Use file_inode(file)->i_sb to always get btrfs_sb.

The Linux kernel CVE team has assigned CVE-2026-43117 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.6.136 with commit c09a7446aab5773f38d6abb25fce99b8e1dfbc97
	Fixed in 6.12.83 with commit 32372781d664a9b03c40343e96c29d0a6139f97d
	Fixed in 6.18.24 with commit 2e4adfaec97ee053ad1bdfb5036845e66f7e0d8a
	Fixed in 6.19.14 with commit d110d7cdb045715c0b45b0dfd974525bb38f653d
	Fixed in 7.0 with commit a85b46db143fda5869e7d8df8f258ccef5fa1719

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-43117

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/c09a7446aab5773f38d6abb25fce99b8e1dfbc97
	https://git.kernel.org/stable/c/32372781d664a9b03c40343e96c29d0a6139f97d
	https://git.kernel.org/stable/c/2e4adfaec97ee053ad1bdfb5036845e66f7e0d8a
	https://git.kernel.org/stable/c/d110d7cdb045715c0b45b0dfd974525bb38f653d
	https://git.kernel.org/stable/c/a85b46db143fda5869e7d8df8f258ccef5fa1719