-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-26:85.kqueue Security Advisory The FreeBSD Project Topic: Multiple vulnerabilities in kevent(2) Category: core Module: kqueue Announced: 2026-11-17 Credits: OpenAI Security Research Team Credits: Dennys Kaluzny Pereira Affects: All supported versions of FreeBSD. Corrected: 2026-11-17 17:06:05 UTC (stable/15, 15.2-STABLE) 2026-11-17 17:08:22 UTC (releng/15.1, 15.1-RELEASE-p7) 2026-11-17 17:02:50 UTC (stable/14, 14.5-STABLE) 2026-11-17 17:05:13 UTC (releng/14.5, 14.5-RELEASE-p4) 2026-11-17 17:04:14 UTC (releng/14.4, 14.4-RELEASE-p13) CVE Name: CVE-2026-101320, CVE-2026-127750 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background The kqueue(2) and kevent(2) system calls provide a generic mechanism for notifying a process of kernel events, such as file descriptor activity, signals and timer expirations. On FreeBSD 15 and later, a kqueue created by kqueuex(2) with the KQUEUE_CPONFORK flag is copied, along with its registered events, into the child process by fork(2). II. Problem Description When an EVFILT_TIMER event was removed, the kernel failed to wait for a concurrently firing timer callback if the owning process had been stopped and continued by signals. The callback could then run after the event's memory was freed. (CVE-2026-101320) When copying a KQUEUE_CPONFORK kqueue during fork(2), the kernel temporarily dropped the kqueue lock while iterating over its lists of events. If another thread registered an event in the meantime, the array holding these lists could be reallocated, and the copy loop would then modify the freed array. This bug does not affect FreeBSD 14. (CVE-2026-127750) III. Impact An unprivileged local user can exploit the EVFILT_TIMER race to obtain superuser privileges. The KQUEUE_CPONFORK race also corrupts kernel memory and may likewise be exploitable. 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. [FreeBSD 15.x] # fetch https://security.FreeBSD.org/patches/SA-26:85/kqueue-15.patch # fetch https://security.FreeBSD.org/patches/SA-26:85/kqueue-15.patch.asc # gpg --verify kqueue-15.patch.asc [FreeBSD 14.x] # fetch https://security.FreeBSD.org/patches/SA-26:85/kqueue-14.patch # fetch https://security.FreeBSD.org/patches/SA-26:85/kqueue-14.patch.asc # gpg --verify kqueue-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 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/ ac7d692a4455 stable/15-n286876 releng/15.1/ 701478cfd697 releng/15.1-n283679 stable/14/ 65b1a6ca6095 stable/14-n275579 releng/14.5/ 6afa595f1f16 releng/14.5-n274914 releng/14.4/ 9823ecaea3c0 releng/14.4-n273814 - ------------------------------------------------------------------------- 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----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmr82kobFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvnZcQAI4PE9BuPdQ+kI5nX3Vq 2gwFT/nTV1KFd4JDGAl1LMG2n7WSCxlcSsJd4K2ed6OwjMXF3pRnEGCW37lb+jeh ZT+ZoTYeSKtps/gaCfBZnT+lvcySafAfMEv5HalGz0Z93EQufgHDy1hWrO+9ry8p ABvAbKNIiSHB2Nw6eK0D8ZOLPWDXMEzzchx61w8sWr3G7UObrfpJma4bGhbToeLo vcbpic4MgWdkEUbyTPhrsaVTpAf9MgeHAjKoExGaS8GDKR+AbdLQIZN9L+GqwvIN B1EDF9sF/W59lYcsydu/LoutwY0dS/eIkZvDdOYX68YqjZZ5D3HiipNEMX4yyiFw hkUkCpzuKW448Q+roHOb8++fXLCif+lmoBPQNONc3ycm4RrI0tiCLsIzU+xgO+RU 52M61j6zAFOnlfJJNEoLIynQGdgePbrmr1WuO7RLCp8GhBWQXufDOfU+Z38G7yP3 90O+Jb9QmB2M5ia+MiJl9xMCtXLcu7tw+2e88Di/TOu1TqZch08kkEdusHSGGQw+ NU3F4zFyLsK3DWY+Lx/EVI8jsngMiAFIar0mvqmuXCIzQZmJMCH6TvWu7KOQUZJZ 5OV2JXCWYSTuYlDNEuUZj1dr+66PIR1h/k683Am7Ivjb2bXcB+a0/ULcF5+M/iOn veyXpnfk9krbXZPEcRsorMEs =18Ag -----END PGP SIGNATURE-----