Skip to main content
← All vulnerabilities
CVE-2026-49421

unlinkat(2) ignores AT_RESOLVE_BENEATH flag

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in p1, p11, p7, p16
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • FreeBSD FreeBSD

    From 15.1-RELEASE · fixed in p1; From 15.0-RELEASE · fixed in p11; From 14.4-RELEASE · fixed in p7; From 14.3-RELEASE · fixed in p16

References 1

security.freebsd.org