Remote code execution and denial of service in NetBSD



Published: 2018-02-12 | Updated: 2018-03-09
Risk Critical
Patch available YES
Number of vulnerabilities 2
CVE-ID N/A
CWE-ID CWE-119
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
NetBSD
Operating systems & Components / Operating system

Vendor NetBSD Foundation, Inc

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Improper input validation

EUVDB-ID: #VU10458

Risk: Medium

CVSSv3.1: 7.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-119 - Memory corruption

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due input validation error when parsing IPv6-AH IPsec packets within the "src/sys/netipsec/xform_ah.c" file. A remote attacker can create a specially crafted IPv6-AH packet with a suboption of length zero and trigger kernel panic. Additionally, the attacker can trigger buffer overflow and write zeros beyond the buffer bounds, containing the packet.

Successful exploitation of the vulnerability may allow an attacker to perform denial of service (DoS) attack against vulnerable system.

Mitigation

Install update from vendor's repository.

Vulnerable software versions

NetBSD: 6.0 - 7.1.1

External links

http://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2018-003.txt.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Memory corruption

EUVDB-ID: #VU10459

Risk: Critical

CVSSv3.1: 8.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-119 - Memory corruption

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing IPv6 packets within "src/sys/netinet6/frag6.c" file. A remote unauthenticated attacker can send a series of specially crafted IPv6 packets, trigger memory corruption and cause denial of service conditions or execute arbitrary code on the target system.

Successful exploitation of this vulnerability may allow an attacker to remotely execute arbitrary code on the vulnerable system with kernel privileges.

This is a highly critical vulnerability, since IPv6 support is enabled by default in NetBSD.

Mitigation

Install update from vendor's repository.

Vulnerable software versions

NetBSD: 6.0 - 7.1.1

External links

http://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2018-004.txt.asc


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###