CVE-2024-36957
octeontx2-af: avoid off-by-one read from userspace
Check your servers for CVE-2024-36957
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36957 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from dae49384d0d7695540e2d75168f323cef1384810, before bcdac70adceb44373da204c3c297f2a98e13216e affected from 3a2eb515d1367c0f667b76089a6e727279c688b8, before ec697fbd38cbe2eef0948b58673b146caa95402f affected from 3a2eb515d1367c0f667b76089a6e727279c688b8, before 8f11fe3ea3fc261640cfc8a5addd838000407c67 affected from 3a2eb515d1367c0f667b76089a6e727279c688b8, before 0a0285cee11c7dcc2657bcd456e469958a5009e7 affected from 3a2eb515d1367c0f667b76089a6e727279c688b8, before fc3e0076c1f82fe981d321e3a7bad4cbee542c19 affected from 3a2eb515d1367c0f667b76089a6e727279c688b8, before f299ee709fb45036454ca11e90cb2810fe771878 affected c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7 affected from 5.10.20, before 5.10.217 affected from 5.11.3, before 5.12
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.10.217 up to and including 5.10.* unaffected from 5.15.159 up to and including 5.15.* unaffected from 6.1.91 up to and including 6.1.* unaffected from 6.6.31 up to and including 6.6.* unaffected from 6.8.10 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36957 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36957
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-36957
trivy image --scanners vuln IMAGE | grep CVE-2024-36957
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/bcdac70adceb44373da204c3c297f2a98e13216e git.kernel.org
- https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f git.kernel.org
- https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67 git.kernel.org
- https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7 git.kernel.org
- https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19 git.kernel.org
- https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html lists.debian.org
Source: the record CVE-2024-36957 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse