🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.bsd.freebsd.announce
Article #47

FreeBSD Security Advisory FreeBSD-SA-26:104.proc

#47
From: FreeBSD Security Advisories
Date: Thu, 03 Dec 2026 00:00
159 lines
7151 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-----
Technical Details
Message-ID: <179625601445.13811.1178039963821371987@rincewind.trouble.is>
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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail

Show 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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: FreeBSD Security Advisories <security-advisories@freebsd.org>
Newsgroups: comp.unix.bsd.freebsd.announce
Subject: FreeBSD Security Advisory FreeBSD-SA-26:104.proc
Date: 3 Dec 2026 00:00:16 GMT
Lines: 159
Sender: Philip Paeps <philip@freebsd.org>
Approved: Philip Paeps <philip@trouble.is>
Message-ID: <179625601445.13811.1178039963821371987@rincewind.trouble.is>
X-Trace: individual.net Pv/yK+CR7C6ph/L/aZi6lgqPUdwUgUnjvcqFherFzlo0DpxEHK
Cancel-Lock: sha1:Uap2NOcGj0OfPpndX3ioBUx8Xt0= sha256:sI3TN64PqF56LltrxQOWi2HdU9e2OssiUoIAXdT/H0s=