Bug 2539401 - CVE-2026-96512 sudo: sudo: TZ environment variable allows bypass of NOTBEFORE/NOTAFTER time-based authorization [fedora-all]
Summary: CVE-2026-96512 sudo: sudo: TZ environment variable allows bypass of NOTBEFORE...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sudo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Alejandro López
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["03fe3872-3855-480e-9aa8-2...
Depends On:
Blocks: CVE-2026-96512
TreeView+ depends on / blocked
 
Reported: 2026-09-23 13:24 UTC by lcelant
Modified: 2026-10-07 09:40 UTC (History)
4 users (show)

Fixed In Version: sudo-1.9.17-17.p2.fc46
Clone Of:
Environment:
Last Closed: 2026-10-07 08:43:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources sudo pull-request 40 0 None None None 2026-10-02 08:44:22 UTC
Fedora Package Sources sudo pull-request 41 0 None None None 2026-10-07 09:40:04 UTC
Fedora Package Sources sudo pull-request 42 0 None None None 2026-10-07 09:40:27 UTC

Description lcelant 2026-09-23 13:24:37 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A flaw was found in sudo's handling of NOTBEFORE and NOTAFTER time-based authorization in sudoers rules. The parse_gentime() function in plugins/sudoers/gentime.c uses mktime() to interpret timestamps that lack a timezone suffix (no trailing 'Z' or explicit UTC offset). Because mktime() converts based on the process's TZ environment variable, and sudo is a setuid-root program that inherits the caller's environment, an unprivileged user can set TZ to an extreme POSIX timezone offset (e.g., TZ=XXX24) to shift the time evaluation window by up to ~25 hours in either direction. This allows expired NOTAFTER rules to appear valid, or not-yet-active NOTBEFORE rules to become usable. Authentication (PAM) is NOT bypassed; only the time-based authorization decision is affected.

The feature was introduced in sudo 1.8.20. All versions from 1.8.20 through 1.9.17p2 are affected. The fix was committed to upstream main by Todd Miller on 2026-08-29 (commit 1820a349687522f51023d1ae5925125f59679a8c) but sudo 1.9.18 has not been released.

Reported by Ermenson Junior (independent security researcher) on 2026-08-28.
PSIRT Ticket: PSIRTSUPT-24357

Comment 1 Fedora Update System 2026-10-07 07:21:05 UTC
FEDORA-2026-da6797fbc8 (sudo-1.9.17-17.p2.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-da6797fbc8

Comment 2 Fedora Update System 2026-10-07 08:43:11 UTC
FEDORA-2026-da6797fbc8 (sudo-1.9.17-17.p2.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.