Article View: muc.lists.freebsd.announce
Article #45FreeBSD Security Advisory FreeBSD-SA-26:104.proc
From: FreeBSD Security Advisories
Date: Wed, 02 Dec 2026 22:33
Date: Wed, 02 Dec 2026 22:33
163 lines
8110 bytes
8110 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
=============================================================================
FreeBSD-SA-26:104.proc Security Advisory
The FreeBSD Project
Topic: Use-after-free via process generation counter wraparound
Category: core
Module: proc
Announced: 2026-12-02
Credits: OpenAI Security Research Team
Affects: All supported versions of FreeBSD.
Corrected: 2026-12-02 19:25:59 UTC (stable/15, 15.2-STABLE)
2026-12-02 19:27:38 UTC (releng/15.2, 15.2-RC1-p1)
2026-12-02 19:26:35 UTC (releng/15.1, 15.1-RELEASE-p8)
2026-12-02 19:28:23 UTC (stable/14, 14.5-STABLE)
2026-12-02 19:29:24 UTC (releng/14.5, 14.5-RELEASE-p5)
2026-12-02 19:28:55 UTC (releng/14.4, 14.4-RELEASE-p14)
CVE Name: CVE-2026-127763
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
Each thread caches references to its process's credentials and resource
limits, along with the value of a per-process generation counter. The
kernel increments the counter whenever the credentials or limits change,
and a thread with an outdated value refreshes its references on its next
entry into the kernel.
II. Problem Description
The generation counter could wrap around. A thread sleeping in the
kernel could retain an old counter value indefinitely, so after a
wraparound its stale value could appear current. setrlimit(2) relied on
this comparison to decide which references to release, and could free a
set of resource limits 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. They must be applied after the patches from
FreeBSD-SA-26:101.setrlimit.
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:104/proc-15.patch
# fetch https://security.FreeBSD.org/patches/SA-26:104/proc-15.patch.asc
# gpg --verify proc-15.patch.asc
[FreeBSD 14.x]
# fetch https://security.FreeBSD.org/patches/SA-26:104/proc-14.patch
# fetch https://security.FreeBSD.org/patches/SA-26:104/proc-14.patch.asc
# gpg --verify proc-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
<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/ 2f060981c93a stable/15-n287083
releng/15.2/ 158254e89de9 releng/15.2-n286790
releng/15.1/ 57ff4f4534a4 releng/15.1-n283713
stable/14/ 1505f7f3794e stable/14-n275709
releng/14.5/ 1b706a104da5 releng/14.5-n274945
releng/14.4/ 5d81e210431a releng/14.4-n273846
- -------------------------------------------------------------------------
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-127763>
The latest revision of this advisory is available at
<URL:https://security.FreeBSD.org/advisories/FreeBSD-SA-26:104.proc.asc>
-----BEGIN PGP SIGNATURE-----
iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmsQj2MbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvK8wP/3QIeuyi/Ib3azyvpJP2
KgW71z1VuhMNwmaAlOjvRhIYSVjw37dBnq1JiuTBTXYpMrw/+f/Qow1Qx0ejuxIb
OkvRtFtk8RFLpjelqm16Q3OvdvxvT2DgPWRizEYrgjZw3lOSM6H2QS223YpW5nwQ
gIPkhcaGORlZiGdG74+JqiWNba/Q8BtxyU/Wzi07JLmrD04MZZZ+gS0IwZTUwNOU
1dgPZuHux2dJ7n0nPFcQfz/1PoLrVhlEy6pz5YsEBRsFp8Aj6/cktQPpRwscYJAz
pS4fwtvQ+2NJRwo8KOIC7ckF8zUmyo5rsUWoGNNp6WTXzEa9e4kx49eT0ABQQ4yH
3CohNz/XrT7W1yqO5M2e5SYQqQO/H7GpSHQx1dLAL49Pxdqh0oK1qPtpeasiP2OS
uhpPafxkEm5OjzWlqDf334u0D1WYjI98/9jajQHNMl0CvOiQZIjVGc637FkIzDcl
vXDbGhX2oUh2cMscIEEfHqXyR7+mgKbaiOpov+QinyT4SElTQGCNGLEWdtP/GXk8
WBiDlPZpBZkokmKxgxmgtUm6ZlFKxyOb7YsCzjIlfeyZdkEpNV/Kvo773T0at144
Go4Z+Sz8aeLcWRwxZHCHPecT8Vrb4Qt60GeRZhr8a2om7vv7l0m68DenMDN8icd9
64Np5n/HRAJ02y8fdQx3Vt0B
=dVDf
-----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:
<20261202223312.91995B445@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!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!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:104.proc Date: Wed, 02 Dec 2026 22:33:12 +0000 (UTC) Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <20261202223312.91995B445@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="67917"; 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=1796250792; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=SyhjmMegAV2W2PbqpsyYYIHUwqHHxpspYOtpNTfEMFk=; b=ypVcItyZbYlDhlny9EEciYvj0q3NvEm5jrrudk1v0u/L6snNw51dJyuhKntQ8qgrExaGQz LdWqrnNiQckatjcmSLRW76CsOikyrXG7q7Aw5OtVVUhssioZ8D9GcG0If1c2o/3AnZteO0 KsqxhowVu9V4ItZGYqRKfOhgvQnfuBBIYui+rRYv90ctzdNtPyrclS9E5biHplEf/f5Q2l 8PwL4HuQZIriMYv31cJdRwE9CDiyyLeQ/SLawdpgHBU7m20+/2AKoYQc+9/YgvLI22J4lc 9oRqTMbVDULh6b+vdG9PaTmWYSaB2518idDoSj6Tpyz4GUQ5ROifMl5rrkHf1Q== Precedence: bulk X-BeenThere: freebsd-announce@freebsd.org Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes