Skip to contentSkip to conversation

CVE-2026-43106: cachefiles: fix incorrect dentry refcount in cachefiles_cull()

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:

cachefiles: fix incorrect dentry refcount in cachefiles_cull()

The patch mentioned below changed cachefiles_bury_object() to expect 2 references to the 'rep' dentry. Three of the callers were changed to use start_removing_dentry() which takes an extra reference so in those cases the call gets the expected references.

However there is another call to cachefiles_bury_object() in cachefiles_cull() which did not need to be changed to use start_removing_dentry() and so was not properly considered. It still passed the dentry with just one reference so the net result is that a reference is lost.

To meet the expectations of cachefiles_bury_object(), cachefiles_cull() must take an extra reference before the call. It will be dropped by cachefiles_bury_object().

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

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

	Issue introduced in 6.19 with commit 7bb1eb45e43c4730cbc5a48b9e9295049fccdacb and fixed in 6.19.14 with commit 6577df7dc7a7de128442b6192c7a32195c923480
	Issue introduced in 6.19 with commit 7bb1eb45e43c4730cbc5a48b9e9295049fccdacb and fixed in 7.0 with commit 1635c2acdde86c4f555b627aec873c8677c421ed

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

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/cachefiles/namei.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/6577df7dc7a7de128442b6192c7a32195c923480
	https://git.kernel.org/stable/c/1635c2acdde86c4f555b627aec873c8677c421ed