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)
Sun, Nov 30, 11:22 AM
Unknown Object (File)
Wed, Nov 26, 2:01 AM
Unknown Object (File)
Fri, Nov 21, 11:53 PM
Unknown Object (File)
Fri, Nov 21, 4:00 AM
Unknown Object (File)
Fri, Nov 21, 3:59 AM
Unknown Object (File)
Fri, Nov 21, 3:58 AM
Unknown Object (File)
Fri, Nov 21, 3:56 AM
Unknown Object (File)
Nov 14 2025, 6:46 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.