{"id":"CVE-2022-48948","summary":"usb: gadget: uvc: Prevent buffer overflow in setup handler","details":"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-\u003eactual\nbytes to uvc_event-\u003edata.data array of size 60. This may result\nin an overflow of 4 bytes.","modified":"2026-04-02T08:27:10.412554Z","published":"2024-10-21T20:05:37.122Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:4082-1","SUSE-SU-2024:4131-1","SUSE-SU-2024:4364-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48948.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4972e3528b968665b596b5434764ff8fd9446d35"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4c92670b16727365699fe4b19ed32013bab2c107"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6b41a35b41f77821db24f2d8f66794b390a585c5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b1f773277a72f9756d47a41b94e43506cce1954"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc8380fe5768c564f921f7b4eaba932e330b9e4b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c79538f32df12887f110dcd6b9c825b482905f24"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d1a92bb8d697f170d93fe922da763d7d156b8841"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48948.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48948"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cdda479f15cd13fa50a913ca85129c0437cc7b91"},{"fixed":"4972e3528b968665b596b5434764ff8fd9446d35"},{"fixed":"06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5"},{"fixed":"bc8380fe5768c564f921f7b4eaba932e330b9e4b"},{"fixed":"b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be"},{"fixed":"c79538f32df12887f110dcd6b9c825b482905f24"},{"fixed":"6b41a35b41f77821db24f2d8f66794b390a585c5"},{"fixed":"7b1f773277a72f9756d47a41b94e43506cce1954"},{"fixed":"d1a92bb8d697f170d93fe922da763d7d156b8841"},{"fixed":"4c92670b16727365699fe4b19ed32013bab2c107"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48948.json"}}],"schema_version":"1.7.5"}