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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-30 · Modified: 2026-05-23
- Aliases: UBUNTU-CVE-2024-36957, DEBIAN-CVE-2024-36957
- Record: https://cvemate.com/vulnerability/CVE-2024-36957 · JSON: https://cvemate.com/vulnerability/CVE-2024-36957/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.238%, percentile 15.804%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 121)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.8.11-1
- ubuntu linux (Ubuntu): \< 5.15.0-118.128 \| \< 6.8.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1067.73 \| \< 6.8.0-1013.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1067.73~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1013.14~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1067.73+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1070.79 \| \< 6.8.0-1012.14
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1070.79~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 23)

- <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>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>
- <https://ubuntu.com/security/CVE-2024-36957>
- <https://www.cve.org/CVERecord?id=CVE-2024-36957>
- <https://git.kernel.org/linus/f299ee709fb45036454ca11e90cb2810fe771878>
- <https://ubuntu.com/security/notices/USN-6949-1>
- <https://ubuntu.com/security/notices/USN-6950-1>
- <https://ubuntu.com/security/notices/USN-6952-1>
- <https://ubuntu.com/security/notices/USN-6955-1>
- <https://ubuntu.com/security/notices/USN-6956-1>
- <https://ubuntu.com/security/notices/USN-6957-1>
- <https://ubuntu.com/security/notices/USN-6950-2>
- <https://ubuntu.com/security/notices/USN-6950-3>
- <https://ubuntu.com/security/notices/USN-6949-2>
- <https://ubuntu.com/security/notices/USN-6952-2>

---

Data as of 2026-12-05T04:47:41.844Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
