FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Privilege escalation via compat32 recvmsg(2) control messages

Affected packages
15.1 <= FreeBSD-kernel < 15.1_7
14.5 <= FreeBSD-kernel < 14.5_4
14.4 <= FreeBSD-kernel < 14.4_13

Details

VuXML ID 707d112d-e312-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

When copying received control messages out to a 32-bit process, compat32 temporarily modified the length field of each message header in place. When a large control message was read with the MSG_PEEK flag, its storage remained shared with the socket buffer, so this modification could race with concurrent operations on the same socket and corrupt the socket's queue of messages.

Impact:

An unprivileged local user can exploit the resulting memory corruption to escalate privileges.

References

CVE Name CVE-2026-101321
FreeBSD Advisory SA-26:86.freebsd32