Out-of-bounds write in Net-snmp - CVE-2022-24805

 

Out-of-bounds write in Net-snmp - CVE-2022-24805

Published: July 21, 2022


Vulnerability identifier: #VU65671
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-24805
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when handling INDEX of NET-SNMP-VACM-MIB. A remote attacker can trick the victim into loading a specially crafted MIB collection, trigger an out-of-bounds write and execute arbitrary code on the target system.


Affected software

Net-snmp
Juniper Junos Space
Debian Linux
Gentoo Linux
Oracle Linux
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Ubuntu
Slackware Linux
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
openEuler
Junos OS
Junos OS Evolved
Fedora
Oracle Solaris
RecoverPoint for Virtual Machines
Citrix XenServer
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
SUSE Linux Enterprise Module for Packagehub Subpackages
snmp (Ubuntu package)
libsnmp30 (Ubuntu package)
snmpd (Ubuntu package)
libsnmp-perl (Ubuntu package)
libsnmp35 (Ubuntu package)
net-snmp (Debian package)
libsnmp40 (Ubuntu package)
net-snmp (Red Hat package)
net-analyzer/net-snmp
net-snmp
net-snmp-devel
perl-SNMP-debuginfo
net-snmp-debuginfo
net-snmp-debugsource
perl-SNMP
python2-net-snmp-debuginfo
python2-net-snmp
libsnmp40-32bit-debuginfo
libsnmp40-32bit
libsnmp40-debuginfo
libsnmp40
net-snmp-devel-32bit
snmp-mibs
python3-net-snmp-debuginfo
python3-net-snmp
net-snmp-gui
net-snmp-libs
net-snmp-perl
net-snmp-help
Citrix Hypervisor
Tanzu Greenplum for Kubernetes
Enterprise SONiC
Red Hat OpenShift Container Platform

How to mitigate CVE-2022-24805

Install updates from vendor's website.

Net-snmp - update to 5.9.2
RecoverPoint for Virtual Machines - update to 6.0 SP2 P1
Junos OS - addressed in versions 23.2R2-S6, 23.4R2-S7, 24.2R2-S4, 24.4R2-S3, 25.2R1-S2, 25.2R2, 25.4R1
Junos OS Evolved - addressed in versions 23.2R2-S6-EVO, 23.4R2-S8-EVO
Juniper Junos Space - update to 24.1R2
snmp (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 5.7.3+dfsg-1.8ubuntu3.7, 5.8+dfsg-2ubuntu2.4, 5.9.1+dfsg-1ubuntu2.2
libsnmp30 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 5.7.3+dfsg-1.8ubuntu3.7
snmpd (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 5.7.3+dfsg-1.8ubuntu3.7, 5.8+dfsg-2ubuntu2.4, 5.9.1+dfsg-1ubuntu2.2
Citrix Hypervisor - update to XS82ECU1077
Tanzu Greenplum for Kubernetes - update to 1.4.0
Enterprise SONiC - update to 4.1.4
Red Hat OpenShift Container Platform - addressed in versions 4.15.37, 4.16.16, 4.17.1
libsnmp-perl (Ubuntu package) - addressed in versions 5.7.3+dfsg-1.8ubuntu3.7, 5.8+dfsg-2ubuntu2.4, 5.9.1+dfsg-1ubuntu2.2
libsnmp35 (Ubuntu package) - update to 5.8+dfsg-2ubuntu2.4
net-snmp (Debian package) - update to 5.9+dfsg-4+deb11u1
libsnmp40 (Ubuntu package) - update to 5.9.1+dfsg-1ubuntu2.2
net-snmp (Red Hat package) - addressed in versions 5.9.1-11.el9_2.2, 5.9.1-13.el9_4.3
net-analyzer/net-snmp - update to 5.9.2
net-snmp - update to 5.9.3-1.fc36
net-snmp-devel - update to 5.9.3-150300.15.3.1
net-snmp - update to 5.9.3-150300.15.3.1
perl-SNMP-debuginfo - update to 5.9.3-150300.15.3.1
net-snmp-debuginfo - update to 5.9.3-150300.15.3.1
net-snmp-debugsource - update to 5.9.3-150300.15.3.1
perl-SNMP - update to 5.9.3-150300.15.3.1
python2-net-snmp-debuginfo - update to 5.9.3-150300.15.3.1
python2-net-snmp - update to 5.9.3-150300.15.3.1
libsnmp40-32bit-debuginfo - update to 5.9.3-150300.15.3.1
libsnmp40-32bit - update to 5.9.3-150300.15.3.1
libsnmp40-debuginfo - update to 5.9.3-150300.15.3.1
libsnmp40 - update to 5.9.3-150300.15.3.1
net-snmp-devel-32bit - update to 5.9.3-150300.15.3.1
snmp-mibs - update to 5.9.3-150300.15.3.1
python3-net-snmp-debuginfo - update to 5.9.3-150300.15.3.1
python3-net-snmp - update to 5.9.3-150300.15.3.1
net-snmp-debugsource - update to 5.9-6
net-snmp-devel - update to 5.9-6
net-snmp-gui - update to 5.9-6
net-snmp-libs - update to 5.9-6
python3-net-snmp - update to 5.9-6
net-snmp-perl - update to 5.9-6
net-snmp-debuginfo - update to 5.9-6
net-snmp - update to 5.9-6
net-snmp-help - update to 5.9-6
Oracle Solaris - update to 11.4 SRU 77

External References

Related Security Bulletins