linux/drivers/usb
Johan Hovold 6bfc8d01ac 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.

Fixes: 034e38e8f6 ("USB: serial: keyspan_pda: add write-fifo support")
Cc: stable@vger.kernel.org	# 5.11
Signed-off-by: Johan Hovold <johan@kernel.org>
2026-06-30 10:36:06 +02:00
..
atm USB/Thunderbolt driver changes for 7.2-rc1 2026-06-22 12:09:47 -07:00
c67x00 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cdns3 Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
chipidea Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
class Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
common usb: ulpi: fix memory leak on ulpi_register() error paths 2026-04-27 09:49:43 -06:00
core Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
dwc2 Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
dwc3 Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
early usb: early: xhci-dbc: Fix early_ioremap leak 2025-07-07 11:04:46 +02:00
fotg210 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gadget USB/Thunderbolt driver changes for 7.2-rc1 2026-06-22 12:09:47 -07:00
host USB/Thunderbolt driver changes for 7.2-rc1 2026-06-22 12:09:47 -07:00
image Merge 7.0-rc4 into usb-next 2026-03-16 11:50:48 +01:00
isp1760 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
misc usb: misc: Use named initializers for struct i2c_device_id 2026-05-21 16:52:34 +02:00
mon Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
mtu3 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
musb usb: musb: omap2430: Fix use-after-free in omap2430_probe() 2026-05-22 10:33:43 +02:00
phy usb: phy: isp1301: Use named initializers for struct i2c_device_id 2026-05-21 16:52:36 +02:00
renesas_usbhs usb: renesas_usbhs: use kzalloc_flex 2026-03-18 15:51:48 +01:00
roles usb: roles: get usb role switch from parent only for usb-b-connector 2026-03-11 16:22:22 +01:00
serial USB: serial: keyspan_pda: fix information leak 2026-06-30 10:36:06 +02:00
storage usb: storage: Add quirks for PNY Elite Portable SSD 2026-05-22 11:12:47 +02:00
typec usb: ucsi: huawei_gaokun: support mode switching 2026-06-12 18:04:07 +02:00
usbip USB/Thunderbolt driver changes for 7.2-rc1 2026-06-22 12:09:47 -07:00
Kconfig usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk 2023-10-02 16:19:12 +02:00
Makefile usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00
usb-skeleton.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00