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

FreeBSD -- Multiple vulnerabilities in bsnmpd(1)

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

Problem Description:

bsnmpd(1) skips USM authentication and VACM checks for SNMPv3 discovery requests, which should elicit only a Report. However, it executed any variable bindings carried by a discovery request, so GET and SET requests could be processed without authentication or access control. This was possible even when the USM and VACM modules were not loaded, as in the default configuration. Related flaws allowed a client to mark an ordinary request as a discovery request, or to use a discovery request to read the agent's USM and VACM configuration. (CVE-2026-127742)

The VACM module did not reject vacmViewTreeFamilyMask values longer than 16 bytes, resulting in a heap buffer overflow. (CVE-2026-127743)

Impact:

An unauthenticated remote attacker able to send SNMPv3 messages to bsnmpd(1) can read and modify any object managed by the agent, including objects which reconfigure the agent itself. Where the VACM module is loaded, the attacker can also trigger the heap overflow in bsnmpd(1), which runs as root, potentially leading to remote code execution.

References

CVE Name CVE-2026-127742
CVE Name CVE-2026-127743
FreeBSD Advisory SA-26:89.bsnmp