Distro News

Ubuntu releases Sudo security updates for 18.04 and 20.04 LTS to fix time-restriction bypass

Key Takeaway

A vulnerability in Sudo allows local users to bypass time-based access restrictions by manipulating the TZ environment variable when timezone indicators are missing from sudoers rules.

Summary

Canonical has issued security updates for the Sudo utility to address CVE-2026-96512, which affects time-based access controls. The flaw specifically impacts sudoers rules that utilize NOTBEFORE or NOTAFTER directives with timestamps that lack a trailing timezone indicator.

These updates are specifically targeted at Ubuntu 18.04 LTS (Bionic) and Ubuntu 20.04 LTS (Focal) users. Because these versions are in the Extended Security Maintenance (ESM) phase, the fixes are provided through the Ubuntu Pro subscription service.

Technical breakdown of CVE-2026-96512

  • Vulnerability Class: Local privilege escalation via bypass of time-based access restrictions.
  • Root Cause: Improper handling of timestamps in sudoers rules when the trailing timezone indicator is omitted from NOTBEFORE or NOTAFTER directives.
  • Attack Vector: A local attacker can manipulate the TZ environment variable to execute commands outside of the authorized time window.
  • Affected Packages: The fix applies to both the core sudo package and the sudo-ldap component.

Why it matters

System administrators managing legacy Ubuntu environments must utilize Ubuntu Pro to receive these critical security patches. This vulnerability highlights the risks of relying on environment variables for security-sensitive time constraints in sudoers configurations.

What to do

  • Ubuntu 18.04 LTS and 20.04 LTS users should apply a standard system update.
  • Ensure sudo and sudo-ldap are updated to version 1.8.21p2-3ubuntu1.6+esm2 for 18.04 LTS or 1.8.31-1ubuntu1.5+esm2 for 20.04 LTS via an Ubuntu Pro subscription.

Original reference: ubuntu.com →