-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-26:99.linux Security Advisory The FreeBSD Project Topic: Memory corruption of set-ID Linux programs via execve(2) Category: core Module: linux Announced: 2026-12-02 Credits: Matt Macy Affects: All supported versions of FreeBSD. Corrected: 2026-12-02 19:25:53 UTC (stable/15, 15.2-STABLE) 2026-12-02 19:27:32 UTC (releng/15.2, 15.2-RC1-p1) 2026-12-02 19:26:29 UTC (releng/15.1, 15.1-RELEASE-p8) 2026-12-02 19:28:18 UTC (stable/14, 14.5-STABLE) 2026-12-02 19:29:19 UTC (releng/14.5, 14.5-RELEASE-p5) 2026-12-02 19:28:49 UTC (releng/14.4, 14.4-RELEASE-p14) CVE Name: CVE-2026-127757 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background The Linux binary compatibility layer (Linuxulator) allows unmodified Linux binaries to run on FreeBSD. Linux threads may register a clear_child_tid address. When such a thread terminates, the kernel writes zero to that address and wakes any associated futex waiter. The Linuxulator also processes each terminating thread's robust futex list. Executing a set-user-ID or set-group-ID program with execve(2) may change the process's credentials. II. Problem Description During execve(2) of a multithreaded process, FreeBSD suspended sibling threads before replacing the process image but did not terminate them until after the new address space was installed. The Linuxulator then performed thread-exit cleanup using clear_child_tid and robust futex pointers registered by the old image. Consequently, an address selected by an unprivileged process could be dereferenced in the address space of the newly executed program. For a set-user-ID or set-group-ID Linux executable, this cleanup occurred after the privileged image was installed and before it received user-mode control. III. Impact An unprivileged local user can cause chosen four-byte words at writable addresses in a set-user-ID or set-group-ID Linux process to be set to zero. This can corrupt or terminate a privileged program and may permit privilege escalation. IV. Workaround Systems without a Linux binary compatibility module (linux.ko or linux64.ko) loaded, or without any set-user-ID or set-group-ID Linux executables, are not affected. The following commands can be used to test whether the modules are loaded: # kldstat -m linuxelf # kldstat -m linux64elf On affected systems, set-ID handling for Linux executables can be disabled with: # sysctl compat.linux.setid_allowed=0 To make this change persistent across reboots, add it to /etc/sysctl.conf. V. Solution Upgrade your vulnerable system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date, and reboot the system. Perform one of the following: 1) To update your vulnerable system installed from base system packages: Systems running a 15.0-RELEASE or later version of FreeBSD on the amd64 or arm64 platforms, which were installed using base system packages, can be updated via the pkg(8) utility: # pkg upgrade -r FreeBSD-base # shutdown -r +10min "Rebooting for a security update" 2) To update your vulnerable system installed from binary distribution sets: Systems running a RELEASE version of FreeBSD on the amd64 or arm64 platforms which were not installed using base system packages can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # shutdown -r +10min "Rebooting for a security update" 3) To update your vulnerable system via a source code patch: The following patches have been verified to apply to the applicable FreeBSD release branches. a) Download the relevant patch from the location below, and verify the detached PGP signature using your PGP utility. [FreeBSD 15.x] # fetch https://security.FreeBSD.org/patches/SA-26:99/linux-15.patch # fetch https://security.FreeBSD.org/patches/SA-26:99/linux-15.patch.asc # gpg --verify linux-15.patch.asc [FreeBSD 14.x] # fetch https://security.FreeBSD.org/patches/SA-26:99/linux-14.patch # fetch https://security.FreeBSD.org/patches/SA-26:99/linux-14.patch.asc # gpg --verify linux-14.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch -E -p0 < /path/to/patch c) Recompile your kernel as described in and reboot the system. VI. Correction details This issue is corrected as of the corresponding Git commit hash in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/15/ 8a108344fc5e stable/15-n287077 releng/15.2/ 7f49953a4c3b releng/15.2-n286784 releng/15.1/ c17465cb74dc releng/15.1-n283707 stable/14/ 19a3fa84f345 stable/14-n275705 releng/14.5/ 05262784582b releng/14.5-n274940 releng/14.4/ 2afb638b26d0 releng/14.4-n273841 - ------------------------------------------------------------------------- Run the following command to see which files were modified by a particular commit: # git show --stat Or visit the following URL, replacing NNNNNN with the hash: To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run: # git rev-list --count --first-parent HEAD VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmsQj3EbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvUvwQAL1d0VfLbvIwBFJgJX3N jKFKtv/x4iamDh7Wqx4B4PLdAh/SPdONjFuULuqeTNjUPLtm5dfiiCj8RPWypxPx wh+Fbo29hqKyGUi1E7nhP/ykW1kSaq6jMzA6wfU9ozVmW4FSeJzP6jawbdE+zTgO vPfXI4aGj6/HM9UYEFfd3+UrdHAAb5CvRNDhiM9uH+/hJ54P8Fdd9vaXlheATzzn bNuX3QB4wSahzmoqOe9a+gUzU88KSY7UZoIE3G+cuJMZVP7MCOE9zBucVe4G1iq6 7EByxvNaYd4BmrnEjRgYIDycvBBk6JsqaGzpaXRMeW8wRXE4b4daNHUfVmF1MAV/ pC1aevwIv3PgmMgtVZMijHNT93vowSchybVyC1S9XvSvy2Wc2ZtEaV+AlFSzaCBE R6AYk6CU7lnd1m0uPG/fSisSMlIQZ5yCgDGZOn9jViBeSaQdFlcTQi05SGvMz3hG Rt8lKJOYlqsKSCbGz9lA70rkSAWU2XPwL6bZLOPAvR+WDDpVcvIvADem8C8tzFFM QP4/SJbn1UX2YkP+ULXIfRxlbijeJ9SsFdjcj7h3+B58grMCav2puROHfMNryR3b 8Om0OBomeQre4Fpk3x+4kTeIYZiXZ4LmMqrxvHD3CbDbRT9IfrsfEyx4qxmwyNx4 5h2wLMEIJtEnZZOJRG+Tvnjj =iVHq -----END PGP SIGNATURE-----