7.5high
ntfs: ->d_compare() must not block
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.44% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ntfs: ->d_compare() must not block ... so don't use __getname() there. Switch it (and ntfs_d_hash(), while we are at it) to kmalloc(PATH_MAX, GFP_NOWAIT). Yes, ntfs_d_hash() almost certainly can do with smaller allocations, but let ntfs folks deal with that - keep the allocation size as-is for now. Stop abusing names_cachep in ntfs, period - various uses of that thing in there have nothing to do with pathnames; just use k[mz]alloc() and be done with that. For now let's keep sizes as-in, but AFAICS none of the users actually want PATH_MAX.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a3a956c78efaa202b1d75190136671cf6e87bfbe before 02ecc0978c459fd90bb24b2a946dd16d43e68fe5, from a3a956c78efaa202b1d75190136671cf6e87bfbe before 1be7ca86ce1794d966fda5d82181bc978b150fbc, from a3a956c78efaa202b1d75190136671cf6e87bfbe before 142c444a395f4d26055c8a4473e228bb86283f1e, from a3a956c78efaa202b1d75190136671cf6e87bfbe before fb4b1f969ba01fa1d4088467a02fc1e5f0806710, from a3a956c78efaa202b1d75190136671cf6e87bfbe before ca2a04e84af79596e5cd9cfe697d5122ec39c8ce, 6.2 Not affected: before 6.2, from 6.6.141 up to 6.6.*, from 6.12.91 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.2 before 6.18.16, from 6.19 before 6.19.6 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ntfs: ->d_compare() must not block ... so don't use __getname() there. Switch it (and ntfs_d_hash(), while we are at it) to kmalloc(PATH_MAX, GFP_NOWAIT). Yes, ntfs_d_hash() almost certainly can do with smaller allocations, but let ntfs folks deal with that - keep the allocation size as-is for now. Stop abusing names_cachep in ntfs, period - various uses of that thing in there have nothing to do with pathnames; just use k[mz]alloc() and be done with that. For now let's keep sizes as-in, but AFAICS none of the users actually want PATH_MAX.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ntfs: -> d_compare() no debe bloquearse ... así que no uses __getname() allí. Cámbialo (y ntfs_d_hash(), ya que estamos) a kmalloc(PATH_MAX, GFP_NOWAIT). Sí, ntfs_d_hash() casi con certeza puede funcionar con asignaciones más pequeñas, pero dejemos que la gente de ntfs se encargue de eso; mantengamos el tamaño de asignación tal cual por ahora. Dejen de abusar de names_cachep en ntfs, punto - varios usos de esa cosa allí no tienen nada que ver con los nombres de ruta; simplemente usen k[mz]alloc() y terminen con eso. Por ahora, mantengamos los tamaños tal cual, pero AFAICS ninguno de los usuarios realmente quiere PATH_MAX.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43245 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-43245 changed 2026-11-11 | Public domain |