5.5medium
nfs: return EISDIR on nfs3_proc_create if d_alias is a dir
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (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: nfs: return EISDIR on nfs3_proc_create if d_alias is a dir If we found an alias through nfs3_do_create/nfs_add_or_obtain /d_splice_alias which happens to be a dir dentry, we don't return any error, and simply forget about this alias, but the original dentry we were adding and passed as parameter remains negative. This later causes an oops on nfs_atomic_open_v23/finish_open since we supply a negative dentry to do_dentry_open. This has been observed running lustre-racer, where dirs and files are created/removed concurrently with the same name and O_EXCL is not used to open files (frequent file redirection). While d_splice_alias typically returns a directory alias or NULL, we explicitly check d_is_dir() to ensure that we don't attempt to perform file operations (like finish_open) on a directory inode, which triggers the observed oops.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7c6c5249f061b64fc6b5b90bc147169a048691bf before 7e2963773760a664684435201960dd2fb712f1b5, from 7c6c5249f061b64fc6b5b90bc147169a048691bf before 203c792cb4315360d49973ae2e57feeb6d3dcf7e, from 7c6c5249f061b64fc6b5b90bc147169a048691bf before 9ee1770fcb2f1b48354622b926e7dc10222805f5, from 7c6c5249f061b64fc6b5b90bc147169a048691bf before 410666a298c34ebd57256fde6b24c96bd23059a2, 6.10 Not affected: before 6.10, from 6.12.78 up to 6.12.*, from 6.18.19 up to 6.18.*, from 6.19.9 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.10 before 6.12.78, from 6.13 before 6.18.19, from 6.19 before 6.19.9, 7.0 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: nfs: return EISDIR on nfs3_proc_create if d_alias is a dir If we found an alias through nfs3_do_create/nfs_add_or_obtain /d_splice_alias which happens to be a dir dentry, we don't return any error, and simply forget about this alias, but the original dentry we were adding and passed as parameter remains negative. This later causes an oops on nfs_atomic_open_v23/finish_open since we supply a negative dentry to do_dentry_open. This has been observed running lustre-racer, where dirs and files are created/removed concurrently with the same name and O_EXCL is not used to open files (frequent file redirection). While d_splice_alias typically returns a directory alias or NULL, we explicitly check d_is_dir() to ensure that we don't attempt to perform file operations (like finish_open) on a directory inode, which triggers the observed oops.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: nfs: devolver EISDIR en nfs3_proc_create si d_alias es un directorio Si encontramos un alias a través de nfs3_do_create/nfs_add_or_obtain /d_splice_alias que resulta ser una entrada de directorio, no devolvemos ningún error y simplemente nos olvidamos de este alias, pero la entrada original que estábamos añadiendo y que se pasó como parámetro permanece negativa. Esto más tarde causa un oops en nfs_atomic_open_v23/finish_open ya que suministramos una entrada negativa a do_dentry_open. Esto se ha observado ejecutando lustre-racer, donde los directorios y archivos se crean/eliminan concurrentemente con el mismo nombre y O_EXCL no se utiliza para abrir archivos (redirección frecuente de archivos). Si bien d_splice_alias típicamente devuelve un alias de directorio o NULL, verificamos explícitamente d_is_dir() para asegurar que no intentamos realizar operaciones de archivo (como finish_open) en un inodo de directorio, lo que desencadena el oops observado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43470 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43470 changed 2026-11-11 | Public domain |