Threat Advisory

Local Attackers Can Escalate Privileges Using needrestart Flaw

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-124757, with a CVSS score of 7.5, is a local privilege escalation vulnerability in the needrestart package, which checks which daemons need to be restarted after library upgrades. The flaw stems from improper handling of systemd cgroup paths and process names, allowing needrestart to be made to run programs with administrative privileges. A local attacker with sufficient access to the affected system could exploit the issue by manipulating or supplying crafted cgroup path or process name values processed by needrestart, causing it to execute commands with elevated privileges. Successful exploitation could allow an attacker to gain administrative control over the host, modify system configuration, access sensitive data, disrupt services, or install persistent access. Because the vulnerability enables privilege escalation from a local account, it can undermine the trust boundary between ordinary users and system administration, increasing the risk of broader compromise in environments where needrestart is used to manage service restarts after updates.

RECOMMENDATIONS:

  • We recommend you to update needrestart to version 3.11-1ubuntu2.26.10.1, 3.11-1ubuntu2.26.04.1, 3.6-7ubuntu4.6, or 3.5-5ubuntu2.6 depending on your installed Ubuntu release.
  • We recommend you to update needrestart to version 3.4-6ubuntu0.1+esm4, 3.1-1ubuntu0.1+esm4, or 2.6-1ubuntu0.1~esm4 depending on your installed Ubuntu release with Ubuntu Pro.

REFERENCES:

The following reports contain further technical details:[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-124757, with a CVSS score of 7.5, is a local privilege escalation vulnerability in the needrestart package, which checks which daemons need to be restarted after library upgrades. The flaw stems from improper handling of systemd cgroup paths and process names, allowing needrestart to be made to run programs with administrative privileges. A local attacker with sufficient access to the affected system could exploit the issue by manipulating or supplying crafted cgroup path or process name values processed by needrestart, causing it to execute commands with elevated privileges. Successful exploitation could allow an attacker to gain administrative control over the host, modify system configuration, access sensitive data, disrupt services, or install persistent access. Because the vulnerability enables privilege escalation from a local account, it can undermine the trust boundary between ordinary users and system administration, increasing the risk of broader compromise in environments where needrestart is used to manage service restarts after updates.

RECOMMENDATIONS:

  • We recommend you to update needrestart to version 3.11-1ubuntu2.26.10.1, 3.11-1ubuntu2.26.04.1, 3.6-7ubuntu4.6, or 3.5-5ubuntu2.6 depending on your installed Ubuntu release.
  • We recommend you to update needrestart to version 3.4-6ubuntu0.1+esm4, 3.1-1ubuntu0.1+esm4, or 2.6-1ubuntu0.1~esm4 depending on your installed Ubuntu release with Ubuntu Pro.

REFERENCES:

The following reports contain further technical details:[emaillocker id="1283"]

[/emaillocker]
crossmenu