# CVE-2024-36957: octeontx2-af: avoid off-by-one read from userspace

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-30T15:35:50.445Z
- Modified: 2026-06-17T07:37:27.063Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; from 5.11.3 before 5.12; 5.12 (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.*; from 6.9 up to *)
- 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
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/bcdac70adceb44373da204c3c297f2a98e13216e> (patch)
- <https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f> (patch)
- <https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67> (patch)
- <https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7> (patch)
- <https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19> (patch)
- <https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-36957](https://www.cve.org/CVERecord?id=CVE-2024-36957), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-36957](https://nvd.nist.gov/vuln/detail/CVE-2024-36957), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36957 · Whole record: https://cve.day/CVE-2024-36957.json · Rebuilt by cve.day 2026-11-25T22:58:41.301Z
