{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-36957","id":"CVE-2024-36957","title":"octeontx2-af: avoid off-by-one read from userspace","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-af: avoid off-by-one read from userspace\n\nWe try to access count + 1 byte from userspace with memdup_user(buffer,\ncount + 1). However, the userspace only provides buffer of count bytes and\nonly these count bytes are verified to be okay to access. To ensure the\ncopied buffer is NUL terminated, we use memdup_user_nul inst","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-af: avoid off-by-one read from userspace\n\nWe try to access count + 1 byte from userspace with memdup_user(buffer,\ncount + 1). However, the userspace only provides buffer of count bytes and\nonly these count bytes are verified to be okay to access. To ensure the\ncopied buffer is NUL terminated, we use memdup_user_nul instead.","published":"2024-05-30T15:35:50.445Z","updated":"2026-11-17T07:02:56.366039585Z","reserved":"2024-05-30T15:25:07.080Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dae49384d0d7695540e2d75168f323cef1384810","lessThan":"bcdac70adceb44373da204c3c297f2a98e13216e","status":"affected","versionType":"git"},{"version":"3a2eb515d1367c0f667b76089a6e727279c688b8","lessThan":"ec697fbd38cbe2eef0948b58673b146caa95402f","status":"affected","versionType":"git"},{"version":"3a2eb515d1367c0f667b76089a6e727279c688b8","lessThan":"8f11fe3ea3fc261640cfc8a5addd838000407c67","status":"affected","versionType":"git"},{"version":"3a2eb515d1367c0f667b76089a6e727279c688b8","lessThan":"0a0285cee11c7dcc2657bcd456e469958a5009e7","status":"affected","versionType":"git"},{"version":"3a2eb515d1367c0f667b76089a6e727279c688b8","lessThan":"fc3e0076c1f82fe981d321e3a7bad4cbee542c19","status":"affected","versionType":"git"},{"version":"3a2eb515d1367c0f667b76089a6e727279c688b8","lessThan":"f299ee709fb45036454ca11e90cb2810fe771878","status":"affected","versionType":"git"},{"version":"c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7","status":"affected","versionType":"git"},{"version":"5.10.20","lessThan":"5.10.217","status":"affected","versionType":"semver"},{"version":"5.11.3","lessThan":"5.12","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"5.10.217","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.159","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.91","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.31","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.8.10","lessThanOrEqual":"6.8.*","status":"unaffected","versionType":"semver"},{"version":"6.9","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-193"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/bcdac70adceb44373da204c3c297f2a98e13216e","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878","tags":["x_transferred","Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36957.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36957","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00238,"epssPercentile":0.14975,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-36957","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36957","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-36957","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-36957","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}