7.8high
rtc: pcf85063: fix potential OOB write in PCF85063 NVMEM read
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before 21cd59fcb9952eb7505da2bdfc1eb9c619df3ff4, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before 6f2a8ca9a0a38589f52a7f0fb9425b9ba987ae7c, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before e5536677da803ed54a29a446515c28dce7d3d574, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before c72b7a474d3f445bf0c5bcf8ffed332c78eb28a1, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before 9adefa7b9559d0f21034a5d5ec1b55840c9348b9, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before e5e06455760f2995b16a176033909347929d1128, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before 517aedb365f2c94e2d7e0b908ac7127df76203a1, from fadfd092ee9138825d8c2a4f95719d2e2e3202b9 before 3ab8c5ed4f84fa20cd16794fe8dc31f633fbc70c and 1 more Not affected: before 5.2, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.129 up to 6.1.*, from 6.6.76 up to 6.6.* | CVE List |
| linux linux_kernel | from 5.2 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.179, from 5.16 before 6.1.129, from 6.2 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: rtc: pcf85063: se corrige una posible escritura OOB en la lectura NVMEM PCF85063 La interfaz nvmem admite tamaños de búfer variables, mientras que la interfaz regmap opera con almacenamiento de tamaño fijo. Si un cliente nvmem usa un tamaño de búfer menor a 4 bytes, regmap_read escribirá fuera de los límites ya que espera que el búfer apunte a una int sin signo. Corrija esto usando una int sin signo intermedia para contener el valor.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58069 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-58069 changed 2026-06-17 | Public domain |