5.5medium
octeontx2-af: avoid off-by-one read from userspace
- Severity
- 5.5medium CVSS:3.1 by NVD
- 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: octeontx2-af: avoid off-by-one read from userspace We try to access count + 1 byte from userspace with memdup_user(buffer, count + 1). However, the userspace only provides buffer of count bytes and only these count bytes are verified to be okay to access. To ensure the copied buffer is NUL terminated, we use memdup_user_nul instead.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from dae49384d0d7695540e2d75168f323cef1384810 before bcdac70adceb44373da204c3c297f2a98e13216e, from 3a2eb515d1367c0f667b76089a6e727279c688b8 before ec697fbd38cbe2eef0948b58673b146caa95402f, from 3a2eb515d1367c0f667b76089a6e727279c688b8 before 8f11fe3ea3fc261640cfc8a5addd838000407c67, from 3a2eb515d1367c0f667b76089a6e727279c688b8 before 0a0285cee11c7dcc2657bcd456e469958a5009e7, from 3a2eb515d1367c0f667b76089a6e727279c688b8 before fc3e0076c1f82fe981d321e3a7bad4cbee542c19, from 3a2eb515d1367c0f667b76089a6e727279c688b8 before f299ee709fb45036454ca11e90cb2810fe771878, c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7, from 5.10.20 before 5.10.217 and 2 more Not affected: before 5.12, from 5.10.217 up to 5.10.*, from 5.15.159 up to 5.15.*, from 6.1.91 up to 6.1.*, from 6.6.31 up to 6.6.*, from 6.8.10 up to 6.8.* | CVE List |
| linux linux_kernel | from 5.10.20 before 5.10.217, from 5.11.3 before 5.15.159, from 5.16 before 6.1.91, from 6.2 before 6.6.31, from 6.7 before 6.8.10, 6.9 | NVD |
| debian debian_linux | 10.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: octeontx2-af: avoid off-by-one read from userspace We try to access count + 1 byte from userspace with memdup_user(buffer, count + 1). However, the userspace only provides buffer of count bytes and only these count bytes are verified to be okay to access. To ensure the copied buffer is NUL terminated, we use memdup_user_nul instead.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: octeontx2-af: evitar lecturas uno por uno desde el espacio de usuario Intentamos acceder al recuento + 1 byte desde el espacio de usuario con memdup_user (búfer, recuento + 1). Sin embargo, el espacio de usuario solo proporciona un búfer de bytes de recuento y solo se verifica que se puede acceder a estos bytes de recuento. Para garantizar que el búfer copiado tenga terminación NUL, usamos memdup_user_nul en su lugar.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-36957 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-36957 changed 2026-06-17 | Public domain |