CVE-2022-48696

regmap: spi: Reserve space for register address/padding

State
Published
Severity
7.1 High
Published
May 3, 2024
Updated
Aug 5, 2026
Reserved
May 3, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

regmap: spi: Reserve space for register address/padding

Currently the max_raw_read and max_raw_write limits in regmap_spi struct do not take into account the additional size of the transmitted register address and padding. This may result in exceeding the maximum permitted SPI message size, which could cause undefined behaviour, e.g. data corruption.

Fix regmap_get_spi_bus() to properly adjust the above mentioned limits by reserving space for the register address/padding as set in the regmap configuration.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NCISA-ADP

Weaknesses

  • CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Affected Products

ProductVersions
LinuxLinux
  • f231ff38b7b23197013b437128d196710fe282da to before 15ff1f17847c19174b260bd7dd0de33edcebd45eAffected
  • f231ff38b7b23197013b437128d196710fe282da to before f5723cfc01932c7a8d5c78dbf7e067e537c91439Affected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 5.19.9 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.