5.5medium
serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO The SC16IS7XX IC supports a burst mode to access the FIFOs where the initial register address is sent ($00), followed by all the FIFO data without having to resend the register address each time. In this mode, the IC doesn't increment the register address for each R/W byte. The regmap_raw_read() and regmap_raw_write() are functions which can perform IO over multiple registers. They are currently used to read/write from/to the FIFO, and although they operate correctly in this burst mode on the SPI bus, they would corrupt the regmap cache if it was not disabled manually. The reason is that when the R/W size is more than 1 byte, these functions assume that the register address is incremented and handle the cache accordingly. Convert FIFO R/W functions to use the regmap _noinc_ versions in order to remove the manual cache control which was a workaround when using the _raw_ versions. FIFO registers are properly declared as volatile so cache will not be used/updated for FIFO accesses.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from dfeae619d781dee61666d5551b93ba3be755a86b before 4e37416e4ee1b1bc17364a68973e0c63be89e611, from dfeae619d781dee61666d5551b93ba3be755a86b before e635f652696ef6f1230621cfd89c350cb5ec6169, from dfeae619d781dee61666d5551b93ba3be755a86b before 416b10d2817c94db86829fb92ad43ce7d002c573, from dfeae619d781dee61666d5551b93ba3be755a86b before 084c24e788d9cf29c55564de368bf5284f2bb5db, from dfeae619d781dee61666d5551b93ba3be755a86b before aa7cb4787698add9367b19f7afc667662c9bdb23, from dfeae619d781dee61666d5551b93ba3be755a86b before dbf4ab821804df071c8b566d9813083125e6d97b, 3.16 Not affected: before 3.16, from 5.10.215 up to 5.10.*, from 5.15.154 up to 5.15.*, from 6.1.76 up to 6.1.*, from 6.6.15 up to 6.6.*, from 6.7.3 up to 6.7.* | CVE List |
| linux linux_kernel | from 3.16 before 6.1.76, from 6.2 before 6.6.15, from 6.7 before 6.7.3 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO The SC16IS7XX IC supports a burst mode to access the FIFOs where the initial register address is sent ($00), followed by all the FIFO data without having to resend the register address each time. In this mode, the IC doesn't increment the register address for each R/W byte. The regmap_raw_read() and regmap_raw_write() are functions which can perform IO over multiple registers. They are currently used to read/write from/to the FIFO, and although they operate correctly in this burst mode on the SPI bus, they would corrupt the regmap cache if it was not disabled manually. The reason is that when the R/W size is more than 1 byte, these functions assume that the register address is incremented and handle the cache accordingly. Convert FIFO R/W functions to use the regmap _noinc_ versions in order to remove the manual cache control which was a workaround when using the _raw_ versions. FIFO registers are properly declared as volatile so cache will not be used/updated for FIFO accesses.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: serial: sc16is7xx: convierte de _raw_ a _noinc_ funciones regmap para FIFO El IC SC16IS7XX admite un modo de ráfaga para acceder a los FIFO donde se envía la dirección de registro inicial ($00), seguida de todas los datos FIFO sin tener que reenviar la dirección de registro cada vez. En este modo, el IC no incrementa la dirección de registro para cada byte de lectura/escritura. regmap_raw_read() y regmap_raw_write() son funciones que pueden realizar IO en múltiples registros. Actualmente se utilizan para leer/escribir desde/hacia FIFO y, aunque funcionan correctamente en este modo de ráfaga en el bus SPI, dañarían el caché de regmap si no se desactivara manualmente. La razón es que cuando el tamaño de lectura y escritura es superior a 1 byte, estas funciones asumen que la dirección del registro se incrementa y manejan la caché en consecuencia. Convierta las funciones FIFO R/W para usar las versiones regmap _noinc_ para eliminar el control de caché manual, que era una solución alternativa al usar las versiones _raw_. Los registros FIFO se declaran correctamente como volátiles, por lo que la caché no se utilizará ni se actualizará para los accesos FIFO.
References
| https://git.kernel.org/stable/c/4e37416e4ee1b1bc17364a68973e0c63be89e611 | mailing-list, patch | |
| https://git.kernel.org/stable/c/e635f652696ef6f1230621cfd89c350cb5ec6169 | mailing-list, patch | |
| https://git.kernel.org/stable/c/416b10d2817c94db86829fb92ad43ce7d002c573 | mailing-list, patch | |
| https://git.kernel.org/stable/c/084c24e788d9cf29c55564de368bf5284f2bb5db | mailing-list, patch | |
| https://git.kernel.org/stable/c/aa7cb4787698add9367b19f7afc667662c9bdb23 | mailing-list, patch | |
| https://git.kernel.org/stable/c/dbf4ab821804df071c8b566d9813083125e6d97b | mailing-list, patch | |
| https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html | mailing-list, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52488 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-52488 changed 2026-06-17 | Public domain |