{"id":"CVE-2023-52781","aliases":["CVE-2023-52781"],"related":[],"kind":"vulnerability","state":"published","title":"usb: config: fix iteration issue in 'usb_get_bos_descriptor()'","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: config: fix iteration issue in 'usb_get_bos_descriptor()'\n\nThe BOS descriptor defines a root descriptor and is the base descriptor for\naccessing a family of related descriptors.\n\nFunction 'usb_get_bos_descriptor()' encounters an iteration issue when\nskipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in\nthe same descriptor being read repeatedly.\n\nTo address this issue, a 'goto' statement is introduced to ensure that the\npointer and the amount read is updated correctly. This ensures that the\nfunction iterates to the next descriptor instead of reading the same\ndescriptor repeatedly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: config: fix iteration issue in 'usb_get_bos_descriptor()'\n\nThe BOS descriptor defines a root descriptor and is the base descriptor for\naccessing a family of related descriptors.\n\nFunction 'usb_get_bos_descriptor()' encounters an iteration issue when\nskipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in\nthe same descriptor being read repeatedly.\n\nTo address this issue, a 'goto' statement is introduced to ensure that the\npointer and the amount read is updated correctly. This ensures that the\nfunction iterates to the next descriptor instead of reading the same\ndescriptor repeatedly.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: usb: config: soluciona el problema de iteración en 'usb_get_bos_descriptor()'. El descriptor BOS define un descriptor raíz y es el descriptor base para acceder a una familia de descriptores relacionados. La función 'usb_get_bos_descriptor()' encuentra un problema de iteración al omitir el tipo de descriptor 'USB_DT_DEVICE_CAPABILITY'. Esto da como resultado que el mismo descriptor se lea repetidamente. Para solucionar este problema, se introduce una declaración 'goto' para garantizar que el puntero y la cantidad leída se actualicen correctamente. Esto garantiza que la función pase al siguiente descriptor en lugar de leer el mismo descriptor repetidamente.","source":"nvd"}],"published":"2024-05-21T15:31:00.242Z","modified":"2026-06-17T06:43:34.090Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-670"],"affected":[{"ranges":[{"type":"git","introduced":"3dd550a2d36596a1b0ee7955da3b611c031d3873","fixed":"9ef94ec8e52eaf7b9abc5b5f8f5b911751112223","status":"affected"},{"type":"git","introduced":"3dd550a2d36596a1b0ee7955da3b611c031d3873","fixed":"64c27b7b2357ddb38b6afebaf46d5bff4d250702","status":"affected"},{"type":"git","introduced":"3dd550a2d36596a1b0ee7955da3b611c031d3873","fixed":"f89fef7710b2ba0f7a1e46594e530dcf2f77be91","status":"affected"},{"type":"git","introduced":"3dd550a2d36596a1b0ee7955da3b611c031d3873","fixed":"7c0244cc311a4038505b73682b7c8ceaa5c7a8c8","status":"affected"},{"type":"git","introduced":"3dd550a2d36596a1b0ee7955da3b611c031d3873","fixed":"974bba5c118f4c2baf00de0356e3e4f7928b4cbc","status":"affected"},{"type":"git","version":"77ce180d68beffd1af620d0121590e16683fc6b8","status":"affected"},{"type":"git","version":"20a07e1aadcd6990893c532d1b2b507bfa065152","status":"affected"},{"type":"git","version":"a5c051b6503c0ba543e993cfc295b64f096e0a29","status":"affected"},{"type":"git","version":"ea4a173d8358b756a780786baa3fc39d282bdbe3","status":"affected"},{"type":"git","version":"77d4e2a058858b4a94fc469bc1bfc94a0958e252","status":"affected"},{"type":"git","version":"1fc15d29540a69cfb55c8b8f8c38f1af33178243","status":"affected"},{"type":"git","version":"9f8dd40c68c176f2c3f1fc8b87bc81756856938f","status":"affected"},{"type":"semver","introduced":"3.16.79","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.4.194","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.194","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.146","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.75","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.2.17","fixed":"5.3","status":"affected"},{"type":"semver","introduced":"5.3.1","fixed":"5.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.10.203","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.142","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.66","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.4","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","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":"3.16.79","fixed":"3.17"},{"status":"affected","introduced":"4.4.194","fixed":"4.5"},{"status":"affected","introduced":"4.9.194","fixed":"4.10"},{"status":"affected","introduced":"4.14.146","fixed":"4.15"},{"status":"affected","introduced":"4.19.75","fixed":"4.20"},{"status":"affected","introduced":"5.2.17","fixed":"5.3"},{"status":"affected","introduced":"5.3.1","fixed":"5.10.203"},{"status":"affected","introduced":"5.11","fixed":"5.15.142"},{"status":"affected","introduced":"5.16","fixed":"6.1.66"},{"status":"affected","introduced":"6.2","fixed":"6.6.4"},{"status":"affected","version":"6.7"},{"status":"affected","version":"6.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9ef94ec8e52eaf7b9abc5b5f8f5b911751112223","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64c27b7b2357ddb38b6afebaf46d5bff4d250702","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f89fef7710b2ba0f7a1e46594e530dcf2f77be91","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c0244cc311a4038505b73682b7c8ceaa5c7a8c8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/974bba5c118f4c2baf00de0356e3e4f7928b4cbc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-21T17:27:41.275Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52781","url":"https://www.cve.org/CVERecord?id=CVE-2023-52781","licence":"CVE Terms of Use","modified":"2026-05-23T15:27:05.236Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52781","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52781","licence":"Public domain","modified":"2026-06-17T06:43:34.090Z"}],"updatedAt":"2026-11-25T22:58:34.016Z","epss":{"score":0.00241,"percentile":0.16399,"date":"2026-12-01T12:00:22.000Z"}}