# CVE-2026-49421: unlinkat(2) ignores AT_RESOLVE_BENEATH flag

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-08-19T05:25:43.003Z
- Modified: 2026-11-09T20:10:00.200Z
- Weaknesses: CWE-273
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:42.unlinkat.asc> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-49421](https://www.cve.org/CVERecord?id=CVE-2026-49421), CVE Terms of Use, modified 2026-08-26
- NVD: [CVE-2026-49421](https://nvd.nist.gov/vuln/detail/CVE-2026-49421), Public domain, modified 2026-11-09

---

Page: https://cve.day/CVE-2026-49421 · Whole record: https://cve.day/CVE-2026-49421.json · Rebuilt by cve.day 2026-11-25T22:59:33.905Z
