-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-26:102.socket Security Advisory The FreeBSD Project Topic: Privilege escalation via listen(2) race on TCP sockets Category: core Module: socket Announced: 2026-12-02 Credits: Laam Alif at Ibteda Digital Library Credits: OpenAI Security Research Team Affects: All supported versions of FreeBSD. Corrected: 2026-12-02 19:25:57 UTC (stable/15, 15.2-STABLE) 2026-12-02 19:27:36 UTC (releng/15.2, 15.2-RC1-p1) 2026-12-02 19:26:33 UTC (releng/15.1, 15.1-RELEASE-p8) 2026-12-02 19:28:24 UTC (stable/14, 14.5-STABLE) 2026-12-02 19:29:22 UTC (releng/14.5, 14.5-RELEASE-p5) 2026-12-02 19:28:53 UTC (releng/14.4, 14.4-RELEASE-p14) CVE Name: CVE-2026-127762 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background A connection-oriented socket, such as a TCP 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 listen(2) permitted a socket to become a listening socket after it had been disconnected. However, TCP may continue to operate on a socket's data buffers for some time after marking it disconnected, for example while handling shutdown(2). A concurrent call to listen(2) could thus cause TCP 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:102/socket.patch # fetch https://security.FreeBSD.org/patches/SA-26:102/socket.patch.asc # gpg --verify socket.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/ 4e0671285fae stable/15-n287081 releng/15.2/ 4db4ec218b69 releng/15.2-n286788 releng/15.1/ 8a21dc077da9 releng/15.1-n283711 stable/14/ dbd0f4a71210 stable/14-n275710 releng/14.5/ 8e099865681a releng/14.5-n274943 releng/14.4/ a663b1b3cb70 releng/14.4-n273844 - ------------------------------------------------------------------------- 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----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmsQj1wbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvv8kP/2lmLjYpUlLrIUqloAbO qPnJVYEAGfTZLTqDBGpRSOyIRTHOYGhtRQteBAIZw7Tz//T4/WzVy+yUFDe+LjzT S+7vezsHoLwgPVPOtWRVEYLffN4p6wzADWIsQ5stBM//LmzLGxmM/QpJhvC+a+Af ALC88u1Uf/Z0D7revz1sAXEUt/pDnW2+Sj5lyndyjKC0iOMbqCLXHa/vqzY5PUTp cOmCXzva3LGUTvEjnzTfuAJdx5Ve0vARdShUDT90+sbD9Ucv9UMafEr+jEEBNtLV rHO4C3aLmB1fcRMQlg/FAB+H0xcz/4cE1p7MmRgeihcaQQAh1UWlFUCh3PcleLxb 81KUjtmV65hyTApEG47YplA4P0qtjLNEa+Kk6fE6QtnviDyK6Iwn+RxvN6w3ayEd 6R4b1H08AEaWTKgfP243nFpSNtJT8p4xt+ghWNoNAah+kkX0eTYNq/sD62CddKIM mAmqoBV6DyBmWGAl1LTAl0If53xYnF0IyGc4s4Q6QNgfAA6OKcqo86dFRYuHpkaf zsYK9xaWNDVxMq9wK0tz+Ncsl8f35yc2Z6Hteqay6KnZtz3Ct3r+hO8B5kFgMe0U D983fPhN6Y4WefUKSWZ/+46BJpLEcMwPudaJAxxOeYtf83BzhWlIjmnmuzY9jNC2 HNWORSh4drsMjZykHPiH5xn1 =8dZL -----END PGP SIGNATURE-----