{"id":"CVE-2024-36957","summary":"octeontx2-af: avoid off-by-one read from userspace","details":"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.","modified":"2026-11-17T07:02:56.366039585Z","published":"2024-05-30T15:35:50.445Z","related":["ALSA-2024:4583","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2024:3983-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:4364-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36957.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bcdac70adceb44373da204c3c297f2a98e13216e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36957.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36957"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dae49384d0d7695540e2d75168f323cef1384810"},{"fixed":"bcdac70adceb44373da204c3c297f2a98e13216e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3a2eb515d1367c0f667b76089a6e727279c688b8"},{"fixed":"ec697fbd38cbe2eef0948b58673b146caa95402f"},{"fixed":"8f11fe3ea3fc261640cfc8a5addd838000407c67"},{"fixed":"0a0285cee11c7dcc2657bcd456e469958a5009e7"},{"fixed":"fc3e0076c1f82fe981d321e3a7bad4cbee542c19"},{"fixed":"f299ee709fb45036454ca11e90cb2810fe771878"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c9a2ed3fdd037314a71e6a6ba5d99a3605f6f9c7"}]}],"versions":["v5.10.216","v5.10.215","v5.10.214","v5.10.213","v5.10.212","v5.10.211","v5.10.210","v5.10.209","v5.10.208","v5.10.207","v5.10.206","v5.10.205","v5.10.204","v5.10.203","v5.10.202","v5.10.201","v5.10.200","v5.10.199","v5.10.198","v5.10.197","v5.10.196","v5.10.195","v5.10.194","v5.10.193","v5.10.192","v5.10.191","v5.10.190","v5.10.189","v5.10.188","v5.10.187","v5.10.186","v5.10.185","v5.10.184","v5.10.183","v5.10.182","v5.10.181","v5.10.180","v5.10.179","v5.10.178","v5.10.177","v5.10.176","v5.10.175","v5.10.174","v5.10.173","v5.10.172","v5.10.171","v5.10.170","v5.10.169","v5.10.168","v5.10.167","v5.10.166","v5.10.165","v5.10.164","v5.10.163","v5.10.162","v5.10.161","v5.10.160","v5.10.159","v5.10.158","v5.10.157","v5.10.156","v5.10.155","v5.10.154","v5.10.153","v5.10.152","v5.10.151","v5.10.150","v5.10.149","v5.10.148","v5.10.147","v5.10.146","v5.10.145","v5.10.144","v5.10.143","v5.10.142","v5.10.141","v5.10.140","v5.10.139","v5.10.138","v5.10.137","v5.10.136","v5.10.135","v5.10.134","v5.10.133","v5.10.132","v5.10.131","v5.10.130","v5.10.129","v5.10.128","v5.10.127","v5.10.126","v5.10.125","v5.10.124","v5.10.123","v5.10.122","v5.10.121","v5.10.120","v5.10.119","v5.10.118","v5.10.117","v5.10.116","v5.10.115","v5.10.114","v5.10.113","v5.10.112","v5.10.111","v5.10.110","v5.10.109","v5.10.108","v5.10.107","v5.10.106","v5.10.105","v5.10.104","v5.10.103","v5.10.102","v5.10.101","v5.10.100","v5.10.99","v5.10.98","v5.10.97","v5.10.96","v5.10.95","v5.10.94","v5.10.93","v5.10.92","v5.10.91","v5.10.90","v5.10.89","v5.10.88","v5.10.87","v5.10.86","v5.10.85","v5.10.84","v5.10.83","v5.10.82","v5.10.81","v5.10.80","v5.10.79","v5.10.78","v5.10.77","v5.10.76","v5.10.75","v5.10.74","v5.10.73","v5.10.72","v5.10.71","v5.10.70","v5.10.69","v5.10.68","v5.10.67","v5.10.66","v5.10.65","v5.10.64","v5.10.63","v5.10.62","v5.10.61","v5.10.60","v5.10.59","v5.10.58","v5.10.57","v5.10.56","v5.10.55","v5.10.54","v5.10.53","v5.10.52","v5.10.51","v5.10.50","v5.10.49","v5.10.48","v5.10.47","v5.10.46","v5.10.45","v5.10.44","v5.10.43","v5.10.42","v5.10.41","v5.10.40","v5.10.39","v5.10.38","v5.10.37","v5.10.36","v5.10.35","v5.10.34","v5.10.33","v5.10.32","v5.10.31","v5.10.30","v5.10.29","v5.10.28","v5.10.27","v5.10.26","v5.10.25","v5.10.24","v5.10.23","v5.10.22","v5.10.21","v5.10.20","v5.11.22","v5.11.21","v5.11.20","v5.11.19","v5.11.18","v5.11.17","v5.11.16","v5.11.15","v5.11.14","v5.11.13","v5.11.12","v5.11.11","v5.11.10","v5.11.9","v5.11.8","v5.11.7","v5.11.6","v5.11.5","v5.11.4","v5.11.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36957.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.20"},{"fixed":"5.10.217"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.3"},{"fixed":"5.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.12.0"},{"fixed":"5.15.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.91"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.31"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.8.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36957.json"}}],"schema_version":"1.9.2"}