Article View: muc.lists.freebsd.announce
Article #41FreeBSD Security Advisory FreeBSD-SA-26:100.unix
From: FreeBSD Security Advisories
Date: Wed, 02 Dec 2026 22:32
Date: Wed, 02 Dec 2026 22:32
153 lines
7649 bytes
7649 bytes
-----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 <URL:https://security.FreeBSD.org/>.
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
<URL:https://www.FreeBSD.org/handbook/kernelconfig.html> 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 <commit hash>
Or visit the following URL, replacing NNNNNN with the hash:
<URL:https://cgit.freebsd.org/src/commit/?id=NNNNNN>
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
<URL:https://www.cve.org/CVERecord?id=CVE-2026-127759>
The latest revision of this advisory is available at
<URL:https://security.FreeBSD.org/advisories/FreeBSD-SA-26:100.unix.asc>
-----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-----
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<20261202223242.5A515B27B@freefall.freebsd.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: FreeBSD Security Advisories <security-advisories@freebsd.org> Newsgroups: muc.lists.freebsd.announce Subject: FreeBSD Security Advisory FreeBSD-SA-26:100.unix Date: Wed, 02 Dec 2026 22:32:42 +0000 (UTC) Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <20261202223242.5A515B27B@freefall.freebsd.org> Reply-To: freebsd-security@freebsd.org Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="48960"; mail-complaints-to="news-admin@muc.de" X-Original-To: freebsd-announce@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1796250762; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=nZwgCQS6nMBoYzEVmMZV+lSZDjTopdAcJENsMJslx5w=; b=tTfzsAHGYgLnm1ezaIaTUEttLEgWoDh/9VSMGzhcWtkwcEpaxr0O1WXUzGFIyd7Sdel42c lXh9k64cQRvc0wk59nd3CldcAl4sY0nq0F6JoOpBinC1FIllxySQlOn60Hy0sgPAUw53Td PlXC9UOWrK6kY21QbYNM/YmBtU/PLVL8/4BuHQqBjwEndX4FIapGkVhJdoPb7esoGOalRY LlmuJNYcsVh5yZ6Uzwa/IQcQE+66cHZqvAnYofim9llM3P7wAad8odSRjrC1JU6IR/Xw14 6DFFL9Kx/GIC4F8eB688tRVe/yLjF+agTRtLhbBn5k9bWzmwkUzevb6K8YWifg== Precedence: bulk X-BeenThere: freebsd-announce@freebsd.org Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes