7.1high
unlinkat(2) ignores AT_RESOLVE_BENEATH flag
- Severity
- 7.1high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.09% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- freebsd
Description
The kernel function that implements unlinkat(2) and funlinkat(2) validated the AT_RESOLVE_BENEATH flag but failed to pass it through to the underlying path lookup. The flag was silently dropped, so path resolution was not actually restricted. A process that uses AT_RESOLVE_BENEATH with unlinkat(2) or funlinkat(2) to confine path resolution can in fact resolve paths above the starting directory. A caller relying on this flag for path containment may delete files outside the intended directory tree.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FreeBSD FreeBSD | from 15.1-RELEASE before p1, from 15.0-RELEASE before p11, from 14.4-RELEASE before p7, from 14.3-RELEASE before p16, 14.3, 14.4, 15.0, 15.1 | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
The kernel function that implements unlinkat(2) and funlinkat(2) validated the AT_RESOLVE_BENEATH flag but failed to pass it through to the underlying path lookup. The flag was silently dropped, so path resolution was not actually restricted. A process that uses AT_RESOLVE_BENEATH with unlinkat(2) or funlinkat(2) to confine path resolution can in fact resolve paths above the starting directory. A caller relying on this flag for path containment may delete files outside the intended directory tree.
NVD (es)
La función del kernel que implementa unlinkat(2) y funlinkat(2) validó la bandera AT_RESOLVE_BENEATH pero no logró pasarla a la búsqueda de ruta subyacente. La bandera fue descartada silenciosamente, por lo que la resolución de ruta no estaba realmente restringida. Un proceso que utiliza AT_RESOLVE_BENEATH con unlinkat(2) o funlinkat(2) para confinar la resolución de ruta puede de hecho resolver rutas por encima del directorio de inicio. Un llamador que confía en esta bandera para la contención de rutas puede eliminar archivos fuera del árbol de directorios previsto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49421 changed 2026-08-26 | CVE Terms of Use |
| NVD | CVE-2026-49421 changed 2026-11-09 | Public domain |