{"id":"CVE-2021-46906","aliases":["CVE-2021-46906"],"related":[],"kind":"vulnerability","state":"published","title":"HID: usbhid: fix info leak in hid_submit_ctrl","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: usbhid: fix info leak in hid_submit_ctrl\n\nIn hid_submit_ctrl(), the way of calculating the report length doesn't\ntake into account that report->size can be zero. When running the\nsyzkaller reproducer, a report of size 0 causes hid_submit_ctrl) to\ncalculate transfer_buffer_length as 16384. When this urb is passed to\nthe usb core layer, KMSAN reports an info leak of 16384 bytes.\n\nTo fix this, first modify hid_report_len() to account for the zero\nreport size case by using DIV_ROUND_UP for the division. Then, call it\nfrom hid_submit_ctrl().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: usbhid: fix info leak in hid_submit_ctrl\n\nIn hid_submit_ctrl(), the way of calculating the report length doesn't\ntake into account that report->size can be zero. When running the\nsyzkaller reproducer, a report of size 0 causes hid_submit_ctrl) to\ncalculate transfer_buffer_length as 16384. When this urb is passed to\nthe usb core layer, KMSAN reports an info leak of 16384 bytes.\n\nTo fix this, first modify hid_report_len() to account for the zero\nreport size case by using DIV_ROUND_UP for the division. Then, call it\nfrom hid_submit_ctrl().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: HID: usbhid: corrige fuga de información en hid_submit_ctrl En hid_submit_ctrl(), la forma de calcular la longitud del informe no tiene en cuenta que el tamaño del informe-&gt;puede ser cero. Cuando se ejecuta el reproductor syzkaller, un informe de tamaño 0 hace que hid_submit_ctrl) calcule transfer_buffer_length como 16384. Cuando esta urb se pasa a la capa central USB, KMSAN informa una fuga de información de 16384 bytes. Para solucionar este problema, primero modifique hid_report_len() para tener en cuenta el caso de tamaño de informe cero utilizando DIV_ROUND_UP para la división. Luego, llámalo desde hid_submit_ctrl().","source":"nvd"}],"published":"2024-02-26T17:20:22.144Z","modified":"2026-06-17T04:15:48.533Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","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:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-668"],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"c5d3c142f2d57d40c55e65d5622d319125a45366","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"41b1e71a2c57366b08dcca1a28b0d45ca69429ce","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"8c064eece9a51856f3f275104520c7e3017fc5c0","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"0e280502be1b003c3483ae03fc60dea554fcfa82","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"7f5a4b24cdbd7372770a02f23e347d7d9a9ac8f1","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"b1e3596416d74ce95cc0b7b38472329a3818f8a9","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"21883bff0fd854e07429a773ff18f1e9658f50e8","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"6be388f4a35d2ce5ef7dbf635a8964a5da7f799f","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.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.4.274","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.274","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.238","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.196","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.127","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.45","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.12","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","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","fixed":"4.4.274"},{"status":"affected","introduced":"4.5.0","fixed":"4.9.274"},{"status":"affected","introduced":"4.10.0","fixed":"4.14.238"},{"status":"affected","introduced":"4.15.0","fixed":"4.19.196"},{"status":"affected","introduced":"4.20.0","fixed":"5.4.127"},{"status":"affected","introduced":"5.5.0","fixed":"5.10.45"},{"status":"affected","introduced":"5.11.0","fixed":"5.12.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c5d3c142f2d57d40c55e65d5622d319125a45366","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41b1e71a2c57366b08dcca1a28b0d45ca69429ce","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c064eece9a51856f3f275104520c7e3017fc5c0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0e280502be1b003c3483ae03fc60dea554fcfa82","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f5a4b24cdbd7372770a02f23e347d7d9a9ac8f1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1e3596416d74ce95cc0b7b38472329a3818f8a9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21883bff0fd854e07429a773ff18f1e9658f50e8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6be388f4a35d2ce5ef7dbf635a8964a5da7f799f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:02:20.287Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46906","url":"https://www.cve.org/CVERecord?id=CVE-2021-46906","licence":"CVE Terms of Use","modified":"2026-05-11T13:44:11.363Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46906","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46906","licence":"Public domain","modified":"2026-06-17T04:15:48.533Z"}],"updatedAt":"2026-11-25T22:58:08.559Z","epss":{"score":0.00245,"percentile":0.16845,"date":"2026-12-01T12:00:22.000Z"}}