]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
audit: always check the netlink payload length in audit_receive_msg()
authorPaul Moore <paul@paul-moore.com>
Mon, 24 Feb 2020 21:38:57 +0000 (16:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:45:15 +0000 (16:45 +0100)
commitec2a01db62df18a4624e2ea6f4b849d2161f8378
tree5a668a495b4c3f4fb6a62e039dd338c0de1c4189
parent4f3daed0c7ffee4756da2d8c6fb0d5027d97ec87
audit: always check the netlink payload length in audit_receive_msg()

commit 756125289285f6e55a03861bf4b6257aa3d19a93 upstream.

This patch ensures that we always check the netlink payload length
in audit_receive_msg() before we take any action on the payload
itself.

Cc: stable@vger.kernel.org
Reported-by: syzbot+399c44bf1f43b8747403@syzkaller.appspotmail.com
Reported-by: syzbot+e4b12d8d202701f08b6d@syzkaller.appspotmail.com
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/audit.c