FreeBSD : glibc -- getaddrinfo stack-based buffer overflow (2dd7e97e-d5e8-11e5-bcbd-bc5ff45d0f28)

Critical Nessus Plugin ID 88817

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

Fabio Olive Leite reports :

A stack-based buffer overflow was found in libresolv when invoked from nss_dns, allowing specially crafted DNS responses to seize control of EIP in the DNS client. The buffer overflow occurs in the functions send_dg (send datagram) and send_vc (send TCP) for the NSS module libnss_dns.so.2 when calling getaddrinfo with AF_UNSPEC family, or in some cases AF_INET6 family. The use of AF_UNSPEC (or AF_INET6 in some cases) triggers the low-level resolver code to send out two parallel queries for A and AAAA. A mismanagement of the buffers used for those queries could result in the response of a query writing beyond the alloca allocated buffer created by __res_nquery.

Solution

Update the affected packages.

See Also

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207272

https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2015-7547

https://blog.des.no/2016/02/freebsd-and-cve-2015-7547/

http://www.nessus.org/u?94dd3376

https://sourceware.org/ml/libc-alpha/2016-02/msg00416.html

http://www.nessus.org/u?7a76ef5e

https://www.tenable.com/security/research/tra-2017-08

Plugin Details

Severity: Critical

ID: 88817

File Name: freebsd_pkg_2dd7e97ed5e811e5bcbdbc5ff45d0f28.nasl

Version: 2.13

Type: local

Published: 2016/02/18

Updated: 2019/04/11

Dependencies: 12634

Risk Information

Risk Factor: Critical

CVSS v2.0

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

CVSS v3.0

Base Score: 8.1

Temporal Score: 7.3

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:linux_base-c6, p-cpe:/a:freebsd:freebsd:linux_base-c6_64, p-cpe:/a:freebsd:freebsd:linux_base-f10, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2016/02/18

Vulnerability Publication Date: 2016/02/16

Reference Information

CVE: CVE-2015-7547

TRA: TRA-2017-08

IAVA: 2016-A-0053