In the Linux kernel, the following vulnerability has been resolved:
usb: cdns3: change place of 'privep' assignment in cdns3gadgetepdequeue(), cdns3gadgetep_enable()
If 'ep' is NULL, result of eptocdns3ep(ep) is invalid pointer and its dereference with privep->cdns3_dev may cause panic.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb82c0382285ee17a9966aaab27b8becb08eb1ac",
"id": "CVE-2022-50132-08dbf6d4",
"signature_version": "v1",
"target": {
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"36737138412213829262302951380977450363",
"103773958547083255017282364143978337336",
"229409503864787580527977747216724470880",
"121226865504256045006774920978964579447",
"142611640643208858270073238315958661795",
"165144343085970372863220993092897292038",
"297077502529026352222585224883170663949",
"1980480520431725552292003768922316318",
"258909846611493371612726855767409047719",
"80233446328715530399210107541305071500",
"206513095821450574038565967940420478544",
"303586423259959511410141496713141661323",
"251968164240050342308724767020066621679",
"277397379331243635929841393033619226162",
"15456459870794825007224266856701383591",
"255016109815819528269651805403746451842"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bfa0201468587072454dba7933e4a4a7be44467a",
"id": "CVE-2022-50132-2f083372",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_dequeue",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "134999361558633844620280148355696976045",
"length": 1096.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb82c0382285ee17a9966aaab27b8becb08eb1ac",
"id": "CVE-2022-50132-34ca4500",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_dequeue",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "134999361558633844620280148355696976045",
"length": 1096.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bfa0201468587072454dba7933e4a4a7be44467a",
"id": "CVE-2022-50132-354df1d4",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_enable",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "226472997711000760189045692420313573550",
"length": 2580.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3ffc9c4ca44bfe9562166793d133e1fb0630ea6",
"id": "CVE-2022-50132-44f2bdc0",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_dequeue",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "134999361558633844620280148355696976045",
"length": 1096.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7af83bb516d7aa4f96835288e4aeda21d7aa2a17",
"id": "CVE-2022-50132-530c54c2",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_enable",
"file": "drivers/usb/cdns3/gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "226472997711000760189045692420313573550",
"length": 2580.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7af83bb516d7aa4f96835288e4aeda21d7aa2a17",
"id": "CVE-2022-50132-80ffcf8f",
"signature_version": "v1",
"target": {
"file": "drivers/usb/cdns3/gadget.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"36737138412213829262302951380977450363",
"103773958547083255017282364143978337336",
"229409503864787580527977747216724470880",
"121226865504256045006774920978964579447",
"142611640643208858270073238315958661795",
"165144343085970372863220993092897292038",
"297077502529026352222585224883170663949",
"1980480520431725552292003768922316318",
"258909846611493371612726855767409047719",
"80233446328715530399210107541305071500",
"206513095821450574038565967940420478544",
"303586423259959511410141496713141661323",
"251968164240050342308724767020066621679",
"277397379331243635929841393033619226162",
"15456459870794825007224266856701383591",
"255016109815819528269651805403746451842"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3ffc9c4ca44bfe9562166793d133e1fb0630ea6",
"id": "CVE-2022-50132-9aa69db6",
"signature_version": "v1",
"target": {
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"36737138412213829262302951380977450363",
"103773958547083255017282364143978337336",
"229409503864787580527977747216724470880",
"121226865504256045006774920978964579447",
"142611640643208858270073238315958661795",
"165144343085970372863220993092897292038",
"297077502529026352222585224883170663949",
"1980480520431725552292003768922316318",
"258909846611493371612726855767409047719",
"80233446328715530399210107541305071500",
"206513095821450574038565967940420478544",
"303586423259959511410141496713141661323",
"251968164240050342308724767020066621679",
"277397379331243635929841393033619226162",
"15456459870794825007224266856701383591",
"255016109815819528269651805403746451842"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb82c0382285ee17a9966aaab27b8becb08eb1ac",
"id": "CVE-2022-50132-a0905bbc",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_enable",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "226472997711000760189045692420313573550",
"length": 2580.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7af83bb516d7aa4f96835288e4aeda21d7aa2a17",
"id": "CVE-2022-50132-af9ea76b",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_dequeue",
"file": "drivers/usb/cdns3/gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "134999361558633844620280148355696976045",
"length": 1096.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d342203df9f2d0851b4acd9ed577d73d10eade77",
"id": "CVE-2022-50132-b659bbf6",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_dequeue",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "134999361558633844620280148355696976045",
"length": 1096.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bfa0201468587072454dba7933e4a4a7be44467a",
"id": "CVE-2022-50132-c19e99e4",
"signature_version": "v1",
"target": {
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"36737138412213829262302951380977450363",
"103773958547083255017282364143978337336",
"229409503864787580527977747216724470880",
"121226865504256045006774920978964579447",
"142611640643208858270073238315958661795",
"165144343085970372863220993092897292038",
"297077502529026352222585224883170663949",
"1980480520431725552292003768922316318",
"258909846611493371612726855767409047719",
"80233446328715530399210107541305071500",
"206513095821450574038565967940420478544",
"303586423259959511410141496713141661323",
"251968164240050342308724767020066621679",
"277397379331243635929841393033619226162",
"15456459870794825007224266856701383591",
"255016109815819528269651805403746451842"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3ffc9c4ca44bfe9562166793d133e1fb0630ea6",
"id": "CVE-2022-50132-c9f92ad8",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_enable",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "226472997711000760189045692420313573550",
"length": 2580.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d342203df9f2d0851b4acd9ed577d73d10eade77",
"id": "CVE-2022-50132-e872893b",
"signature_version": "v1",
"target": {
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"36737138412213829262302951380977450363",
"103773958547083255017282364143978337336",
"229409503864787580527977747216724470880",
"121226865504256045006774920978964579447",
"142611640643208858270073238315958661795",
"165144343085970372863220993092897292038",
"297077502529026352222585224883170663949",
"1980480520431725552292003768922316318",
"258909846611493371612726855767409047719",
"80233446328715530399210107541305071500",
"206513095821450574038565967940420478544",
"303586423259959511410141496713141661323",
"251968164240050342308724767020066621679",
"277397379331243635929841393033619226162",
"15456459870794825007224266856701383591",
"255016109815819528269651805403746451842"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d342203df9f2d0851b4acd9ed577d73d10eade77",
"id": "CVE-2022-50132-f388998a",
"signature_version": "v1",
"target": {
"function": "cdns3_gadget_ep_enable",
"file": "drivers/usb/cdns3/cdns3-gadget.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "226472997711000760189045692420313573550",
"length": 2580.0
}
}
]