CVE-2026-43106
published high CVSS 3.1 · 7.8cachefiles: fix incorrect dentry refcount in cachefiles_cull()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7bb1eb45e43c4730cbc5a48b9e9295049fccdacb to < 6577df7dc7a7de128442b6192c7a32195c923480 · 7bb1eb45e43c4730cbc5a48b9e9295049fccdacb to < 1635c2acdde86c4f555b627aec873c8677c421ed · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.19 (affected) · 0 to < 6.19 (unaffected · semver) · 6.19.14 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is reached through local CacheFiles/cachefilesd activity and the `/dev/cachefiles` control interface, not by directly processing remote packets. AC:L - The refcount bug is deterministic once a cull operation reaches `cachefiles_cull()`; there is no attacker-uncontrolled race required, and cache pressure/cullable objects can be induced in a normal CacheFiles-backed deployment. PR:L - Directly opening `/dev/cachefiles` requires init-namespace `CAP_SYS_ADMIN`, but culling is normally performed by the privileged cachefilesd daemon in response to cache pressure. A local unprivileged user with access to a CacheFiles-backed mount can plausibly create cache pressure and cullable objects that cause the daemon to trigger the vulnerable command. UI:N - No victim user action is required once the attacker can generate the local cache activity; cachefilesd culling is daemon-driven. S:U - The vulnerability corrupts kernel/VFS state within the same operating-system security authority and does not cross a VM, IOMMU, or similar boundary. C:H - The missing extra dentry reference can produce a use-after-free/double-put on a kernel dentry. Under the required kernel guidance, UAF memory corruption is scored as capable of high confidentiality impact. I:H - The freed dentry can be reused while still dereferenced or put again, making this kernel memory corruption. Under the required guidance, UAFs are treated as potentially enabling arbitrary write/control-flow impact. A:H - The dentry refcount loss can lead to use-after-free, refcount underflow, or invalid dput paths in the kernel. Such corruption can reliably crash or oops the kernel, so availability impact is high.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7bb1eb45e43c4730cbc5a48b9e9295049fccdacb to < 6577df7dc7a7de128442b6192c7a32195c923480 (affected · git)7bb1eb45e43c4730cbc5a48b9e9295049fccdacb to < 1635c2acdde86c4f555b627aec873c8677c421ed (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.19 (affected)0 to < 6.19 (unaffected · semver)6.19.14 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
cachefiles: fix incorrect dentry refcount in cachefiles_cull()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3c36159e2dbd456680c781d481debb7951b4dd58bb11c9ae490de585dc335e3e
- Ingested
- 23 Sep 2026, 09:14:39 UTC
- Source record
- Official CVE record