Bug 563781 (CVE-2010-0437)

Summary: CVE-2010-0437 kernel: ipv6: fix ip6_dst_lookup_tail() NULL pointer dereference
Product: [Other] Security Response Reporter: Eugene Teo (Security Response) <eteo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bhu, ctatman, dhoward, hjia, lgoncalv, martinez, narayanan_d, peterm, plyons, rkhan, tao, williams, wwlinuxengineering
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-19 09:10:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 552354, 559238, 563782, 563783, 563784, 576007    
Bug Blocks: 557926    

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