-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
=============================================================================
FreeBSD-SA-26:83.unix Security Advisory
The FreeBSD Project
Topic: Privilege escalation via shutdown(2) race on unix sockets
Category: core
Module: unix
Announced: 2026-11-17
Credits: OpenAI Security Research Team
Affects: FreeBSD 15.1
Corrected: 2026-11-17 17:06:02 UTC (stable/15, 15.2-STABLE)
2026-11-17 17:08:18 UTC (releng/15.1, 15.1-RELEASE-p7)
CVE Name: CVE-2026-127751
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. A connection-oriented unix socket either exchanges data with
a peer, or, after a call to listen(2), accepts incoming connections. The
kernel stores a listening socket's connection queue in the memory that
otherwise holds the socket's data buffers.
II. Problem Description
shutdown(2) on a unix socket checked whether the socket was listening,
then dropped the socket lock before operating on the socket's data
buffers. A concurrent call to listen(2) could convert the socket in the
meantime, causing shutdown(2) to operate on the connection queue as if it
were a data buffer.
III. Impact
An unprivileged local user may be able to exploit the resulting memory
corruption 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:83/unix.patch
# fetch https://security.FreeBSD.org/patches/SA-26:83/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/ 645a017e1c93 stable/15-n286873
releng/15.1/ 3a847375eb72 releng/15.1-n283676
- -------------------------------------------------------------------------
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-----
iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmr82kUbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvr3IQAJn42aWGffSPAZbOzNZp
2v6KX2h7NjJVUuOtKVM/5w38HdjNZbRmoFgM764Bd2IrUmSRrKcyaEGzrLNN43jC
OKKhQqtshe24959WlCUG5cy3qOSofAN6gabK0lTaB//Z2p5wa7qNGOFyb7AQWexq
heC4RYjQEyXPM2TcTooIBFxXCojrZBu0HwMHPdfZ/ODTFVp9xJaA0os5Nn/cGIzb
upKBAAkG8M7xgoz1nrkYNyJpDEiChe15py0g3wC1yLGNf9lFBUS8Ip7C4nRfq2l4
XaZTyN0zfSGDgUvUMce8FlGFnybIqC+EaayCtDIf4Ah6gh0vXIfDJzUP6i2Xk1ZA
9e9tCs9jZMarLzDLuH6jzPwnF9dYauPs0PhSkyxISZQOvbmulSFWTaPuvy19ws9i
SOqujILCG+Zn5sET3kyuPShByxC85Z3Esv389NYDk4bvjetyBfUSKx86yQCOh2x0
dO/viycqDCsmNrXSWMLZxYbiV/wyiP8TvpIa+uq6H0oHtNoJDq5A4szfovWViib5
dCCGtI7J7SYNW76KNQet9X8IEYOYPx9IExl9Q5wrTtqF92dXBgwb7KBE+QZ43ieo
yMOR19wziTRxQKsjVCakui5AEMdvtL7EPL9zOt+ttvAzAngwirXpHV2BSp2tPKw8
VrqqWzJ6Ymr8tTyUWt0Iq1fV
=3FGb
-----END PGP SIGNATURE-----