CVE-2026-49413 - FreeBSD LPE via Linuxulator AT_SECURE Logic Bug
A logic bug in FreeBSD’s Linuxulator causes AT_SECURE to be incorrectly set to 0 for setuid Linux ELF binaries instead of 1. The vulnerability occurs because the kernel checks the P_SUGID process flag before it is set during execve(), allowing the ld-linux dynamic linker to honor dangerous environment variables like LD_PRELOAD. This enables an unprivileged attacker to inject arbitrary code into setuid binaries and achieve full root privilege escalation. The vulnerability is deterministic (100% reproducible) with no race conditions and affects all supported FreeBSD versions with Linuxulator loaded. The fix checks imgp->credential_setid instead of P_SUGID, which is set earlier in the execution flow.
This post is licensed under CC BY 4.0 by the author.