What’s Vulnerable › Vulnerabilities
CVE-2022-48696: regmap: spi: Reserve space for register address/padding
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-03 · updated 2026-08-04
- Weakness: CWE-120
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.
Affected products
- Linux kernel: from 5.16 before 5.19.9; 6.0-rc1, 6.0-rc2, 6.0-rc3, 6.0-rc4 — fixed in 5.19.9
How to fix
Upgrade to a fixed version: Linux kernel 5.19.9. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/15ff1f17847c19174b260bd7dd0de33edcebd45e
- https://git.kernel.org/stable/c/f5723cfc01932c7a8d5c78dbf7e067e537c91439
- https://git.kernel.org/stable/c/15ff1f17847c19174b260bd7dd0de33edcebd45e
- https://git.kernel.org/stable/c/f5723cfc01932c7a8d5c78dbf7e067e537c91439
Get alerted when CVE-2022-48696 or the next vulnerability affects your stack