Bug 191698 - CVE-2006-0039 netfilter do_add_counters race
CVE-2006-0039 netfilter do_add_counters race
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Thomas Graf
Brian Brock
impact=low,source=kernelsec,reported=...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-15 07:22 EDT by Marcel Holtmann
Modified: 2014-06-18 04:29 EDT (History)
4 users (show)

See Also:
Fixed In Version: RHSA-2006-0689
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-10-05 15:17:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Marcel Holtmann 2006-05-15 07:22:25 EDT
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 05:01:46 EDT
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 05:24:01 EDT
Created attachment 129163 [details]
Patch from Kirill Korotaev with missing upstream fixes
Comment 4 Marcel Holtmann 2006-05-16 05:55:08 EDT
It is also important to note that CAP_NET_ADMIN is needed to exploit this issue.
Comment 8 Jason Baron 2006-09-26 10:45:20 EDT
committed in stream E5 build 42.0.3
Comment 9 RHEL Product and Program Management 2006-09-27 18:40:24 EDT
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 11:49:48 EDT
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 09:40:10 EDT
QE ack for 4.5.
Comment 14 Red Hat Bugzilla 2006-10-05 15:17:43 EDT
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.