CVE-2017-7184: CVE-2017-7184: The xfrm_replay_verify_len function in net/xfrm/xfrm_user.c in the Linux kernel through 4.…
linux · linux kernel · NVD published 2017-03-19 · posted 2025-05-16 · last modified 2026-06-17
What it is
The xfrm_replay_verify_len function in net/xfrm/xfrm_user.c in the Linux kernel through 4.10.6 does not validate certain size data after an XFRM_MSG_NEWAE update, which allows local users to obtain root privileges or cause a denial of service (heap-based out-of-bounds access) by leveraging the CAP_NET_ADMIN capability, as demonstrated during a Pwn2Own competition at CanSecWest 2017 for the Ubuntu 16.10 linux-image-* package 4.8.0.41.52.
| Weakness | Not specified |
|---|---|
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (source: [email protected]) |
| ATT&CK tactics | Impact |
Exploitation evidence
First exploit evidence seen: 2025-05-16 (earliest date across the sources below).
Exploited in the wild
No source on this site lists in-the-wild exploitation yet (CISA KEV, VulnCheck KEV).
Public exploit code
GitHub proof-of-concept repositories
3 public repositories from 3 accounts, first seen 2025-05-16. Most starred: b1nhack/CVE-2017-7184 (0 stars), view repository.
Verify before running: public PoCs can be malicious. Read the code and only run it in an isolated lab. A PoC means exploit code is public, not that this CVE is exploited in the wild.
Sources: nomi-sec/PoC-in-GitHub.
How to fix it
Fixed versions
- linux linux kernel: upgrade to 3.2.89 or later
- linux linux kernel: upgrade to 3.10.106 or later (affected from 3.3)
- linux linux kernel: upgrade to 3.12.73 or later (affected from 3.11)
- linux linux kernel: upgrade to 3.16.44 or later (affected from 3.13)
- linux linux kernel: upgrade to 3.18.49 or later (affected from 3.17)
- linux linux kernel: upgrade to 4.1.49 or later (affected from 3.19)
- linux linux kernel: upgrade to 4.4.59 or later (affected from 4.2)
- linux linux kernel: upgrade to 4.9.20 or later (affected from 4.5)
- linux linux kernel: upgrade to 4.10.8 or later (affected from 4.10)
Derived from the NVD CPE configuration (versionEndExcluding / versionEndIncluding). Always confirm with the vendor advisory.
Vendor advisories and patches
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=677e806da4d916052585301785d847c3b3e6186a (Vendor Advisory)
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f843ee6dd019bcece3e74e76ad9df0155655d0df (Vendor Advisory)
MITRE ATT&CK mitigations for this chain
- M1037 Filter Network Traffic (for T1499) : Leverage services provided by Content Delivery Networks (CDN) or providers specializing in DoS mitigations to filter traffic upstream from services. Filter boundary traffic by blocking source addresses sourcing the attack, blocking ports that are being targeted, or blocking protocols being used for transport. To defend
Detection Generic guidance
- Impact: Monitor service availability, unexpected encryption activity and mass file changes.
Response checklist Generic guidance
- Inventory: find every instance of the affected product and version (include internet-facing and forgotten ones).
- Patch or mitigate per the vendor advisory; if you cannot patch, remove internet exposure or apply the vendor workaround.
- Assume compromise if the system was exposed before patching: hunt for the indicators in the advisory and review logs back to the disclosure date.
- Rotate credentials and secrets stored on or used by the affected system if compromise cannot be ruled out.
Sources
- NVD: CVE-2017-7184
- CVE.org record
- FIRST EPSS (2026-10-24)
- http://openwall.com/lists/oss-security/2017/03/29/2 (Mailing List, Third Party Advisory)
- http://www.eweek.com/security/ubuntu-linux-falls-on-day-1-of-pwn2own-hacking-competition (Technical Description, Third Party Advisory)
- http://www.securityfocus.com/bid/97018 (Third Party Advisory, VDB Entry)
- http://www.securitytracker.com/id/1038166 (Third Party Advisory, VDB Entry)
- https://access.redhat.com/errata/RHSA-2017:2918 (Third Party Advisory)
- https://access.redhat.com/errata/RHSA-2017:2930 (Third Party Advisory)
- https://access.redhat.com/errata/RHSA-2017:2931 (Third Party Advisory)
- https://access.redhat.com/errata/RHSA-2019:4159 (Third Party Advisory)