Linux · Linux Kernel · CVE-2024-58069
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
A potential out-of-bounds write issue was found in the Linux kernel's handling of the PCF85063 NVMEM read through the `rtc` subsystem. The issue arises from the difference in buffer size handling between the `nvmem` interface, which supports variable buffer sizes, and the `regmap` interface, which operates with fixed-size storage. Specifically, if an `nvmem` client uses a buffer size less than 4 bytes, the `regmap read` function will write out of bounds because it expects the buffer to point to an unsigned int. This issue was resolved by introducing an intermediary unsigned int to hold the value, thus preventing the out-of-bounds write.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.