CVE-2009-4146
The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1, 7.2, and 8.0 does not clear the LD_PRELOAD environment variable, which allows local users to gain privileges by executing a setuid or setguid program with a…
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.90%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1, 7.2, and 8.0 does not clear the LD_PRELOAD environment variable, which allows local users to gain privileges by executing a setuid or setguid program with a modified LD_PRELOAD variable containing an untrusted search path that points to a Trojan horse library, a different vector than CVE-2009-4147.
- CVSS 2.0
- 7.2 HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
- EPSS
- 3.90% probability · 90th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-264
- Affected
- freebsd/freebsd
- Source
- cve@mitre.org
References
- http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html
- http://people.freebsd.org/~cperciva/rtld.patchExploit
- http://secunia.com/advisories/37517Vendor Advisory
- http://www.securityfocus.com/archive/1/508142/100/0/threaded
- http://www.securityfocus.com/archive/1/508146/100/0/threaded
- http://www.securityfocus.com/archive/1/508168/100/0/threaded
- http://www.securityfocus.com/bid/37154Exploit
- http://www.securitytracker.com/id?1023250
- http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html
- http://people.freebsd.org/~cperciva/rtld.patchExploit
- http://secunia.com/advisories/37517Vendor Advisory
- http://www.securityfocus.com/archive/1/508142/100/0/threaded
- http://www.securityfocus.com/archive/1/508146/100/0/threaded
- http://www.securityfocus.com/archive/1/508168/100/0/threaded
- http://www.securityfocus.com/bid/37154Exploit
- http://www.securitytracker.com/id?1023250
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.