Title: NetBSD SO_LINGER DIAGNOSTIC Checking Local Denial of Service Vulnerability
Severity: MODERATE
Description:
NetBSD supports configuring the kernel with a 'DIAGNOSTIC' directive. By enabling this directive, extra sanity checks are performed in order to aid in debugging. Enabling this directive in production settings is not recommended. A number of NetBSD platforms have 'DIAGNOSTIC' enabled by default.
NetBSD is susceptible to a local denial of service condition due to a kernel-level bug in the SO_LINGER diagnostics checking code. NetBSD versions 2.x are affected.
This issue only affects NetBSD kernels compiled with the 'DIAGNOSTIC' directive enabled.
This issue presents itself when 'setsockopt()' is called to set the 'SO_LINGER' option to a negative value. This causes 'KASSERT' to fail, resulting in a kernel panic. Passing a negative value is harmless on kernels without 'DIAGNOSTIC' being enabled, as the 'KASSERT' is not called, and the negative value is silently converted to a positive '1' value.
This issue allows local attackers to panic the kernel, denying further service to legitimate users.
Affected Products:
- NetBSD NetBSD 2.0.0
- NetBSD NetBSD 2.0.1
- NetBSD NetBSD 2.0.2
- NetBSD NetBSD 2.0.3
- NetBSD NetBSD 2.1.0
References:
- NetBSD: NetBSD Homepage
- NetBSD: NetBSD Security Page
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.