Page MenuHomeFreeBSD

When checking inp_ip_minttl, don't check IPv4 header for IPv6 packets
ClosedPublic

Authored by jtl on Dec 29 2015, 5:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 11:48 PM
Unknown Object (File)
Wed, Nov 27, 1:08 PM
Unknown Object (File)
Nov 24 2024, 11:13 PM
Unknown Object (File)
Nov 18 2024, 4:14 AM
Unknown Object (File)
Nov 18 2024, 1:42 AM
Unknown Object (File)
Nov 17 2024, 9:26 AM
Unknown Object (File)
Nov 17 2024, 6:46 AM
Unknown Object (File)
Nov 17 2024, 5:08 AM
Subscribers

Details

Summary

If (inp->inp_ip_minttl != 0), conformant IPv6 packets would cause the
code to check the IPv4 header's TTL. Because the variable that stores
the IPv4 header is initialized to NULL in the IPv6 case, this causes
a NULL pointer dereference.

CID: 1017920

Test Plan

Compile

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jtl retitled this revision from to When checking inp_ip_minttl, don't check IPv4 header for IPv6 packets.
jtl updated this object.
jtl edited the test plan for this revision. (Show Details)
jtl added a reviewer: transport.
bz added a reviewer: bz.
This revision is now accepted and ready to land.Dec 29 2015, 5:52 PM
This revision was automatically updated to reflect the committed changes.