ID:5822 - Exploit for Permissions, Privileges, and Access Controls in OpenBSD - CVE-2019-19726
Published: June 17, 2021
OpenBSD
Link to public exploit:
Vulnerability description
The vulnerability allows a local usre to escalate privileges on the system.
The vulnerability exists due to check for LD_LIBRARY_PATH in setuid programs can be defeated by setting a
very small RLIMIT_DATA resource limit. When executing chpass or passwd
(which are setuid root), _dl_setup_env in ld.so tries to strip
LD_LIBRARY_PATH from the environment, but fails when it cannot allocate
memory. A local user can execute arbitrary code on the system with root privileges.