]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: out of bound access in cipso_v4_validate()
authorEric Dumazet <edumazet@google.com>
Fri, 3 Feb 2017 08:03:26 +0000 (00:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Feb 2017 00:44:22 +0000 (19:44 -0500)
commit4c3524afa46556a5b1cb536e55ed4e878267436c
treee89546d474872302fd1503e07f25bc48f6983039
parentf6be287661532924d2c8f5b13baf0ac0d811c4fc
netlabel: out of bound access in cipso_v4_validate()

syzkaller found another out of bound access in ip_options_compile(),
or more exactly in cipso_v4_validate()

Fixes: 4780e121e018 ("cipso: handle CIPSO options correctly when NetLabel is disabled")
Fixes: 3bb76b642333 ("[NetLabel]: CIPSOv4 engine")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Paul Moore <paul@paul-moore.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/cipso_ipv4.h
net/ipv4/cipso_ipv4.c