Distro News

Ubuntu fixes privilege escalation in needrestart via systemd cgroup flaws (CVE-2026-124757)

Key Takeaway

A local privilege escalation vulnerability in needrestart, caused by improper handling of systemd cgroup paths and process names, has been patched across eight Ubuntu releases from 16.04 LTS to 26.10.

Summary

Ubuntu has issued security notice USN-9151-1 to address a privilege escalation vulnerability in needrestart, a utility that identifies which daemons require restarting after library upgrades. Security researcher Armaan Sandhu discovered that the tool failed to properly sanitize systemd cgroup paths and process names, creating a pathway for local attackers to execute programs with elevated privileges. The flaw is tracked as CVE-2026-124757.

The update spans an exceptionally broad range of Ubuntu releases, from the legacy 16.04 LTS (Xenial) through the current 26.10 development release, with patched versions varying from needrestart 2.6-1ubuntu0.1~esm4 on the oldest supported LTS to 3.11-1ubuntu2.26.10.1 on the newest. For 16.04 LTS, 18.04 LTS, and 20.04 LTS, fixes are delivered exclusively through Ubuntu Pro's ESM Apps subscription tier, while standard repository updates suffice for 22.04 LTS and newer releases.

Vulnerability mechanics and affected versions

  • CVE-2026-124757: The single identified vulnerability covering both discovered issues with systemd cgroup path handling and process name parsing in needrestart.
  • Attack vector: Local privilege escalation requiring an attacker to already have local system access; no remote exploitation pathway is indicated.
  • Root cause: needrestart's insufficient validation of systemd cgroup paths and process names, which the utility examines to determine service restart requirements after shared library updates.
  • Affected releases: Eight Ubuntu versions spanning a decade of releases—16.04 LTS through 26.10—with needrestart versions 2.6 through 3.11 affected depending on release age.
  • Fix delivery: ESM Apps subscription required for 16.04, 18.04, and 20.04 LTS; standard updates available for 22.04 LTS, 24.04 LTS, 26.04 LTS, and 26.10.

Why it matters

needrestart is deployed on countless Ubuntu servers and workstations to automate service restart decisions after package updates, making this a widely exposed attack surface for any environment where untrusted local users exist. The decade-long patch scope underscores how utility software accumulates latent security debt across LTS cycles, and the ESM-only delivery for older releases highlights the commercialization of security maintenance for aging but still-deployed infrastructure.

Original reference: ubuntu.com →