Bug 186244 - 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 3
Classification: Red Hat
Component: kernel
Version: 3.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: RHEL3U8CanFix
TreeView+ depends on / blocked
 
Reported: 2006-03-22 14:50 UTC by Marcel Holtmann
Modified: 2014-06-18 08:28 UTC (History)
5 users (show)

Fixed In Version: RHSA-2006-0437
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-20 13:59:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0437 0 normal SHIPPED_LIVE Important: Updated kernel packages for Red Hat Enterprise Linux 3 Update 8 2006-07-20 13:11:00 UTC

Description Marcel Holtmann 2006-03-22 14:50:48 UTC
+++ This bug was initially created as a clone of Bug #186242 +++

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

A patch has been included in Marcelo's 2.4 tree:

http://www.kernel.org/git/?p=linux/kernel/git/marcelo/linux-2.4.git;a=commit;h=09d3b3dcfa80c9094f1748c1be064b9326c9ef2b

Comment 2 Ernie Petrides 2006-03-27 22:38:16 UTC
Hi, Marcel.  Since RHEL-3 was only missing the memset() in getorigdst(),
which is the 2nd patch hunk of the upstream commit, I'd guess that only
one of the two CVE names are relevant.  Could you please update this bug's
subject line accordingly so that I'll know which one to list in the U8 advisory?

Thanks in advance.  -ernie


Comment 3 Ernie Petrides 2006-03-28 01:24:23 UTC
A fix for this problem has just been committed to the RHEL3 U8
patch pool this evening (in kernel version 2.4.21-40.5.EL).


Comment 4 Ernie Petrides 2006-04-28 21:51:15 UTC
Adding a couple dozen bugs to CanFix list so I can complete the stupid advisory.

Comment 7 Red Hat Bugzilla 2006-07-20 13:59:31 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-0437.html



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