On this page (7 sections)

Ubuntu published notice USN-9151-1 on 18 November 2026. It covers needrestart, the package Ubuntu describes as a way to check which daemons need to be restarted after library upgrades. According to the notice, needrestart could be made to run programs as an administrator.

If you run Ubuntu servers, including web hosts, build machines or shared hosting boxes where more than one person or application has a local account, this is worth a quick update. The notice describes a local attacker, so it matters most where someone could already run code on the machine.

What happened

Ubuntu credits Armaan Sandhu with discovering that needrestart did not properly handle systemd cgroup paths and process names. The notice says a local attacker could possibly use these issues to escalate privileges. The wording is cautious: it says "possibly", and it does not give a severity score or say whether the problem is being exploited.

At the time of writing, the Ubuntu notice is the only source in our research. There is no CVSS score, no independent analysis and no report of attacks in the wild, so treat any claim beyond the notice as unconfirmed.

Technical background in plain terms

The notice gives few details: needrestart mishandled systemd cgroup paths and process names, and the result could be running programs as an administrator. It does not publish more, and we are not adding any.

As general background, not something stated in the notice: this looks like a familiar weakness class, where a privileged tool does not safely handle data that a less privileged user can influence. Process names and the control group a process belongs to are the kind of values a local user can often shape, which is why careful handling of them matters in tools that inspect running processes.

Who is affected

The notice lists every Ubuntu release from 16.04 LTS to 26.10. Exposure depends on whether needrestart is installed and whether an untrusted party can run code locally.

  • Shared servers, hosting nodes and CI runners with several local users.
  • Web servers where a compromised site or application could give an attacker a low-privilege shell, which could then be used to try for administrator access.
  • Container hosts and development machines where untrusted workloads run next to the host.

A single-user server with no untrusted local code has lower practical exposure, but updating is still sensible because the fix is delivered through normal Ubuntu updates.

How to check your exposure

First confirm whether the package is installed and which version you have. These are read-only queries. Run them on each Ubuntu host and compare the output with the fixed versions in the table below.

Show the installed needrestart version (Ubuntu)Shell
dpkg -l needrestart
apt-cache policy needrestart
Fixed needrestart package versions from USN-9151-1
Ubuntu releaseFixed versionHow to get it
26.103.11-1ubuntu2.26.10.1Standard update
26.04 LTS3.11-1ubuntu2.26.04.1Standard update
24.04 LTS3.6-7ubuntu4.6Standard update
22.04 LTS3.5-5ubuntu2.6Standard update
20.04 LTS3.4-6ubuntu0.1+esm4Ubuntu Pro (ESM Apps)
18.04 LTS3.1-1ubuntu0.1+esm4Ubuntu Pro (ESM Apps)
16.04 LTS2.6-1ubuntu0.1~esm4Ubuntu Pro (ESM Apps)

If your installed version is older than the one listed for your release, you need the update. If the package is not installed, this notice does not apply to that machine.

What to do now

Caution. Package upgrades can pull in other updates, and some services may need a restart afterwards. Apply changes to production servers during a maintenance window and keep a way to roll back.
  1. List your Ubuntu hosts and find the ones with needrestart installed.
  2. Refresh the package index and upgrade needrestart (commands below), or run your normal system update.
  3. Confirm the installed version matches or exceeds the fixed version for your release.
  4. On 20.04, 18.04 and 16.04, attach Ubuntu Pro to get the ESM Apps fix, or plan an upgrade to a supported release.
  5. Review who has local or shell access on shared servers and remove accounts that are no longer needed.
  6. Record the update in your patch log so audits can see it was applied.

The Ubuntu notice says a standard system update will make the necessary changes. To update only this package, run the following on Ubuntu with sudo rights. It refreshes the package lists and upgrades needrestart to the version available for your release.

Update only the needrestart package (Ubuntu)Shell
sudo apt update
sudo apt install --only-upgrade needrestart

Then repeat the version check. This read-only command shows the installed and candidate versions.

Confirm the fixed version is installed (Ubuntu)Shell
apt-cache policy needrestart
Tip. The Installed line should match or exceed the version for your release in the table. If the Candidate is newer than Installed, the upgrade did not complete.

Detection and monitoring

The notice does not describe indicators of compromise, so there is nothing specific to hunt for. General hygiene still applies on servers where untrusted local code could run: review authentication and sudo logs for unexpected privilege changes, watch for new administrator accounts, and keep an eye on unusual processes started by service accounts.

Local privilege escalation is often a second step after an attacker gains a foothold, for example through a vulnerable web application. If you manage public sites, keeping the application layer patched matters as much as the operating system. A read-only security scan of your verified sites can help you spot exposed issues on the web side, and our guide on what to do if a website is hacked covers next steps if you suspect a breach.

Timeline

  • 18 November 2026: Ubuntu publishes USN-9151-1 with fixed needrestart packages for all listed releases.
  • Discoverer credited by Ubuntu: Armaan Sandhu.
  • Exploitation status and a severity score: not provided in the notice.

For similar Ubuntu package fixes, see our write-ups of USN-9150-1 for SWUpdate and USN-9148-1 for Mechanize.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. USN-9151-1: needrestart vulnerability | Ubuntu security notices | Ubuntuubuntu.com ·
  • Ubuntu
  • needrestart
  • privilege escalation
  • Linux servers
  • USN