7.8high
cachefiles: fix incorrect dentry refcount in cachefiles_cull()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7bb1eb45e43c4730cbc5a48b9e9295049fccdacb before 6577df7dc7a7de128442b6192c7a32195c923480, from 7bb1eb45e43c4730cbc5a48b9e9295049fccdacb before 1635c2acdde86c4f555b627aec873c8677c421ed, 6.19 Not affected: before 6.19, from 6.19.14 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.14, 7.0 | NVD |
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: cachefiles: corregir recuento de referencias ’dentry’ incorrecto en cachefiles_cull() El parche mencionado a continuación cambió cachefiles_bury_object() para esperar 2 referencias a la ’dentry’ ’rep’. Tres de los llamadores fueron cambiados para usar start_removing_dentry() que toma una referencia extra, así que en esos casos la llamada obtiene las referencias esperadas. Sin embargo, hay otra llamada a cachefiles_bury_object() en cachefiles_cull() que no necesitaba ser cambiada para usar start_removing_dentry() y por lo tanto no fue considerada adecuadamente. Todavía pasaba la ’dentry’ con solo una referencia, así que el resultado neto es que se pierde una referencia. Para cumplir las expectativas de cachefiles_bury_object(), cachefiles_cull() debe tomar una referencia extra antes de la llamada. Será liberada por cachefiles_bury_object().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43106 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-43106 changed 2026-11-11 | Public domain |