An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"8228047372824403445809389804182550337",
"215290394054290689799362561037584581376",
"50834800687003401478418564196561689514",
"157624948906676408928048125434499571554"
]
},
"source": "https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c",
"deprecated": false,
"id": "CVE-2022-25258-3ede5a0e",
"signature_type": "Line",
"target": {
"file": "drivers/usb/gadget/composite.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 8670.0,
"function_hash": "15411130885992590080241792335577292221"
},
"source": "https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c",
"deprecated": false,
"id": "CVE-2022-25258-ca41dbdc",
"signature_type": "Function",
"target": {
"function": "composite_setup",
"file": "drivers/usb/gadget/composite.c"
},
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25258.json"