Description
The ELF image activator cleared per-process ASLR preference flags for setuid binaries after the code that computes the PIE base address, rather than before. As a result, a user-requested ASLR disable was still in effect at the point where the base address was chosen. An unprivileged local user can disable ASLR for a setuid PIE binary by calling procctl(2) before execve(2). This makes exploitation of any separate memory corruption vulnerability in that binary significantly easier.
Problem types
CWE-179: Incorrect Behavior Order: Early Validation
Product status
15.0-RELEASE (release) before p10
14.4-RELEASE (release) before p6
14.3-RELEASE (release) before p15
Credits
Synacktiv
References
security.freebsd.org/advisories/FreeBSD-SA-26:32.elf.asc