# CVE-2024-58069: rtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-03-06T15:54:09.480Z
- **Modified:** 2026-08-05T11:47:31.980Z

## Who should check

- Anyone running Linux \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< e5536677da803ed54a29a446515c28dce7d3d574; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< c72b7a474d3f445bf0c5bcf8ffed332c78eb28a1; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 9adefa7b9559d0f21034a5d5ec1b55840c9348b9; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< e5e06455760f2995b16a176033909347929d1128; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 517aedb365f2c94e2d7e0b908ac7127df76203a1; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c
- Anyone running Linux 5.2

## 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.

## Affected and fixed versions

- Linux: \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< e5536677da803ed54a29a446515c28dce7d3d574; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< c72b7a474d3f445bf0c5bcf8ffed332c78eb28a1; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 9adefa7b9559d0f21034a5d5ec1b55840c9348b9; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< e5e06455760f2995b16a176033909347929d1128; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 517aedb365f2c94e2d7e0b908ac7127df76203a1; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-58069. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58069.md
Affected: Linux >= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, < 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4; >= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, < 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c; >= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, < e5536677da803ed54a29a446515c28dce7d3d574; >= fadfd092ee9138825d8c2a4…
Fixed in: Linux 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4, Linux 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c, Linux 9adefa7b9559d0f21034a5d5ec1b55840c9348b9, Linux 517aedb365f2c94e2d7e0b908ac7127df76203a1, Linux 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-58069 being exploited?

There is no confirmed exploitation: CVE-2024-58069 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-58069?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-58069?

Linux \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< e5536677da803ed54a29a446515c28dce7d3d574; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< c72b7a474d3f445bf0c5bcf8ffed332c78eb28a1; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 9adefa7b9559d0f21034a5d5ec1b55840c9348b9; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< e5e06455760f2995b16a176033909347929d1128; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 517aedb365f2c94e2d7e0b908ac7127df76203a1; \>= fadfd092ee9138825d8c2a4f95719d2e2e3202b9, \< 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c; Linux 5.2.

### Is there a fix for CVE-2024-58069?

Yes. Fixed in Linux 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4, Linux 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c, Linux 9adefa7b9559d0f21034a5d5ec1b55840c9348b9, Linux 517aedb365f2c94e2d7e0b908ac7127df76203a1, Linux 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c. Upgrade Linux to 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c or later.

### How do I check if I'm affected by CVE-2024-58069?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4>
- patch: <https://git.kernel.org/stable/c/6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c>
- patch: <https://git.kernel.org/stable/c/e5536677da803ed54a29a446515c28dce7d3d574>
- patch: <https://git.kernel.org/stable/c/c72b7a474d3f445bf0c5bcf8ffed332c78eb28a1>
- patch: <https://git.kernel.org/stable/c/9adefa7b9559d0f21034a5d5ec1b55840c9348b9>
- patch: <https://git.kernel.org/stable/c/e5e06455760f2995b16a176033909347929d1128>
- patch: <https://git.kernel.org/stable/c/517aedb365f2c94e2d7e0b908ac7127df76203a1>
- patch: <https://git.kernel.org/stable/c/3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58069>

HTML: <https://flawdb.com/CVE-2024-58069> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58069>
