The xfrmreplayverifylen function in net/xfrm/xfrmuser.c in the Linux kernel through 4.10.6 does not validate certain size data after an XFRMMSGNEWAE update, which allows local users to obtain root privileges or cause a denial of service (heap-based out-of-bounds access) by leveraging the CAPNETADMIN capability, as demonstrated during a Pwn2Own competition at CanSecWest 2017 for the Ubuntu 16.10 linux-image-* package 4.8.0.41.52.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-7184.json"
[
{
"id": "CVE-2017-7184-4cc8b185",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@677e806da4d916052585301785d847c3b3e6186a",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"218797536032625349693994339707747279683",
"246958264177717417397072199595249565750",
"178110393209021449946426006175730841577"
]
},
"target": {
"file": "net/xfrm/xfrm_user.c"
}
},
{
"id": "CVE-2017-7184-d68eaecd",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@677e806da4d916052585301785d847c3b3e6186a",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"digest": {
"function_hash": "45792913924806289610636658808198013160",
"length": 271.0
},
"target": {
"function": "xfrm_replay_verify_len",
"file": "net/xfrm/xfrm_user.c"
}
}
]