+8
−1
Loading
If the message frame is (maliciously) corrupted in a way that the length of the control segment ends up being less than the size of the message header or a different frame is made to look like a message frame, out-of-bounds reads may ensue in process_message_header(). Perform an explicit bounds check before decoding the message header. Cc: stable@vger.kernel.org Reported-by:Raphael Zimmer <raphael.zimmer@tu-ilmenau.de> Signed-off-by:
Ilya Dryomov <idryomov@gmail.com> Reviewed-by:
Alex Markuze <amarkuze@redhat.com> Reviewed-by:
Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>