CVE-2022-48696 regmap: spi: Reserve space for register address/padding
A buffer overflow in the Linux kernel's SPI regmap driver can cause data corruption or system crashes due to incorrect size calculations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-48696?
CVE-2022-48696 is a high-severity memory corruption vulnerability in Linux kernel, published on 3 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-120
Which versions are affected by CVE-2022-48696?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-48696?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-48696 being exploited?
There is no known exploitation of CVE-2022-48696 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-48696, GHSA-2955-j2mm-qvcq, UBUNTU-CVE-2022-48696.