Skip to contentSkip to conversation

CVE-2026-99067: btrfs: scrub: fix local_root reference leak in scrub_print_warning_inode()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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: scrub: fix local_root reference leak in scrub_print_warning_inode()

When paths_from_inode() fails, scrub_print_warning_inode() jumps to err without dropping the reference taken by btrfs_get_fs_root(), leaking a reference to the root every time path resolution fails while printing scrub warnings. Every other error and success path of the function drops the reference.

Drop the reference on the paths_from_inode() failure path too.

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

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

	Issue introduced in 3.2 with commit 558540c17771eaf89b1a3be39aa2c8bc837da1a6 and fixed in 6.6.160 with commit 41cabfbf3532e2a2a17be9e4876042a5393b5c8d
	Issue introduced in 3.2 with commit 558540c17771eaf89b1a3be39aa2c8bc837da1a6 and fixed in 6.12.113 with commit 452a435b74f7f598a343c51f7c89c5d2244384b6
	Issue introduced in 3.2 with commit 558540c17771eaf89b1a3be39aa2c8bc837da1a6 and fixed in 6.18.57 with commit 12ba7d8b9cd45a2c6aa8f37c3f4b8a50422fb549
	Issue introduced in 3.2 with commit 558540c17771eaf89b1a3be39aa2c8bc837da1a6 and fixed in 7.2.11 with commit a7e5992bc37088f9b00e531955022aef69de3dc7
	Issue introduced in 3.2 with commit 558540c17771eaf89b1a3be39aa2c8bc837da1a6 and fixed in 7.3 with commit 1fd742c7479961da6d0bb794ef8ac6b7b9442847

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

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/scrub.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/41cabfbf3532e2a2a17be9e4876042a5393b5c8d
	https://git.kernel.org/stable/c/452a435b74f7f598a343c51f7c89c5d2244384b6
	https://git.kernel.org/stable/c/12ba7d8b9cd45a2c6aa8f37c3f4b8a50422fb549
	https://git.kernel.org/stable/c/a7e5992bc37088f9b00e531955022aef69de3dc7
	https://git.kernel.org/stable/c/1fd742c7479961da6d0bb794ef8ac6b7b9442847