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/cve-osv-conversion/osv-output/CVE-2017-18222.json"
[
{
"id": "CVE-2017-18222-320b612f",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"38436857205504788209938677055622492845",
"99790795692850511190534528554276640685",
"148528185350836419730344098319168449705",
"282609016253949237921850223658407936396"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-65c8303e",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"189640636231128575939190325002602195780",
"149868866331979596659460323021084897080",
"80371386136458961338760830294448536462",
"294304112952291297606570847007636765127"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-7b1f4863",
"signature_type": "Function",
"digest": {
"function_hash": "269013855815545713698854789658246709906",
"length": 124.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_xgmac_get_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-878099ba",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209169584168015456051133411869129190869",
"205032916488393337431932058894248376156",
"80889264917615209806662289778879499108",
"119018507100140937178008529332932493220"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-93b44852",
"signature_type": "Function",
"digest": {
"function_hash": "48821810501362051406692915874952859604",
"length": 123.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_gmac_get_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-d29ca7b4",
"signature_type": "Function",
"digest": {
"function_hash": "302803450985255761285651551523312311131",
"length": 102.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_ppe_get_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-dc3a0fe6",
"signature_type": "Function",
"digest": {
"function_hash": "284073117960583777028053699026530808628",
"length": 107.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_rcb_get_ring_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-f4a615a7",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"177858660074459625690468886029561966453",
"337194333803815392458406576843515751994",
"40274723787885279344398327773693461023",
"61166450861323488370180680664047457150"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c"
},
"deprecated": false
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-18222.json"
[
{
"id": "CVE-2017-18222-01f03e8e",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"189640636231128575939190325002602195780",
"149868866331979596659460323021084897080",
"80371386136458961338760830294448536462",
"294304112952291297606570847007636765127"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-0bc99c88",
"signature_type": "Function",
"digest": {
"function_hash": "284073117960583777028053699026530808628",
"length": 107.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_rcb_get_ring_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-4ce1b865",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209169584168015456051133411869129190869",
"205032916488393337431932058894248376156",
"80889264917615209806662289778879499108",
"119018507100140937178008529332932493220"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-4ed9f684",
"signature_type": "Function",
"digest": {
"function_hash": "48821810501362051406692915874952859604",
"length": 123.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_gmac_get_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-608bb8b1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"177858660074459625690468886029561966453",
"337194333803815392458406576843515751994",
"40274723787885279344398327773693461023",
"61166450861323488370180680664047457150"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-78fc1f87",
"signature_type": "Function",
"digest": {
"function_hash": "269013855815545713698854789658246709906",
"length": 124.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_xgmac_get_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-bddf2945",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"38436857205504788209938677055622492845",
"99790795692850511190534528554276640685",
"148528185350836419730344098319168449705",
"282609016253949237921850223658407936396"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c"
},
"deprecated": false
},
{
"id": "CVE-2017-18222-d7baf965",
"signature_type": "Function",
"digest": {
"function_hash": "302803450985255761285651551523312311131",
"length": 102.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/412b65d15a7f8a93794653968308fc100f2aa87c",
"target": {
"function": "hns_ppe_get_sset_count",
"file": "drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c"
},
"deprecated": false
}
]