mmc: sdio_uart: fix xmit_fifo leak when the port table is full
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8b197a5ce7a7218bb9fc721647ba0d5734f27348 · < ac866db277a4c73e84b4263773652e3aba326249| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mmc: sdio_uart: fix xmit_fifo leak when the port table is full
sdio_uart_add_port() allocates the transmit fifo before claiming a slot in sdio_uart_table[]. When all UART_NR slots are taken, it returns -EBUSY with the fifo still allocated, but the probe error path only kfree()s the port, leaking the transmit fifo.
Free the fifo in the failure path of sdio_uart_add_port() itself so the function retains nothing on error.
From the CVE record · Linux
The Linux kernel's sdio_uart code leaks an allocated transmit FIFO when its port table is full and adding another port fails. The input does not describe an attacker-controlled trigger, required access, or user interaction.
Engineers running Linux kernels with sdio_uart should check their exposure; affected versions are not specified.