1910 : NetBSD sendmsg msg_controllen DoS
Printer | http://osvdb.org/1910 | Email This | Edit Vulnerability

Views This Week

2

Views All Time

48

Info

Last Modified

10 months ago

Percent Complete

100%

Disclosure

Jul 20, 2001

Discovery

Unknown

Dates

Exploit

Unknown

Solution

Unknown

Description

NetBSD contains a flaw that may allow a local denial of service. The issue is triggered when a malicious user sets the msg_controllen variable of the msghdr struct in the sendmsg function to a value that exceeds bounds, which will cause a page fault trap or kernel panic, and will result in loss of availability for the platform.

Classification

Location: Local Access Required
Attack Type: Denial of Service, Input Manipulation
Impact: Loss of Availability
Exploit: Exploit Unknown
Disclosure: OSVDB Verified

Technical

sendmsg(2) accepts a pointer to struct msghdr, which holds further
information for the call. The pointer to control information is passed
via msg_control, msg_controllen helds the length of the control
information. This is used to read the control information into kernel
space and put it in an mbuf for further processing. However, the kernel
attempts to allocate mbuf storage as specified in msg_controllen without
further checks. This behaviour can be abused to cause a kernel page
fault trap if the value is higher than INT_MAX, or to cause an 'out of
space in kmem_map' panic for lower values. The exact size to cause the
latter is port dependant, though INT_MAX is commonly enough to trigger
the panic.

Solution

Currently, there are no known workarounds or upgrades to correct this issue. However, NetBSD has released a patch to address this vulnerability.

Products

NetBSD Foundation, Inc.
Watch-list
NetBSD
Watch-list
1.3
1.3.1
1.3.2
1.3.3
1.4
1.4.1
1.4.2
1.4.3
1.5

References

Credit

  • Jaromir Dolecek - jdolecekBrand New Doo Doonetbsd.org -

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use