p PatchFirst

USN-7117-2

USN-7117-2 · Ubuntu security update: needrestart regression

Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • needrestart Ubuntu Pro 16.04 LTSUpdate to 2.6-1ubuntu0.1~esm2
  • needrestart Ubuntu Pro 18.04 LTSUpdate to 3.1-1ubuntu0.1+esm2
  • needrestart Ubuntu Pro 20.04 LTSUpdate to 3.4-6ubuntu0.1+esm2
  • needrestart Ubuntu 22.04 LTSUpdate to 3.5-5ubuntu2.3
  • and 1 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="needrestart"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from the distribution’s bulletin. Check the original advisory before installing the update.

USN-7117-1 fixed vulnerabilities in needrestart. The update introduced a regression in needrestart. This update fixes the problem.

We apologize for the inconvenience.

Original advisory details:

Qualys discovered that needrestart passed unsanitized data to a library (libmodule-scandeps-perl) which expects safe input. A local attacker could possibly use this issue to execute arbitrary code as root. (CVE-2024-11003)

Qualys discovered that the library libmodule-scandeps-perl incorrectly parsed perl code. This could allow a local attacker to execute arbitrary shell commands. (CVE-2024-10224)

Qualys discovered that needrestart incorrectly used the PYTHONPATH environment variable to spawn a new Python interpreter. A local attacker could possibly use this issue to execute arbitrary code as root. (CVE-2024-48990)

Qualys discovered that needrestart incorrectly checked the path to the Python interpreter. A local attacker could possibly use this issue to win a race condition and execute arbitrary code as root. (CVE-2024-48991)

Qualys discovered that needrestart incorrectly used the RUBYLIB environment variable to spawn a new Ruby interpreter. A local attacker could possibly use this issue to execute arbitrary code as root. (CVE-2024-48992)

Published
Updated

Vulnerabilities closed

Stack: system

Updated packages and versions

  • needrestart Ubuntu Pro 16.04 LTS

    Versions
    • 2.1-1
    • 2.3-2
    • 2.4-1
    • 2.5-1
    • 2.6-1
    • 2.6-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: < 2.6-1ubuntu0.1~esm2

    Update to 2.6-1ubuntu0.1~esm2

  • needrestart Ubuntu Pro 18.04 LTS

    Versions
    • 2.11-4
    • 3.0-1
    • 3.1-1
    • 3.1-1ubuntu0.1
    • 3.1-1ubuntu0.1+esm1
    Affected ranges
    • ECOSYSTEM: < 3.1-1ubuntu0.1+esm2

    Update to 3.1-1ubuntu0.1+esm2

  • needrestart Ubuntu Pro 20.04 LTS

    Versions
    • 3.4-5
    • 3.4-6
    • 3.4-6ubuntu0.1
    • 3.4-6ubuntu0.1+esm1
    Affected ranges
    • ECOSYSTEM: < 3.4-6ubuntu0.1+esm2

    Update to 3.4-6ubuntu0.1+esm2

  • needrestart Ubuntu 22.04 LTS

    Versions
    • 3.5-4ubuntu2
    • 3.5-5ubuntu1
    • 3.5-5ubuntu2
    • 3.5-5ubuntu2.1
    • 3.5-5ubuntu2.2
    Affected ranges
    • ECOSYSTEM: < 3.5-5ubuntu2.3

    Update to 3.5-5ubuntu2.3

  • needrestart Ubuntu 24.04 LTS

    Versions
    • 3.6-5
    • 3.6-6
    • 3.6-7
    • 3.6-7ubuntu3
    • 3.6-7ubuntu4
    • 3.6-7ubuntu4.1
    All versions (7)
    • 3.6-7ubuntu4.3
    Affected ranges
    • ECOSYSTEM: < 3.6-7ubuntu4.4

    Update to 3.6-7ubuntu4.4

Original sources

Check your server →