CVE-2024-58069 rtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read
A local attacker can trigger an out-of-bounds write in the PCF85063 RTC driver, potentially leading to code execution or privilege escalation.
- 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-2024-58069?
CVE-2024-58069 is a high-severity memory corruption vulnerability in Linux kernel, published on 6 Mar 2025. 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:
rtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read
The nvmem interface supports variable buffer sizes, while the regmap interface operates with fixed-size storage. If an nvmem client uses a buffer size less than 4 bytes, regmap_read will write out of bounds as it expects the buffer to point at an unsigned int.
Fix this by using an intermediary unsigned int to hold the value.
Weakness: CWE-787
Which versions are affected by CVE-2024-58069?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-58069?
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-2024-58069 being exploited?
There is no known exploitation of CVE-2024-58069 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-59145, BELL-CVE-2024-58069, DEBIAN-CVE-2024-58069, GHSA-p7j9-4392-6r7p, ROOT-OS-UBUNTU-2404-CVE-2024-58069, UBUNTU-CVE-2024-58069.