CVE-2024-58069
Published: 06 March 2025
Summary
CVE-2024-58069 is a high-severity Out-of-bounds Write (CWE-787) vulnerability in Linux Linux Kernel. Its CVSS base score is 7.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 7.5th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 SI-2 (Flaw Remediation) and CM-7 (Least Functionality).
Deeper analysis
CVE-2024-58069 is a vulnerability in the Linux kernel's rtc-pcf85063 driver, specifically in the PCF85063 NVMEM read functionality. The issue arises from a mismatch between the nvmem interface, which supports variable buffer sizes, and the regmap interface, which expects a fixed-size unsigned int buffer. When an nvmem client provides a buffer smaller than 4 bytes, regmap_read performs an out-of-bounds write. This has been assigned CWE-787 (Out-of-bounds Write) and a CVSS v3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
A local attacker with low privileges can exploit this vulnerability due to its low attack complexity and lack of user interaction requirements. Successful exploitation could result in high-impact confidentiality, integrity, and availability violations, potentially allowing arbitrary code execution, data corruption, or system crashes within the kernel context.
Mitigation involves applying the upstream kernel patches referenced in the stable repository commits, such as 21cd59fcb995, 3ab8c5ed4f84f, 517aedb365f2c, 6f2a8ca9a0a38, and 9adefa7b9559d. These patches fix the issue by using an intermediary unsigned int to safely hold the regmap_read value before copying it to the client's buffer, preventing the OOB write. Security practitioners should update affected Linux kernels to versions incorporating these fixes.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-54031
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Kernel OOB write in rtc-pcf85063 driver enables local low-priv attacker to achieve arbitrary code execution or crashes in kernel space, directly facilitating privilege escalation via software vulnerability exploitation.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly requires timely identification, reporting, and remediation of flaws like this kernel out-of-bounds write via patching the rtc-pcf85063 driver.
Reduces attack surface by limiting systems to least functionality, such as disabling the unnecessary rtc-pcf85063 driver to prevent exposure to the vulnerability.
Enables vulnerability scanning to identify systems with affected Linux kernel versions incorporating the rtc-pcf85063 flaw, facilitating targeted remediation.