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

FreeBSD -- Use-after-free in unix SOCK_STREAM message handling

Affected packages
15.1 <= FreeBSD-kernel < 15.1_3
15.0 <= FreeBSD-kernel < 15.0_13

Details

VuXML ID e99e4b19-a0fd-11f1-ae1f-bc241121aa0a
Discovery 2026-08-25
Entry 2026-08-26

Problem Description:

The SOCK_STREAM receive path in the unix socket implementation failed to fully detach control messages from the socket buffer before processing them. Some error paths would free those messages, leaving freed data mbufs in the receive socket buffer.

Impact:

An unprivileged local user can exploit this use-after-free to escalate privileges.

References

CVE Name CVE-2026-58090
FreeBSD Advisory SA-26:57.unix