REDHAT-BUG-2522497: High severity util-linux nsenter vulnerability

Published Aug 24, 2026
·
Updated

nsenter --join-cgroup (sys-utils/nsenter.c) opens the target cgroup v2 cgroup.procs while still running as root, writes nsenter's own PID to join that cgroup, and then leaves the descriptor open across later namespace/credential transitions and execve(). The FD is neither closed nor marked OCLOEXEC. Linux performs later cgroup migration checks using the credentials captured in file->fcred at open time, so a program executed inside an attacker-controlled target inherits root's cgroup-migration authority even after dropping to an unprivileged UID with no capabilities. A privileged operator must invoke the documented --join-cgroup operation against the attacker-controlled target (nsenter is not SUID on typical distros). After the FD is inherited, an unprivileged process can migrate an unrelated host root PID into an attacker-owned systemd user-service cgroup and terminate it via cgroup.kill. This is not an autonomous LPE. Introduced by b40650b71a74 (2023-06-28); first released in util-linux v2.40. Affects v2.40 through v2.42.2 and current master (confirmed on Debian 13 util-linux 2.41-5). No upstream fix as of 2026-08-24. Reported upstream by 4drez. GHSA-55fx-f4gg-cfhj.

Affected Software

2 affected components
util-linux nsenter>=2.40<=2.42.2
util-linux/nsenter=current master

Event History

Aug 24, 2026
Data Sourced
via Red Hat·06:22 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Can an unprivileged local user trigger this without assistance from a privileged operator?

No. Exploitation requires a privileged operator to invoke nsenter with the documented --join-cgroup option against an attacker-controlled target cgroup.

2

Is this an autonomous local privilege escalation through a normal nsenter installation?

No. nsenter is not SUID on typical distributions, and the issue requires the privileged --join-cgroup invocation described above.

3

What can an attacker do after inheriting the privileged cgroup file descriptor?

An unprivileged process can migrate an unrelated host root PID into an attacker-owned systemd user-service cgroup. It can then terminate that process using cgroup.kill.

4

What is the available temporary mitigation when no upstream fix is available?

Do not invoke nsenter --join-cgroup against cgroup targets controlled by untrusted users. This prevents the attacker-controlled process from inheriting the descriptor opened with root cgroup-migration authority.

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