CVE-2026-124757: Local root privilege escalation in needrestart through cgroup spoofing and process-name injection
CVE-2026-124757 is a local privilege-escalation vulnerability in needrestart involving improper validation of systemd cgroup paths and unsafe handling of process names. An unanchored cgroup-path match allows a local attacker to make their process appear to belong to root's session. On Debian bookworm and Ubuntu 24.04, the notification hook incorporates the attacker-controlled process name into a shell command executed through su, allowing command execution as root. Confirmed affected packages include needrestart 3.6-4+deb12u3 on Debian bookworm and 3.6-7ubuntu4.5 on Ubuntu 24.04. Debian trixie with needrestart 3.11-1 is partly affected by session misidentification and attacker-controlled notifications, although command execution was not reproduced on that package.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation on confirmed command-execution configurations allows an unprivileged local user to execute arbitrary commands as root, compromising system confidentiality, integrity, and availability. On the tested Debian trixie configuration, exploitation caused the notification utility to execute as root with attacker-selected display settings and notification text; arbitrary command execution was not demonstrated there.
Mitigation
If you can’t patch tonight, do this now.
No interim workaround is documented. Install the applicable needrestart security update.
Remediation
Patch, then assume compromise.
Install the distribution-provided security update for needrestart. Debian 13 (trixie) is fixed in version 3.11-1.1~deb13u1 or later. Ubuntu users should install the corrected package for their release through standard security updates; fixes for Ubuntu 18.04 LTS and 20.04 LTS require Ubuntu Pro ESM Apps. Applicable TuxCare fixed versions include 3.1-1ubuntu0.1+tuxcare.els5, 2.6-1+tuxcare.els3, and 3.4-6ubuntu0.1+tuxcare.els2. The upstream three-patch fix passes notification text through environment variables rather than interpolating it into shell commands, anchors systemd cgroup matches, and replaces non-printable characters in notification text. Applying the fixes to needrestart 3.6 requires distribution-specific backporting.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-124757 exploited in the wild?
- As of Nov 24, 2026, Mallory has no reports of CVE-2026-124757 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-124757?
- As of Nov 24, 2026, Mallory has found no public exploit for CVE-2026-124757.
- Is there a patch for CVE-2026-124757?
- Install the distribution-provided security update for needrestart. Debian 13 (trixie) is fixed in version 3.11-1.1~deb13u1 or later.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.