Out-of-bounds write in Unbound - CVE-2019-25035

 

Out-of-bounds write in Unbound - CVE-2019-25035

Published: May 10, 2021


Vulnerability identifier: #VU53024
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-25035
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 within the sldns_bget_token_par() function in sldns/parse.c. A remote attacker can send specially crafted data to the DNS server, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

Unbound
cflinuxfs3
unbound (Red Hat package)
unbound (Ubuntu package)
libunbound2 (Ubuntu package)
unbound-devel
unbound-debugsource
unbound-debuginfo
unbound-anchor-debuginfo
unbound-anchor
libunbound2-debuginfo
libunbound2
libunbound8 (Ubuntu package)
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
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 Server - TUS
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
Ubuntu
OpenShift Virtualization

How to mitigate CVE-2019-25035

Install updates from vendor's website.

Unbound - update to 1.9.5
cflinuxfs3 - update to 0.237.0
unbound (Red Hat package) - addressed in versions 1.7.3-12.el8_2, 1.7.3-15.el8
unbound (Ubuntu package) - addressed in versions 1.6.7-1ubuntu2.4, 1.9.4-2ubuntu1.2
libunbound2 (Ubuntu package) - update to 1.6.7-1ubuntu2.4
unbound-devel - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-debugsource - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-debuginfo - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-anchor-debuginfo - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-anchor - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
libunbound2-debuginfo - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
libunbound2 - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
libunbound8 (Ubuntu package) - update to 1.9.4-2ubuntu1.2
OpenShift Virtualization - addressed in versions 2.6.6, 4.8.0

External References

Related Security Bulletins