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.