In the Linux kernel before 4.12, Hisilicon Network Subsystem (HNS) does not consider the ETHSSPRIVFLAGS case when retrieving ssetcount data, which allows local users to cause a denial of service (buffer overflow and memory corruption) or possibly have unspecified other impact, as demonstrated by incompatibility between hnsgetssetcount and ethtoolget_strings.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-18222.json"
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Line",
"digest": {
"line_hashes": [
"38436857205504788209938677055622492845",
"99790795692850511190534528554276640685",
"148528185350836419730344098319168449705",
"282609016253949237921850223658407936396"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c"
},
"id": "CVE-2017-18222-320b612f",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Line",
"digest": {
"line_hashes": [
"189640636231128575939190325002602195780",
"149868866331979596659460323021084897080",
"80371386136458961338760830294448536462",
"294304112952291297606570847007636765127"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c"
},
"id": "CVE-2017-18222-65c8303e",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Function",
"digest": {
"function_hash": "269013855815545713698854789658246709906",
"length": 124.0
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c",
"function": "hns_xgmac_get_sset_count"
},
"id": "CVE-2017-18222-7b1f4863",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Line",
"digest": {
"line_hashes": [
"209169584168015456051133411869129190869",
"205032916488393337431932058894248376156",
"80889264917615209806662289778879499108",
"119018507100140937178008529332932493220"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c"
},
"id": "CVE-2017-18222-878099ba",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Function",
"digest": {
"function_hash": "48821810501362051406692915874952859604",
"length": 123.0
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c",
"function": "hns_gmac_get_sset_count"
},
"id": "CVE-2017-18222-93b44852",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Function",
"digest": {
"function_hash": "302803450985255761285651551523312311131",
"length": 102.0
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c",
"function": "hns_ppe_get_sset_count"
},
"id": "CVE-2017-18222-d29ca7b4",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Function",
"digest": {
"function_hash": "284073117960583777028053699026530808628",
"length": 107.0
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c",
"function": "hns_rcb_get_ring_sset_count"
},
"id": "CVE-2017-18222-dc3a0fe6",
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"signature_type": "Line",
"digest": {
"line_hashes": [
"177858660074459625690468886029561966453",
"337194333803815392458406576843515751994",
"40274723787885279344398327773693461023",
"61166450861323488370180680664047457150"
],
"threshold": 0.9
},
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c"
},
"id": "CVE-2017-18222-f4a615a7",
"signature_version": "v1"
}
]