CVE-2023-52488
Assigner: Linux
Published: 2024-02-29T15:52:08.132Z
State: PUBLISHED
descriptions: value: 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: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: dfeae619d781
lessThan: 4e37416e4ee1
status: affected
versionType: git
version: dfeae619d781
lessThan: e635f652696e
status: affected
versionType: git
version: dfeae619d781
lessThan: 416b10d2817c
status: affected
versionType: git
version: dfeae619d781
lessThan: 084c24e788d9
status: affected
versionType: git
version: dfeae619d781
lessThan: aa7cb4787698
status: affected
versionType: git
version: dfeae619d781
lessThan: dbf4ab821804
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 3.16
status: affected
version: 0
lessThan: 3.16
status: unaffected
versionType: custom
version: 5.10.215
lessThanOrEqual: 5.10.*
status: unaffected
versionType: custom
version: 5.15.154
lessThanOrEqual: 5.15.*
status: unaffected
versionType: custom
version: 6.1.76
lessThanOrEqual: 6.1.*
status: unaffected
versionType: custom
version: 6.6.15
lessThanOrEqual: 6.6.*
status: unaffected
versionType: custom
version: 6.7.3
lessThanOrEqual: 6.7.*
status: unaffected
versionType: custom
version: 6.8
lessThanOrEqual: *
status: unaffected
versionType: original_commit_for_fix
title: serial: sc16is7xx: convert from _raw_ to _noinc_ regmap functions for FIFO
x_generator: engine: bippy-d175d3acf727