chiark / gitweb /
netlink: Safely discard short packets
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Aug 2013 16:36:39 +0000 (17:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Aug 2013 16:49:02 +0000 (17:49 +0100)
Short packets arriving at the netlink should not be processed.

Previously, we suffered buffer read overruns.  In principle this might
be some kind of security problem, as it might make it possible to read
and have returned parts of the buffer which were used previously for
other data.  I haven't analysed this possibility in any detail.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>

No differences found