Opis (engleski)
In the Linux kernel, the following vulnerability has been resolved: spi: ch341: handle transfers without a TX or RX buffer ch341_transfer_one() unconditionally copies from trans->tx_buf into the TX packet and hands trans->rx_buf to usb_bulk_msg() for the readback. The SPI core allows half-duplex transfers where either of the buffers is NULL, so a transfer without TX data crashes the kernel on the memcpy and a transfer without RX data makes usb_bulk_msg() store the received data at address 0. The CH341A clocks data in both directions on every transfer; there is no mode to disable a direction. Set SPI_CONTROLLER_MUST_TX and SPI_CONTROLLER_MUST_RX so the SPI core fills in dummy buffers for half-duplex transfers.
Zahvaćeni proizvodi i verzije
CVSS vektor, objašnjeno
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Put napada
- Lokalno, na sustavu
- Složenost napada
- Niska
- Potrebne ovlasti
- Obični korisnik
- Interakcija korisnika
- Nije potrebna
- Opseg
- Samo ranjiva komponenta
- Povjerljivost
- Visok utjecaj
- Integritet
- Visok utjecaj
- Dostupnost
- Visok utjecaj
Reference
- git.kernel.org/stable/c/2481f9585c843728cffe5d75d0104552e834f0d1
- git.kernel.org/stable/c/90cc16ecf4a70aad6f8b3ea5af8ec38064b03428
- git.kernel.org/stable/c/f1e1d3a1014aee93bc33e8cb4994123684f1cf38
- git.kernel.org/stable/c/84182c48999f856c3865e4a537c244f9569c9f6c
Izvori: CVE.org (CNA i CISA ADP), CISA KEV, FIRST EPSS. Uvijek provjerite službenu objavu proizvođača.