CVE-2024-36957
octeontx2-af: avoid off-by-one read from userspace
Mitigation
- Upgrade Linux to 5.12 or later.
Who should check
- Anyone running Linux >= dae49384d0d7695540e2d75168f323cef1384810, < bcdac70adceb44373da204c3c297f2a98e13216e; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < ec697fbd38cbe2eef0948b58673b146caa95402f; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 8f11fe3ea3fc261640cfc8a5addd838000407c67; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 0a0285cee11c7dcc2657bcd456e469958a5009e7; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < fc3e0076c1f82fe981d321e3a7bad4cbee542c19; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < f299ee709fb45036454ca11e90cb2810fe771878; c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7; >= 5.10.20, < 5.10.217; >= 5.11.3, < 5.12
- Anyone running Linux 5.12
Vulnerability facts
- Affected
- Linux >= dae49384d0d7695540e2d75168f323cef1384810, < bcdac70adceb44373da204c3c297f2a98e13216e; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < ec697fbd38cbe2eef0948b58673b146caa95402f; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 8f11fe3ea3fc261640cfc8a5addd838000407c67; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 0a0285cee11c7dcc2657bcd456e469958a5009e7; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < fc3e0076c1f82fe981d321e3a7bad4cbee542c19; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < f299ee709fb45036454ca11e90cb2810fe771878; c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7; >= 5.10.20, < 5.10.217; >= 5.11.3, < 5.12; Linux 5.12
- Fixed in
- Linux 8f11fe3ea3fc261640cfc8a5addd838000407c67, Linux 0a0285cee11c7dcc2657bcd456e469958a5009e7, Linux 5.10.217, Linux 5.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-193
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= dae49384d0d7695540e2d75168f323cef1384810, < bcdac70adceb44373da204c3c297f2a98e13216e; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < ec697fbd38cbe2eef0948b58673b146caa95402f; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 8f11fe3ea3fc261640cfc8a5addd838000407c67; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 0a0285cee11c7dcc2657bcd456e469958a5009e7; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < fc3e0076c1f82fe981d321e3a7bad4cbee542c19; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < f299ee709fb45036454ca11e90cb2810fe771878; c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7; >= 5.10.20, < 5.10.217; >= 5.11.3, < 5.12 | — | cvelist |
| Linux | 5.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-36957. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-36957.md Affected: Linux >= dae49384d0d7695540e2d75168f323cef1384810, < bcdac70adceb44373da204c3c297f2a98e13216e; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < ec697fbd38cbe2eef0948b58673b146caa95402f; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 8f11fe3ea3fc261640cfc8a5addd838000407c67; >= 3a2eb515d1367c0f667b760… Fixed in: Linux 8f11fe3ea3fc261640cfc8a5addd838000407c67, Linux 0a0285cee11c7dcc2657bcd456e469958a5009e7, Linux 5.10.217, Linux 5.12 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.
References
Patches
- https://git.kernel.org/stable/c/bcdac70adceb44373da204c3c297f2a98e13216e
- https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f
- https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67
- https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7
- https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19
- https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878
FAQ
Is CVE-2024-36957 being exploited?
There is no confirmed exploitation: CVE-2024-36957 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-36957?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-36957?
Linux >= dae49384d0d7695540e2d75168f323cef1384810, < bcdac70adceb44373da204c3c297f2a98e13216e; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < ec697fbd38cbe2eef0948b58673b146caa95402f; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 8f11fe3ea3fc261640cfc8a5addd838000407c67; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < 0a0285cee11c7dcc2657bcd456e469958a5009e7; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < fc3e0076c1f82fe981d321e3a7bad4cbee542c19; >= 3a2eb515d1367c0f667b76089a6e727279c688b8, < f299ee709fb45036454ca11e90cb2810fe771878; c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7; >= 5.10.20, < 5.10.217; >= 5.11.3, < 5.12; Linux 5.12.
Is there a fix for CVE-2024-36957?
Yes. Fixed in Linux 8f11fe3ea3fc261640cfc8a5addd838000407c67, Linux 0a0285cee11c7dcc2657bcd456e469958a5009e7, Linux 5.10.217, Linux 5.12. Upgrade Linux to 5.12 or later.
How do I check if I'm affected by CVE-2024-36957?
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.