net/xfrm/xfrm_policy.c in the Linux kernel through 4.12.3, when CONFIG_XFRM_MIGRATE is enabled, does not ensure that the dir value of xfrm_userpolicy_id is XFRM_POLICY_MAX or less, which allows local users to cause a denial of service (out-of-bounds access) or possibly have unspecified other impact via an XFRM_MSG_MIGRATE xfrm Netlink message.
lists.opensuse.org/opensuse-security-announce/2018-01/msg00007.html
seclists.org/bugtraq/2017/Jul/30
www.debian.org/security/2017/dsa-3981
www.securityfocus.com/bid/99928
access.redhat.com/errata/RHSA-2018:1965
access.redhat.com/errata/RHSA-2018:2003
access.redhat.com/errata/RHSA-2019:1170
access.redhat.com/errata/RHSA-2019:1190
source.android.com/security/bulletin/pixel/2017-11-01