In drivers/usb/gadget/udc/udc-xilinx.c in the Linux kernel before 5.16.12, the endpoint index is not validated and might be manipulated by the host for out-of-array access.
[
{
"deprecated": false,
"source": "https://github.com/torvalds/linux/commit/7f14c7227f342d9932f9b918893c8814f86d2a0d",
"id": "CVE-2022-27223-292b048b",
"target": {
"file": "drivers/usb/gadget/udc/udc-xilinx.c",
"function": "xudc_set_clear_feature"
},
"digest": {
"function_hash": "47394721732436927040230995429517320303",
"length": 1477.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/torvalds/linux/commit/7f14c7227f342d9932f9b918893c8814f86d2a0d",
"id": "CVE-2022-27223-447b3882",
"target": {
"file": "drivers/usb/gadget/udc/udc-xilinx.c"
},
"digest": {
"line_hashes": [
"243275506818715654854184853565182300016",
"191739005548798177104472813011348769767",
"16086506193517385316293054130785982504",
"177873653752159940146542663830028954198",
"26391724027767668262907163497179977114",
"27308860639105937583245783994876979711",
"118158192190964158246808887160192406533",
"56722386006500963336242418562225676048"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/torvalds/linux/commit/7f14c7227f342d9932f9b918893c8814f86d2a0d",
"id": "CVE-2022-27223-90450004",
"target": {
"file": "drivers/usb/gadget/udc/udc-xilinx.c",
"function": "xudc_getstatus"
},
"digest": {
"function_hash": "10011653264255701505247815023896319228",
"length": 1071.0
},
"signature_type": "Function",
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27223.json"