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

FreeBSD -- Local privilege escalation via netlink heap buffer overflow

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 baab8eb5-e310-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

When a reply message outgrew its buffer, _nlmsg_refill_buffer() allocated a larger one and copied the partially written message into it. The new buffer was sized for the data being added but not for the part of the message already written, so the kernel could write past its end.

Impact:

An unprivileged local user, including one in a jail, can overflow a kernel heap buffer, potentially escalating privileges and gaining full control of the affected system.

References

CVE Name CVE-2026-127747
FreeBSD Advisory SA-26:77.netlink