xfrm_migrate() function in net/xfrm/xfrm_policy.c file in the Linux kernel build with CONFIG_XFRM_MIGRATE does not check that the dir parameter is less than XFRM_POLICY_MAX. This allows a local attacker cause a denial of service (out-of-bounds access) or possibly have unspecified other impact by sending a XFRM_MSG_MIGRATE netlink message. This flaw is present in the Linux kernel since an introduction of XFRM_MSG_MIGRATE in 2.6.21-rc1 and upto 4.13-rc3. References: http://seclists.org/bugtraq/2017/Jul/30 http://marc.info/?t=150169629800003&r=1&w=2 http://marc.info/?l=linux-netdev&m=150169627919528&w=2 Suggested upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git/commit/?id=7bab09631c2a303f87a7eb7e3d69e888673b9b7e An upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7bab09631c2a303f87a7eb7e3d69e888673b9b7e
Created kernel tracking bugs for this issue: Affects: fedora-all [bug 1474929]
Created attachment 1308338 [details] xfrm_migrate_panic_dmesg.txt
Statement: This issue does not affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 5, 6 as the code with the flaw is not present in the products listed or is not exploitable. This issue affects the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 7 and Red Hat Enterprise MRG 2. Future kernel updates for these products may address this issue.
This was fixed for Fedora with the 4.12.11 stable updates
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2018:1965 https://access.redhat.com/errata/RHSA-2018:1965
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2018:2003 https://access.redhat.com/errata/RHSA-2018:2003
This issue has been addressed in the following products: Red Hat Enterprise Linux 7.4 Extended Update Support Via RHSA-2019:1170 https://access.redhat.com/errata/RHSA-2019:1170
This issue has been addressed in the following products: Red Hat Enterprise MRG 2 Via RHSA-2019:1190 https://access.redhat.com/errata/RHSA-2019:1190