Bug 563781 (CVE-2010-0437) - CVE-2010-0437 kernel: ipv6: fix ip6_dst_lookup_tail() NULL pointer dereference
Summary: CVE-2010-0437 kernel: ipv6: fix ip6_dst_lookup_tail() NULL pointer dereference
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2010-0437
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 552354 559238 563782 563783 563784 576007
Blocks: 557926
TreeView+ depends on / blocked
 
Reported: 2010-02-11 05:03 UTC by Eugene Teo (Security Response)
Modified: 2021-11-12 20:04 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-19 09:10:26 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0147 0 normal SHIPPED_LIVE Important: kernel security and bug fix update 2010-03-17 00:18:44 UTC
Red Hat Product Errata RHSA-2010:0148 0 normal SHIPPED_LIVE Important: kernel security and bug fix update 2010-03-17 03:18:17 UTC
Red Hat Product Errata RHSA-2010:0149 0 normal SHIPPED_LIVE Important: kernel security and bug fix update 2010-03-17 04:02:49 UTC
Red Hat Product Errata RHSA-2010:0161 0 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2010-03-23 15:42:25 UTC

Description Eugene Teo (Security Response) 2010-02-11 05:03:09 UTC
Description of problem:
ipv6: Fix OOPS in ip6_dst_lookup_tail().

This fixes kernel bugzilla 11469: "TUN with 1024 neighbours: ip6_dst_lookup_tail NULL crash"

dst->neighbour is not necessarily hooked up at this point in the processing path, so blindly dereferencing it is the wrong thing to do.  This NULL check exists in other similar paths and this case was just an oversight.

Also fix the completely wrong and confusing indentation here while we're at it.

Based upon a patch by Evgeniy Polyakov.

References:
http://bugzilla.kernel.org/show_bug.cgi?id=11469

Upstream patch:
http://git.kernel.org/linus/e550dfb0c2c31b6363aa463a035fc9f8dcaa3c9b

Comment 5 Eugene Teo (Security Response) 2010-02-11 05:13:57 UTC
How to mitigate against NULL pointer dereference vulnerabilities?
http://kbase.redhat.com/faq/docs/DOC-20536

Comment 13 errata-xmlrpc 2010-03-17 00:19:01 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0147 https://rhn.redhat.com/errata/RHSA-2010-0147.html

Comment 14 errata-xmlrpc 2010-03-17 03:18:38 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5.2 Z Stream

Via RHSA-2010:0148 https://rhn.redhat.com/errata/RHSA-2010-0148.html

Comment 15 errata-xmlrpc 2010-03-17 04:03:04 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5.3.Z - Server Only

Via RHSA-2010:0149 https://rhn.redhat.com/errata/RHSA-2010-0149.html

Comment 17 errata-xmlrpc 2010-03-23 15:42:42 UTC
This issue has been addressed in following products:

  MRG for RHEL-5

Via RHSA-2010:0161 https://rhn.redhat.com/errata/RHSA-2010-0161.html


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