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.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25258.json"
[
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c",
"digest": {
"line_hashes": [
"8228047372824403445809389804182550337",
"215290394054290689799362561037584581376",
"50834800687003401478418564196561689514",
"157624948906676408928048125434499571554"
],
"threshold": 0.9
},
"id": "CVE-2022-25258-3ede5a0e",
"deprecated": false,
"target": {
"file": "drivers/usb/gadget/composite.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c",
"digest": {
"function_hash": "15411130885992590080241792335577292221",
"length": 8670.0
},
"id": "CVE-2022-25258-ca41dbdc",
"deprecated": false,
"target": {
"file": "drivers/usb/gadget/composite.c",
"function": "composite_setup"
}
}
]