Am Mittwoch, 22. Juni 2016, 20:29:37 schrieb Mathias Krause: Hi Mathias, > Commit 9aa867e46565 ("crypto: user - Add CRYPTO_MSG_DELRNG") > accidentally removed the minimum size check for CRYPTO_MSG_GETALG > netlink messages. This allows userland to send a truncated > CRYPTO_MSG_GETALG message as short as a netlink header only making > crypto_report() operate on uninitialized memory by accessing data > beyond the end of the netlink message. > > Fix this be re-adding the minimum required size of CRYPTO_MSG_GETALG > messages to the crypto_msg_min[] array. I was playing with the adding of the GETALG value as you did to track down the issue fixed with eed1e1afd8d542d9644534c1b712599b5d680007 ("crypto: user - no parsing of CRYPTO_MSG_GETALG") in the cryptodev-2.6 tree. It did not occur to me that it fixes another bug. Yet, with this addition, it would be possible to revert the patch eed1e1afd8d542d9644534c1b712599b5d680007 as your patch fixes the issue too. But my fix can also stay as it does not hurt either. What is your take on that? Ciao Stephan -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html