Bug 186242 - CVE-2006-1343 Small information leak in SO_ORIGINAL_DST
Summary: CVE-2006-1343 Small information leak in SO_ORIGINAL_DST
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Thomas Graf
QA Contact: Brian Brock
URL:
Whiteboard: impact=low,source=netdev,reported=200...
Depends On:
Blocks: 181409
TreeView+ depends on / blocked
 
Reported: 2006-03-22 14:48 UTC by Marcel Holtmann
Modified: 2014-06-18 08:28 UTC (History)
4 users (show)

Fixed In Version: RHSA-2006-0575
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 22:53:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Example code for showing the problem (1.66 KB, text/x-csrc)
2006-03-22 14:57 UTC, Marcel Holtmann
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0575 0 normal SHIPPED_LIVE Important: Updated kernel packages available for Red Hat Enterprise Linux 4 Update 4 2006-08-10 04:00:00 UTC

Description Marcel Holtmann 2006-03-22 14:48:37 UTC
It appears sockaddr_in.sin_zero is not zeroed during certain operations
returning IPv4 socket names, namely:

- getsockopt(...SO_ORIGINAL_DST...) (2.4 and 2.6)
  see getorigdst() in net/ipv4/netfilter/ip_conntrack_core.c
  (+ in net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c in 2.6?!)

- getsockname() and getpeername() (and accept()) (2.4 only)
  see inet_getname() in net/ipv4/af_inet.c

and several unitialized bytes of kernel stack (sizeof(sin_zero) == 6 to be
precise) leak to the userspace.

http://marc.theaimsgroup.com/?l=linux-netdev&m=114148078223594&w=2

Comment 1 Marcel Holtmann 2006-03-22 14:57:52 UTC
Created attachment 126477 [details]
Example code for showing the problem

Comment 4 Jason Baron 2006-04-07 01:53:51 UTC
committed in stream U4 build 34.14. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/


Comment 5 Bob Johnson 2006-04-11 16:07:59 UTC
This issue is on Red Hat Engineering's list of planned work items 
for the upcoming Red Hat Enterprise Linux 4.4 release.  Engineering 
resources have been assigned and barring unforeseen circumstances, Red 
Hat intends to include this item in the 4.4 release.

Comment 8 Mike Gahagan 2006-07-14 19:44:11 UTC
looks to be fixed in 40.1.EL, same results as in 2.1


[mgahagan@dhcp59-204 bz186242]$ ./bug 2345
data: 02 00 89 e1 ac 10 3b ce 00 00 00 00 00 00 00 00
data: 02 00 09 29 ac 10 3b cc 00 00 00 00 00 00 00 00
getsockname(as): Protocol not available


Comment 10 Red Hat Bugzilla 2006-08-10 22:53:04 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0575.html



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