USB: serial: keyspan_pda: fix information leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 034e38e8f68767fb5438ae3e608ee82919674177 · < d4b12b6b395e43a2b1d80be3745631fcaa9c047b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: keyspan_pda: fix information leak
The write() callback is supposed to return the number of characters accepted or a negative errno. Since the addition of write fifo support the keyspan_pda implementation will however return the number characters submitted to the device if the write urb is not already in use. If this number is larger than the number of characters passed to write(), the line discipline continues writing data from beyond the tty write buffer.
Fix the information leak by making sure that keyspan_pda_write_start() returns zero on success as intended.
From the CVE record · Linux
The keyspan_pda USB serial driver can report more characters written than were passed to its write callback when the write request is not already in use. This can cause the line discipline to read beyond the tty write buffer and leak information.
Engineers running the Linux kernel with the keyspan_pda USB serial driver should check their installations; affected versions were not specified.