-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-SA-26:98.bsnmp Security Advisory The FreeBSD Project Topic: Unauthenticated remote denial of service in bsnmpd(1) Category: core Module: bsnmp Announced: 2026-12-02 Credits: Hila Cohen, Apiiro Affects: All supported versions of FreeBSD. Corrected: 2026-11-30 19:50:13 UTC (stable/15, 15.2-STABLE) 2026-12-02 19:27:30 UTC (releng/15.2, 15.2-RC1-p1) 2026-12-02 19:26:28 UTC (releng/15.1, 15.1-RELEASE-p8) 2026-11-30 19:55:58 UTC (stable/14, 14.5-STABLE) 2026-12-02 19:29:18 UTC (releng/14.5, 14.5-RELEASE-p5) 2026-12-02 19:28:48 UTC (releng/14.4, 14.4-RELEASE-p14) CVE Name: CVE-2026-127756 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . I. Background bsnmpd(1) is a Simple Network Management Protocol (SNMP) agent which allows remote management stations to query and modify system information. Incoming messages are decoded by the bsnmplib(3) library. Access to managed objects may be restricted using the View-based Access Control Model (VACM), implemented by the loadable snmp_vacm(3) module. II. Problem Description When decoding a message carrying an SNMP version other than SNMPv1, SNMPv2c, or SNMPv3, bsnmplib(3) reported an encoding error rather than an unsupported version. bsnmpd(1) did not treat this error as fatal, so its unsupported version check was skipped and the message proceeded to access control. With the VACM module loaded, the access control code called abort(3) on encountering the unsupported version. III. Impact An unauthenticated remote attacker able to send a single UDP packet to bsnmpd(1) can cause the daemon to terminate, resulting in a Denial of Service (DoS). bsnmpd(1) is not restarted automatically. IV. Workaround Systems not running bsnmpd(1) with the snmp_vacm(3) module loaded are not affected. The VACM module is not loaded by default. On affected systems, restricting access to UDP port 161 to trusted management hosts limits exposure. V. Solution Upgrade your vulnerable system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date and restart bsnmpd(1). Perform one of the following: 1) To update your vulnerable system installed from base system packages: Systems running a 15.0-RELEASE or later version of FreeBSD on the amd64 or arm64 platforms, which were installed using base system packages, can be updated via the pkg(8) utility: # pkg upgrade -r FreeBSD-base # service bsnmpd restart 2) To update your vulnerable system installed from binary distribution sets: Systems running a RELEASE version of FreeBSD on the amd64 or arm64 platforms which were not installed using base system packages can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # service bsnmpd restart 3) To update your vulnerable system via a source code patch: The following patches have been verified to apply to the applicable FreeBSD release branches. a) Download the relevant patch from the location below, and verify the detached PGP signature using your PGP utility. # fetch https://security.FreeBSD.org/patches/SA-26:98/bsnmp.patch # fetch https://security.FreeBSD.org/patches/SA-26:98/bsnmp.patch.asc # gpg --verify bsnmp.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch -E -p0 < /path/to/patch c) Recompile the operating system using buildworld and installworld as described in . Restart the applicable daemons, or reboot the system. VI. Correction details This issue is corrected as of the corresponding Git commit hash in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/15/ 0f7a75e0c01f stable/15-n287047 releng/15.2/ d4bef20e0c9f releng/15.2-n286783 releng/15.1/ 79976e7abc15 releng/15.1-n283706 stable/14/ fe39df25d52f stable/14-n275696 releng/14.5/ 2ae3eb3bad28 releng/14.5-n274939 releng/14.4/ 2ac949c37264 releng/14.4-n273840 - ------------------------------------------------------------------------- Run the following command to see which files were modified by a particular commit: # git show --stat Or visit the following URL, replacing NNNNNN with the hash: To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run: # git rev-list --count --first-parent HEAD VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEEthUnfoEIffdcgYM7bljekB8AGu8FAmsQj24bFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEG5Y3pAfABrvqqUQAMZABkq/0Zzi9hTQYRWU VXHwMxrjGDpF3AN4I7L9h+rZtuGXAIl3L2QxnzGzeMLBVQDHPNNnETkhQcaAvRkL ZQf8sLL/omMh9Fm4l8lbIryCP8ac9/Vx4C4ec70Y6GU6cVpuZ5a90R0Ie6ZRLZD6 rCUqhPID2Byb8eHemim+ptd6AFUMu4AOOHmOdfnZwQ9hBg3okFG+HWcLZ7BWQOPd 0w9BQEWkoO1f9rcA3BKQexU5Eh4GlEfs6wKZ0N1lw9yUNIdK9hSjnhQezw7ET5B6 F1pMLnaV9eJgdyQUa0DvyaQmIRpyn9JppI1BcIadvyCKPJ2Wc/60k2JXaLKDXcka P0EJd1CYcrZL5EHuOjlOOrQqiOty5+0D976o3NvlyZJTT+huPdQpsbpKJLuWbfYQ V69iTQ1fcobYj9DIpgld79Iw7E9yq4nHHQaCFzR3SeOcZCogFsxi9NCcpaGFfwTW 6lYiOACDfom5kiDT8bsHZNf9PradhSbTQ4r9O0Vp8TzG79YY88WfOdUleUWBnICT /NvzM7qOMlU2VXB2RNWAcdlvxp1HKBeEEmyne9YpBHp54jk5E9DW0+iuln39YmO+ bsvWVfkVz1+OqzsDPhtG4RL5NgZC+Fd+lx2k3G5O0QnOzwG6OQCaz8JmJX725hre kAgxNMqlzRza+RMu/CgKYTBY =GeE1 -----END PGP SIGNATURE-----