]> git.baikalelectronics.ru Git - kernel.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)
committerPaul Moore <paul@paul-moore.com>
Mon, 24 Feb 2020 21:38:57 +0000 (16:38 -0500)
commit0a6bce1cb4bbaa43b90f98f0169b1c5f12fd5ce8
tree9ac13d57ce90c154e423a4c1408ea50fcc47b3f1
parent113cffc57f14e558253c8202c3a43c690ada6c2a
audit: always check the netlink payload length in audit_receive_msg()

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>
kernel/audit.c