Bug 191698 - CVE-2006-0039 netfilter do_add_counters race
Summary: CVE-2006-0039 netfilter do_add_counters race
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=kernelsec,reported=...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-15 11:22 UTC by Marcel Holtmann
Modified: 2014-06-18 08:29 UTC (History)
4 users (show)

Fixed In Version: RHSA-2006-0689
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-05 19:17:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch from Kirill Korotaev with missing upstream fixes (818 bytes, patch)
2006-05-16 09:24 UTC, Marcel Holtmann
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0689 0 normal SHIPPED_LIVE Important: kernel security update 2006-10-05 04:00:00 UTC

Description Marcel Holtmann 2006-05-15 11:22:25 UTC
Solar Designer found a race condition in do_add_counters(). The beginning of
paddc is supposed to be the same as tmp which was sanity-checked above, but it
might not be the same in reality. In case the integer overflow and/or the race
condition are triggered, paddc->num_counters might not match the allocation size
for paddc. If the check below (t->private->number != paddc->num_counters)
nevertheless passes (perhaps this requires the race condition to be triggered),
IPT_ENTRY_ITERATE() would read kernel memory beyond the allocation size,
potentially leaking sensitive data (e.g., passwords from host system or from
another VPS) via counter increments.

Comment 2 Marcel Holtmann 2006-05-16 09:01:46 UTC
For IPv4 it has beend fixed upstream with the 32bit netfilters compat patch:

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2722971cbe831117686039d5c334f2c0f560be13


Comment 3 Marcel Holtmann 2006-05-16 09:24:01 UTC
Created attachment 129163 [details]
Patch from Kirill Korotaev with missing upstream fixes

Comment 4 Marcel Holtmann 2006-05-16 09:55:08 UTC
It is also important to note that CAP_NET_ADMIN is needed to exploit this issue.


Comment 8 Jason Baron 2006-09-26 14:45:20 UTC
committed in stream E5 build 42.0.3

Comment 9 RHEL Program Management 2006-09-27 22:40:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 11 Jason Baron 2006-09-28 15:49:48 UTC
committed in stream U5 build 42.14. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/


Comment 12 Jay Turner 2006-10-03 13:40:10 UTC
QE ack for 4.5.

Comment 14 Red Hat Bugzilla 2006-10-05 19:17:43 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-0689.html



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