CVE-2026-137898: Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
A flaw was found in pam. When built with libeconf and an unconfigured vendor directory, the pameconf configuration handler misinterprets the search path, causing it to look for configuration files in a relative directory within the current working directory. A local attacker can exploit this by placing crafted environment configuration files in a world-writable location. If an administrator executes a privileged command from that directory, the malicious variables are loaded into the privileged process, resulting in local privilege escalation.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using Linux-PAM built with libeconf and with an unconfigured vendor directory are exposed. Exploitation also depends on a privileged command being run from an attacker-controlled world-writable directory.
What does an attacker need to exploit it?
The attacker needs local access sufficient to place crafted environment configuration files in a world-writable location. An administrator must then execute a privileged command while its current working directory is that location.
Are default installations affected?
The provided information identifies a specific build and configuration condition: Linux-PAM must be built with libeconf and have an unconfigured vendor directory. It does not state whether that condition is present in default installations.
What can be done if patching is not immediately possible?
Avoid executing privileged commands from world-writable or otherwise attacker-controlled directories. Ensure the working directory for administrative privileged commands is a trusted location.
How can administrators identify potential exposure?
Check whether Linux-PAM was built with libeconf and whether its vendor directory is unconfigured. Also review administrative practices and automation for privileged commands launched from world-writable directories.