chiark / gitweb /
netlink: Set "unused" in ICMP header (SECURITY)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 19 Mar 2014 22:07:12 +0000 (22:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Apr 2014 01:09:59 +0000 (02:09 +0100)
commitcfd794827e3243c681590845063309fa628cfef4
tree3ce086a44079f7802e8bd0dcefc96e0a8561b038
parenteff13010d3de989ea2414048799bff36ad242fa0
netlink: Set "unused" in ICMP header (SECURITY)

Previously, the "unused" field in our ICMP messages was left
uninitialised (!)

This is a security problem, at least in principle, as the field would
as a result contain bits of previous packets.  In practice, the
information leaked could be IP options, TCP ports and sequence
numbers, or UDP ports, length and/or checksum, or similar information
for other protocols, so the impact is limited.

Set the field to 0.  Also, make provision for netlink_icmp_simple's
callers to be able to specify a different value, if desired.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
netlink.c