{"id":"CVE-2022-48948","aliases":["CVE-2022-48948"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: uvc: Prevent buffer overflow in setup handler","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uvc: Prevent buffer overflow in setup handler\n\nSetup function uvc_function_setup permits control transfer\nrequests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE),\ndata stage handler for OUT transfer uses memcpy to copy req->actual\nbytes to uvc_event->data.data array of size 60. This may result\nin an overflow of 4 bytes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uvc: Prevent buffer overflow in setup handler\n\nSetup function uvc_function_setup permits control transfer\nrequests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE),\ndata stage handler for OUT transfer uses memcpy to copy req->actual\nbytes to uvc_event->data.data array of size 60. This may result\nin an overflow of 4 bytes.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: gadget: uvc: Evitar desbordamiento de búfer en el controlador de configuración La función de configuración uvc_function_setup permite solicitudes de transferencia de control con hasta 64 bytes de payload (UVC_MAX_REQUEST_SIZE), el controlador de etapa de datos para transferencia OUT usa memcpy para copiar req-&gt;actual bytes a la matriz uvc_event-&gt;data.data de tamaño 60. Esto puede resultar en un desbordamiento de 4 bytes.","source":"nvd"}],"published":"2024-10-21T20:05:37.122Z","modified":"2026-06-17T05:16:41.390Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"4972e3528b968665b596b5434764ff8fd9446d35","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"bc8380fe5768c564f921f7b4eaba932e330b9e4b","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"c79538f32df12887f110dcd6b9c825b482905f24","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"6b41a35b41f77821db24f2d8f66794b390a585c5","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"7b1f773277a72f9756d47a41b94e43506cce1954","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"d1a92bb8d697f170d93fe922da763d7d156b8841","status":"affected"},{"type":"git","introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91","fixed":"4c92670b16727365699fe4b19ed32013bab2c107","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.35","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.35","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.161","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.85","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.15","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.1","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.35","fixed":"4.9.337"},{"status":"affected","introduced":"4.10","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.161"},{"status":"affected","introduced":"5.11","fixed":"5.15.85"},{"status":"affected","introduced":"5.16","fixed":"6.0.15"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4972e3528b968665b596b5434764ff8fd9446d35","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc8380fe5768c564f921f7b4eaba932e330b9e4b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c79538f32df12887f110dcd6b9c825b482905f24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b41a35b41f77821db24f2d8f66794b390a585c5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b1f773277a72f9756d47a41b94e43506cce1954","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1a92bb8d697f170d93fe922da763d7d156b8841","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4c92670b16727365699fe4b19ed32013bab2c107","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:22:00.601Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48948","url":"https://www.cve.org/CVERecord?id=CVE-2022-48948","licence":"CVE Terms of Use","modified":"2026-05-11T18:50:15.125Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48948","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48948","licence":"Public domain","modified":"2026-06-17T05:16:41.390Z"}],"updatedAt":"2026-11-25T22:58:19.998Z","epss":{"score":0.0027,"percentile":0.20497,"date":"2026-12-02T12:00:21.000Z"}}