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

CVE-2026-49421 affects 36 listed versions of FreeBSD in the Dawnsentry catalogue.

7.1CVSS high
None knownexploitation
under 1%EPSS (next 30 days)
19 August 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

FreeBSD

36 of 250 listed versions are affected. Fixed in 15.1-RELEASE-p1, 15.0-RELEASE-p11, 14.4-RELEASE-p7, 14.3-RELEASE-p16. The newest release, 15.1-p7, is not affected.

15.1 15.1-rc3-p1 15.1-rc2 15.0-p10 15.0-p9 15.0-p8 15.0-p7 15.0-p6 15.0-p5 15.0-p4 15.0-p3 15.0-p2 15.0-p1 15.0 14.4-p6 14.4-p5 14.4-p4 14.4-p3 14.4-p2 14.4-p1 14.4 14.4-rc1 14.3-p15 14.3-p14 14.3-p13 14.3-p12 14.3-p11 14.3-p10 14.3-p9 14.3-p8 14.3-p7 14.3-p6 14.3-p5 14.3-p4 14.3-p3 14.3-p2

What it is

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H (Freebsd)

Published by Freebsd on 19 August 2026. Last changed 9 November 2026.

Sources

Check one version you run: look CVE-2026-49421 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.