Bug 166249 - CAN-2005-2490 sendmsg compat stack overflow
Summary: CAN-2005-2490 sendmsg compat stack overflow
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 4
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard: impact=important,reported=20050817,so...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-08-18 10:38 UTC by Mark J. Cox
Modified: 2015-01-04 22:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-26 22:02:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark J. Cox 2005-08-18 10:38:05 UTC
+++ This bug was initially created as a clone of Bug #166248 +++
See above bug for commentary and patch

Al Viro reported a flaw in sendmsg(). "When we copy 32bit ->msg_control contents
to kernel, we walk the same userland data twice without sanity checks on the
second pass.  Moreover, if original looks small enough, we end up copying to
on-stack array."

This is a kernel buffer overflow and therefore could lead to privilege escalation.

This affects 2.6 head, and from brief inspection the code in linux 2.6.9 is
similar and therefore RHEL4 is affected.

Marking as embargoed for now, needs reporting to vendor-sec and kernel@security
soon.

Comment 1 Mark J. Cox 2005-08-18 10:39:33 UTC
(also fc3)

Comment 2 Mark J. Cox 2005-08-31 09:43:23 UTC
Notified security, vendor-sec. 
Embargo set for one week, 20050907:12

Comment 3 Mark J. Cox 2005-09-08 09:33:00 UTC
Public 20050908, removing embargo


Note You need to log in before you can comment on or make changes to this bug.