CVE-2024-58069·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
- 2025-03-06
Affected versions
From: 6.13
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to patch a memory safety issue in the PCF85063 real-time clock driver's NVMEM interface. Systems running kernel versions 6.13 through 6.13.1 should prioritize this update to prevent potential out-of-bounds writes that could occur when NVMEM clients request buffer sizes smaller than the expected 4-byte boundary.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to display your currently running kernel version and compare it against the affected range (6.13.0 - 6.13.1)
- Check if PCF85063 RTC driver is loaded: `lsmod | grep pcf85063` or `grep -i pcf85063 /proc/modules`
- Examine kernel logs for memory access violations: `dmesg | grep -i 'buffer\|oob\|out.of.bounds\|fault'`
- After patching, reboot and confirm the new version: `uname -r` should show 6.13.2 or later
FAQ
What is CVE-2024-58069?
CVE-2024-58069 is a kernel memory safety vulnerability in the PCF85063 real-time clock driver where the NVMEM read function can write beyond allocated buffer boundaries when handling non-standard buffer sizes, potentially leading to kernel memory corruption.
Is CVE-2024-58069 being actively exploited?
No, CVE-2024-58069 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploit code has been disclosed.
What versions of Kernel are affected by CVE-2024-58069?
Linux kernel versions 6.13 through 6.13.1 are affected. The vulnerability was resolved in kernel 6.13.2.
How do I check if my server is vulnerable to CVE-2024-58069?
Run `uname -r` and verify the output is version 6.13.0 or 6.13.1 AND the PCF85063 driver is loaded on your system (`lsmod | grep pcf85063` returns a result).
Does Defensia detect CVE-2024-58069?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-58069 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4
- https://git.kernel.org/stable/c/3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c
- https://git.kernel.org/stable/c/517aedb365f2c94e2d7e0b908ac7127df76203a1
- https://git.kernel.org/stable/c/6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c
- https://git.kernel.org/stable/c/9adefa7b9559d0f21034a5d5ec1b55840c9348b9
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-58069. Free for 1 server.
Get started free