Article View: muc.lists.freebsd.announce
Article #39FreeBSD Security Advisory FreeBSD-SA-26:98.bsnmp
From: FreeBSD Security Advisories
Date: Wed, 02 Dec 2026 22:30
Date: Wed, 02 Dec 2026 22:30
162 lines
8220 bytes
8220 bytes
-----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 <URL:https://security.FreeBSD.org/>.
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 <URL:https://www.FreeBSD.org/handbook/makeworld.html>.
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 <commit hash>
Or visit the following URL, replacing NNNNNN with the hash:
<URL:https://cgit.freebsd.org/src/commit/?id=NNNNNN>
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
<URL:https://www.cve.org/CVERecord?id=CVE-2026-127756>
The latest revision of this advisory is available at
<URL:https://security.FreeBSD.org/advisories/FreeBSD-SA-26:98.bsnmp.asc>
-----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-----
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<20261202223010.461DCB34C@freefall.freebsd.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: FreeBSD Security Advisories <security-advisories@freebsd.org> Newsgroups: muc.lists.freebsd.announce Subject: FreeBSD Security Advisory FreeBSD-SA-26:98.bsnmp Date: Wed, 02 Dec 2026 22:30:10 +0000 (UTC) Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <20261202223010.461DCB34C@freefall.freebsd.org> Reply-To: freebsd-security@freebsd.org Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="42387"; mail-complaints-to="news-admin@muc.de" X-Original-To: freebsd-announce@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1796250610; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=LyxOPlAckOIPP6pEqAjBr/RCDWNJLGKTNy1Sn4OWnuI=; b=hOwqbrOJezYchMRCA6hiG4dm76eBq4KCkkRPS4Iob4/cDN/RKzRcNAwi+YSDoPUOfAOUgs Y3yACUkh6XOLgULGrRZgMAMi952MCB7zYOgZlCvsvXtnKxJcoCGkvXrQeg/4G4EVbqz592 rE9kDm90q2v1m7nzzBLfqsC9A3nedebCIgDo2PEaVKo8gykXawExiyNh3Q6WjCLIUkCIPG N8jPJxiFZcPJeA5rxf0sJAObArg8v8SzUsdGvTDs8MOEK0czOGzNLPFT1bmtwB2IEvOMXd 9+1EyfKSUKoU3qcgeae9YjoXsvzYali6B9LlG2QTKCNYo8OCXenCzLgOBVi4eA== Precedence: bulk X-BeenThere: freebsd-announce@freebsd.org Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes