{"id":"CVE-2026-68369","summary":"usb: gadget: printer: fix infinite loop in printer_read()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: printer: fix infinite loop in printer_read()\n\nprinter_read() uses the same variable for the requested copy size and\nthe number of bytes actually copied to user space. copy_to_user()\nreturns the number of bytes not copied, so when it fails to copy\nanything, the computed copied length becomes zero.\n\nIn that case len, buf, current_rx_bytes and current_rx_buf are left\nunchanged. If RX data is available and the user buffer remains\nunwritable, the read loop can repeat indefinitely.\n\nTrack the copied length separately and return -EFAULT, or the number of\nbytes already copied, if an iteration makes no progress.","modified":"2026-08-12T04:18:48.209471130Z","published":"2026-08-10T12:03:46.845Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68369.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4cde0b38cc0cb8b7dc17295801015148de37d1d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/994afccfdcceb73be33f69a8a8ea71e260c9eca5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2e819be6a5c7f34344926b4bd7e3dfca58cf48a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e03597ad9494b500344076589aeaa6c6d2d381d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e41bbbbb1740ce4d7270ab1cdeca13892d6a8d2e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68369.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68369"},{"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":"b185f01a9ab7af586133be2555298e960237359b"},{"fixed":"994afccfdcceb73be33f69a8a8ea71e260c9eca5"},{"fixed":"e03597ad9494b500344076589aeaa6c6d2d381d3"},{"fixed":"4cde0b38cc0cb8b7dc17295801015148de37d1d2"},{"fixed":"e41bbbbb1740ce4d7270ab1cdeca13892d6a8d2e"},{"fixed":"c2e819be6a5c7f34344926b4bd7e3dfca58cf48a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68369.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"fixed":"6.6.148"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.101"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.42"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68369.json"}}],"schema_version":"1.9.0"}