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.
https://source.android.com/security/bulletin/pixel/2017-11-01
https://access.redhat.com/errata/RHSA-2019:1190
https://access.redhat.com/errata/RHSA-2019:1170
https://access.redhat.com/errata/RHSA-2018:2003
https://access.redhat.com/errata/RHSA-2018:1965
http://www.securityfocus.com/bid/99928
http://www.debian.org/security/2017/dsa-3981
http://seclists.org/bugtraq/2017/Jul/30
http://lists.opensuse.org/opensuse-security-announce/2018-01/msg00007.html