mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
The struct cn_msg len field comes from userspace and needs to be validated. More logical to do so here where the cn_msg pointer is pulled out of the sk_buff than the callback which is passed cn_msg * and might assume no validation is needed. Reported-by: Dan Carpenter <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: David Fries <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>