Bug 2585472 - CVE-2026-137898 pam: Linux-PAM pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling [fedora-all]
Summary: CVE-2026-137898 pam: Linux-PAM pam_econf local privilege escalation via relat...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: pam
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Tomas Halman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["0ec1a0e0-8869-453d-8bb0-a...
Depends On:
Blocks: CVE-2026-137898
TreeView+ depends on / blocked
 
Reported: 2026-11-27 14:19 UTC by Vladimir Vasilev
Modified: 2026-11-27 14:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vladimir Vasilev 2026-11-27 14:19:42 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 Linux-PAM's pam_econf configuration handling. When Linux-PAM is built with libeconf and an empty vendor directory, the search list passed to libeconf becomes "PARSING_DIRS=(null):/etc": the NULL vendor directory is formatted as the literal text "(null)", which libeconf opens as a directory relative to the current working directory. A local user can create a "(null)" directory with environment.d drop-ins in a world-writable folder (e.g. /tmp); when an administrator runs sudo from that folder, pam_env loads the attacker's variables, including LD_PRELOAD, which bypass sudo's env_reset filtering (the PAM environment is merged unconditionally) and reach the command run as root, leading to full local privilege escalation. Confirmed by code review and reproduced end to end (marker payload ran as uid=0 euid=0 via sudo from a world-writable directory) in a Fedora 44 container with the shipped pam 1.7.2-2.fc44; Fedora 43-45 and rawhide are affected, Fedora 42 (EOL) as well. RHEL is not affected (pam 1.5.1/1.6.1 lack the affected code path).


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