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

Published Aug 19, 2026
·
Updated

The kernel function that implements unlinkat(2) and funlinkat(2) validated the ATRESOLVEBENEATH 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 ATRESOLVEBENEATH 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 Software

1 affected component
Linux Kernel

Event History

Aug 19, 2026
CVE Published
via MITRE·05:25 AM
Data Sourced
via MITRE·05:25 AM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications or services that use unlinkat(2) or funlinkat(2) with AT_RESOLVE_BENEATH as a security boundary for restricting deletions to a starting directory are exposed. Calls that do not rely on this flag for path containment are not described as affected.

2

What is required for exploitation?

The affected process must use AT_RESOLVE_BENEATH with unlinkat(2) or funlinkat(2) and rely on it to prevent paths from resolving above the starting directory. A path that resolves outside the intended directory tree can then cause deletion of files outside that tree.

3

How can I identify potentially affected code?

Review code and deployed applications for calls to unlinkat(2) or funlinkat(2) that pass AT_RESOLVE_BENEATH. Treat uses where the flag is intended to confine deletion operations to a directory tree as potentially affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203