Skip to main content
Mallory
UnratedVulnerability

CVE-2026-124757: Local Root Privilege Escalation in needrestart via Cgroup Spoofing and Shell Injection

Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days9 mentions · peak 5 in a dayToday
CVSS-Not scored
EPSS-30-day exploit probability
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-124757CWE-78

CVE-2026-124757 is a local privilege-escalation vulnerability in needrestart caused by 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 with needrestart 3.6-4+deb12u3 and Ubuntu 24.04 with needrestart 3.6-7ubuntu4.5, the packaged desktop notification hook interpolates the attacker-controlled process name into a shell command executed through su, permitting command execution as root. Debian trixie with needrestart 3.11-1 is affected by session misidentification and attacker-controlled notifications executed as root, although arbitrary command execution was not reproduced on that version.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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 the confirmed command-injection configurations allows a low-privileged local user to execute arbitrary commands as root, compromising system confidentiality, integrity, and availability. On Debian trixie with needrestart 3.11-1, demonstrated behavior was limited to running the notification utility as root with attacker-selected display settings and notification text; arbitrary command execution was not demonstrated.

Mitigation

If you can’t patch tonight, do this now.

Until patched packages are available, consider disabling the affected desktop notification hook to interrupt the demonstrated exploitation path, subject to operational requirements. Review all privileged needrestart invocations, including package-management hooks, automation, and monitoring; exposure is not necessarily limited to interactive package operations. Disabling notifications does not correct the underlying cgroup session-identification flaw.

Remediation

Patch, then assume compromise.

Install the distribution-provided security update for needrestart. For Debian 13 (trixie), upgrade to 3.11-1.1~deb13u1 or a subsequent fixed version. On Ubuntu, install the corrected package through the applicable release's security updates; fixes for Ubuntu 18.04 LTS and 20.04 LTS require Ubuntu Pro ESM Apps. Upstream's three-patch fix passes notification text through environment variables rather than interpolating it into shell commands, anchors systemd cgroup matching, and replaces non-printable characters in notification text. The patch series applies with offsets to needrestart 3.11, while the second patch requires backporting for needrestart 3.6.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2026-124757 exploited in the wild?
As of Nov 21, 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 21, 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. For Debian 13 (trixie), upgrade to 3.11-1.1~deb13u1 or a subsequent fixed version.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.