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)
Dec 20 2023, 1:09 AM
Unknown Object (File)
Oct 6 2023, 12:54 AM
Unknown Object (File)
Jun 27 2023, 9:00 AM
Unknown Object (File)
Jun 16 2023, 9:29 AM
Unknown Object (File)
May 6 2023, 11:03 AM
Unknown Object (File)
Apr 22 2023, 12:27 AM
Unknown Object (File)
Jan 3 2023, 10:58 AM
Unknown Object (File)
Dec 25 2022, 11:38 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.