-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

=============================================================================
FreeBSD-SA-26:84.vmm                                        Security Advisory
                                                          The FreeBSD Project

Topic:          bhyve guests can panic the host on Intel CPUs

Category:       core
Module:         vmm
Announced:      2026-11-17
Credits:        Hayzam Sherif under the sponsorship of
                Alchemilla Ventures Private Limited
Affects:        All supported versions of FreeBSD.
Corrected:      2026-11-17 17:06:03 UTC (stable/15, 15.2-STABLE)
                2026-11-17 17:08:19 UTC (releng/15.1, 15.1-RELEASE-p7)
                2026-11-17 17:02:49 UTC (stable/14, 14.5-STABLE)
                2026-11-17 17:05:11 UTC (releng/14.5, 14.5-RELEASE-p4)
                2026-11-17 17:04:13 UTC (releng/14.4, 14.4-RELEASE-p13)
CVE Name:       CVE-2026-101319

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

bhyve(8) is a hypervisor that runs guest operating systems inside a
virtual machine.  Its kernel component, vmm(4), emulates guest accesses
to certain model-specific registers (MSRs).  On Intel CPUs, vmm(4) loads
the guest's value of the IA32_TSC_AUX MSR, which the RDTSCP and RDPID
instructions return, into the physical MSR before entering the guest.

II.  Problem Description

vmm(4) did not reject guest writes to IA32_TSC_AUX which set the MSR's
reserved upper 32 bits.  Loading such a value into the physical MSR
raises a general protection fault in the host kernel.

III. Impact

Malicious, privileged software running in a guest can cause the host to
panic, resulting in a Denial of Service (DoS) for the host and all of its
guests.

IV.  Workaround

No workaround is available.  Only systems with Intel CPUs which run
bhyve(8) guests are affected.

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:84/vmm.patch
# fetch https://security.FreeBSD.org/patches/SA-26:84/vmm.patch.asc
# gpg --verify vmm.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/                              d754bb7691a7    stable/15-n286874
releng/15.1/                            efbb161327ff  releng/15.1-n283677
stable/14/                              aa2389453a9c    stable/14-n275578
releng/14.5/                            198357a7298a  releng/14.5-n274913
releng/14.4/                            4d152e66a764  releng/14.4-n273813
- -------------------------------------------------------------------------

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-101319>

The latest revision of this advisory is available at
<URL:https://security.FreeBSD.org/advisories/FreeBSD-SA-26:84.vmm.asc>
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmr82kgbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvpPcP/0m80LwYU/TQHBl41WBR
Lg8d0u4lTJ4P4TNzgiVVWhSoReVWIk41V0LW6dA+MDYIMWXWO2VIO9iRVpXKqpvJ
oygjQIsAS9xaD5tKJpbfQTlVmwANvinsBKzvBSMyu06/DsIzTtXPXrbFYohW/RMc
UtDfT5hGrZ570ySZKy7FZJoZp94NlRxtmXjwS49cYXDOy61vbPwAzKH7kbQcN2oA
qIdz+BDcVEDpCDq/bHqTc+7NFQoFCURQQbW4HyDqWs3Os1K5x7S/BkxtYPKWsKcA
/5pJFPJdSMCdAyngIZcOsORJ5IZdn+0t3RHCGcpRoDQS7xL+qBri3w17AzwUmycJ
m1t9d97kDi5VNKsrgN9CMKxKvWgmR41WGe8NdggMGnBjeIwD0uBKOf3zgx1CIJQJ
nxDj6I/Yj5vTPxAzS26weAB7cJneDsTGX1YH3h+CKbInfc9A/zop1IVs1jGf7hPs
CG9YuC3hCPg6cbt49c1VForYVXYpvY+6aSMJcBKKz6+dTDCn9IwcVTBOEbuYYQnN
zIhr5byT4P8EfAyOFmHtyZW+9MoskjlXRpyLb8pC8ICEyiazuFA5SNfpPginTI7h
P2s1BDgQpC3zDFQarkkE2PAFOd1iT1OxBZKrVoZiPworhCOcpfr2y8Mb5DeW1B/G
EWaLPD0gYSXY14/r/RRnyXSN
=eZPM
-----END PGP SIGNATURE-----