{"id":"CVE-2026-74689","aliases":["CVE-2026-74689"],"related":[],"kind":"vulnerability","state":"published","title":"net/atm: fix slab-out-of-bounds read in vcc_setsockopt()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/atm: fix slab-out-of-bounds read in vcc_setsockopt()\n\nvcc_setsockopt() contained an ineffective optlen check:\n  if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname))\n      return -EINVAL;\n\nIf __SO_LEVEL_MATCH(optname, level) evaluated to false (e.g. if the caller\npassed a mismatched level), the length check optlen != __SO_SIZE(optname)\nwas short-circuited and bypassed. Execution then fell through to switch(optname),\ncalling copy_from_sockptr() assuming optval contained sufficient space.\n\nFurthermore, even if level matched, a cgroup BPF setsockopt filter could shrink\noptlen after entry. Because copy_from_sockptr() on kernel pointers uses memcpy(),\nthis leads to a KASAN slab-out-of-bounds read when optlen is smaller than the\nexpected structure size.\n\nFix this by using copy_safe_from_sockptr(), which unconditionally validates\nthat optlen is at least the expected size before copying. Also change the local\n'value' variable type from 'unsigned long' to 'int' so that SO_SETCLP matches\nits sizeof(int) ABI encoding on 64-bit systems.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/atm: fix slab-out-of-bounds read in vcc_setsockopt()\n\nvcc_setsockopt() contained an ineffective optlen check:\n  if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname))\n      return -EINVAL;\n\nIf __SO_LEVEL_MATCH(optname, level) evaluated to false (e.g. if the caller\npassed a mismatched level), the length check optlen != __SO_SIZE(optname)\nwas short-circuited and bypassed. Execution then fell through to switch(optname),\ncalling copy_from_sockptr() assuming optval contained sufficient space.\n\nFurthermore, even if level matched, a cgroup BPF setsockopt filter could shrink\noptlen after entry. Because copy_from_sockptr() on kernel pointers uses memcpy(),\nthis leads to a KASAN slab-out-of-bounds read when optlen is smaller than the\nexpected structure size.\n\nFix this by using copy_safe_from_sockptr(), which unconditionally validates\nthat optlen is at least the expected size before copying. Also change the local\n'value' variable type from 'unsigned long' to 'int' so that SO_SETCLP matches\nits sizeof(int) ABI encoding on 64-bit systems.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/atm: corrige lectura fuera de límites de slab en vcc_setsockopt()\n\nvcc_setsockopt() contenía una comprobación de optlen ineficaz:\n  if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname))\n      return -EINVAL;\n\nSi __SO_LEVEL_MATCH(optname, level) evaluaba a falso (por ejemplo, si el llamador pasaba un nivel no coincidente), la comprobación de longitud optlen != __SO_SIZE(optname) era cortocircuitada y omitida. La ejecución entonces pasaba a switch(optname), llamando a copy_from_sockptr() asumiendo que optval contenía espacio suficiente.\n\nAdemás, incluso si el nivel coincidía, un filtro setsockopt de cgroup BPF podría reducir optlen después de la entrada. Debido a que copy_from_sockptr() en punteros de kernel usa memcpy(), esto lleva a una lectura fuera de límites de slab de KASAN cuando optlen es menor que el tamaño de estructura esperado.\n\nSolucione esto usando copy_safe_from_sockptr(), que valida incondicionalmente que optlen tiene al menos el tamaño esperado antes de copiar. También cambie el tipo de la variable local 'value' de 'unsigned long' a 'int' para que SO_SETCLP coincida con su codificación ABI sizeof(int) en sistemas de 64 bits.","source":"nvd"}],"published":"2026-08-22T15:32:54.034Z","modified":"2026-10-16T20:17:51.950Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"b3bcd5d65ac03c15787b2a5b36c718e26a689336","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"35f258fee9ed358c6d0f57f91c30bf029c3724af","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"6eb6af88710977eb529b558a07294874d8c40c4d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9f77c1ab382188f5b51982fab6d913443b6dc59f","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2c5988c7349c0b64a7e0441bfc6e1dca54f7116a","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d0c80dbb970439bd2eeb0e5effff8c16a5f4e1e3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b3bcd5d65ac03c15787b2a5b36c718e26a689336","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35f258fee9ed358c6d0f57f91c30bf029c3724af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6eb6af88710977eb529b558a07294874d8c40c4d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f77c1ab382188f5b51982fab6d913443b6dc59f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c5988c7349c0b64a7e0441bfc6e1dca54f7116a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0c80dbb970439bd2eeb0e5effff8c16a5f4e1e3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T19:14:36.506Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74689","url":"https://www.cve.org/CVERecord?id=CVE-2026-74689","licence":"CVE Terms of Use","modified":"2026-10-16T19:16:09.361Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74689","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74689","licence":"Public domain","modified":"2026-10-16T20:17:51.950Z"}],"updatedAt":"2026-11-25T22:59:34.935Z","epss":{"score":0.00139,"percentile":0.03485,"date":"2026-12-01T12:00:22.000Z"}}