CVE-2026-49421

unlinkat(2) ignores AT_RESOLVE_BENEATH flag

State
Published
Severity
7.1 High
Published
Aug 19, 2026
Updated
Aug 26, 2026
Reserved
May 29, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HCISA-ADP

Weaknesses

  • CWE-273 Improper Check for Dropped Privileges

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.1-RELEASE to before p1Affected
  • 15.0-RELEASE to before p11Affected
  • 14.4-RELEASE to before p7Affected
  • 14.3-RELEASE to before p16Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.