Bug 2585412 (CVE-2026-137898) - CVE-2026-137898 pam: Linux-PAM pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
Summary: CVE-2026-137898 pam: Linux-PAM pam_econf local privilege escalation via relat...
Keywords:
Status: NEW
Alias: CVE-2026-137898
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2585472
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-27 11:33 UTC by OSIDB Bzimport
Modified: 2026-11-27 14:19 UTC (History)
18 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-27 11:33:50 UTC
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.