-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-26:100.unix Security Advisory The FreeBSD Project Topic: Use-after-free via MSG_PEEK on unix(4) datagram sockets Category: core Module: unix Announced: 2026-12-02 Credits: tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative Affects: FreeBSD 15.x Corrected: 2026-12-02 19:25:54 UTC (stable/15, 15.2-STABLE) 2026-12-02 19:27:33 UTC (releng/15.2, 15.2-RC1-p1) 2026-12-02 19:26:30 UTC (releng/15.1, 15.1-RELEASE-p8) CVE Name: CVE-2026-127759 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background Unix domain sockets provide a mechanism for processes on the same host to communicate, and can be used to pass file descriptors between processes. The kernel's garbage collector periodically scans descriptors in transit to reclaim unix sockets that are no longer reachable by any process. The MSG_PEEK flag to recv(2) returns queued data without removing it from the socket. II. Problem Description When a datagram on a unix(4) socket was received with MSG_PEEK, the kernel moved it out of the receive queue but left it linked to the next queued datagram. That datagram could later be freed, for example when the sending socket was closed, but the garbage collector still followed the stale link when scanning the socket. The collector would then access freed memory and could reclaim a socket that was still in use. III. Impact An unprivileged local user may be able to exploit the resulting use-after-free to escalate privileges. IV. Workaround No workaround is available. 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. # fetch https://security.FreeBSD.org/patches/SA-26:100/unix.patch # fetch https://security.FreeBSD.org/patches/SA-26:100/unix.patch.asc # gpg --verify unix.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/ a97437b8d795 stable/15-n287078 releng/15.2/ c7c5f6263418 releng/15.2-n286785 releng/15.1/ 5071b0f85bcf releng/15.1-n283708 - ------------------------------------------------------------------------- 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----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmsQj1cbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvofkP/3FmnR7qMJdOTfvkUz2A kHyDiREQhQSG2QtGZSOEeXoI+sOAtkgg4DOh7mbunDf8QVm+bI94a2TvlvdPK5Yq x91ZtXdm4G6vf0wlN6ott9X2LkDVswab2F/K67KBEaH2XSet7LONf2dywXAFWqlh nuD8JVpi8GINmp4tt5hNtwfoOOYq/p2Vl4LhvfwVjOFLopvYoJAvMCHbGs3quH1q dbmVpUWR8XNis1ze3BHIOjvJaflpA9/k8H+0UykdAiS7yUMJG3Z8SRpmTzU6AAf7 zedffwAqB7vs9lx12Na7ogSrV52Vnzt9VHjIAp6GFJ+9F9rDjUnZsKN4Tu3Tek4G 5oUzRl/yKzbqNDtVbSbzUOjAFHPB6OaQr7eC7s1Mwhysw6Ege+COzhhUGBdzodLx CVat/nRmp/lbEbrwGVGgGaF69Tcs9kQJlz0POqNbKiYT6rVGjtBTB5yBSXAoDiqf FczgcIYeFo1dTXmxB39sdGQwQwl0OzcSx8swxn4TIAlhJbrHRV+tQRJBznfHVUuj Zdp4hGdFG1ivCsS82NGwNJZVsn6FL9OfTc9iths/yxH2XCxHEoRD2htv57hM+bqa EC1J7Wzp4qFOzDPPJQALAg6MthEQChnI9l3Md9p3AioaaJxgkE6EDBT/dJ9D32Gi 00Z7U5oXpoypf8niK7NA6Sui =ngcX -----END PGP SIGNATURE-----