{"id":"CVE-2026-64036","aliases":["CVE-2026-64036"],"related":[],"kind":"vulnerability","state":"published","title":"cgroup/rstat: validate cpu before css_rstat_cpu() access","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/rstat: validate cpu before css_rstat_cpu() access\n\ncss_rstat_updated() is exposed as a BPF kfunc and accepts a\ncaller-provided cpu argument. The function uses cpu for per-cpu rstat\nlookups without checking whether it refers to a valid possible CPU.\n\nA BPF iter/cgroup program with CAP_BPF and CAP_PERFMON can pass an\ninvalid cpu value. On an unfixed UBSCAN_BOUNDS test kernel, cpu ==\n0x7fffffff triggers:\n\n  UBSAN: array-index-out-of-bounds in kernel/cgroup/rstat.c:31:9\n  index 2147483647 is out of range for type 'long unsigned int [64]'\n  Call Trace:\n    css_rstat_updated\n    bpf_iter_run_prog\n    cgroup_iter_seq_show\n    bpf_seq_read\n\nAdd cpu validation to the BPF-facing css_rstat_updated() kfunc and\nmove the common implementation to __css_rstat_updated() for in-kernel\ncallers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/rstat: validate cpu before css_rstat_cpu() access\n\ncss_rstat_updated() is exposed as a BPF kfunc and accepts a\ncaller-provided cpu argument. The function uses cpu for per-cpu rstat\nlookups without checking whether it refers to a valid possible CPU.\n\nA BPF iter/cgroup program with CAP_BPF and CAP_PERFMON can pass an\ninvalid cpu value. On an unfixed UBSCAN_BOUNDS test kernel, cpu ==\n0x7fffffff triggers:\n\n  UBSAN: array-index-out-of-bounds in kernel/cgroup/rstat.c:31:9\n  index 2147483647 is out of range for type 'long unsigned int [64]'\n  Call Trace:\n    css_rstat_updated\n    bpf_iter_run_prog\n    cgroup_iter_seq_show\n    bpf_seq_read\n\nAdd cpu validation to the BPF-facing css_rstat_updated() kfunc and\nmove the common implementation to __css_rstat_updated() for in-kernel\ncallers.","source":"cvelist"}],"published":"2026-07-19T15:39:24.783Z","modified":"2026-10-30T13:19:29.250Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"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:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125","CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"a319185be9f5ad13c2a296d448ac52ffe45d194c","fixed":"ee5afb74688aa6f1f16d8c7e7b6bfaf803fb62fc","status":"affected"},{"type":"git","introduced":"a319185be9f5ad13c2a296d448ac52ffe45d194c","fixed":"b28b862b07257219755d0b0a7fbe5d23b7c9ea91","status":"affected"},{"type":"git","introduced":"a319185be9f5ad13c2a296d448ac52ffe45d194c","fixed":"3d595affbe00a2e8bf43b9f2947a8efcdc1c059e","status":"affected"},{"type":"git","introduced":"a319185be9f5ad13c2a296d448ac52ffe45d194c","fixed":"6a01413a4e8fcb0263d7bef5075c5f8f4eb3a8b6","status":"affected"},{"type":"git","introduced":"a319185be9f5ad13c2a296d448ac52ffe45d194c","fixed":"fd2bd9fa7700ddf28296486b2598cff2f80cc819","status":"affected"},{"type":"git","introduced":"a319185be9f5ad13c2a296d448ac52ffe45d194c","fixed":"8817005efbdfdf5d4e4814cb5dc52b53d12917d7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.34","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.11","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1","fixed":"6.18.34"},{"status":"affected","introduced":"6.19","fixed":"7.0.11"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ee5afb74688aa6f1f16d8c7e7b6bfaf803fb62fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b28b862b07257219755d0b0a7fbe5d23b7c9ea91","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d595affbe00a2e8bf43b9f2947a8efcdc1c059e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a01413a4e8fcb0263d7bef5075c5f8f4eb3a8b6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fd2bd9fa7700ddf28296486b2598cff2f80cc819","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8817005efbdfdf5d4e4814cb5dc52b53d12917d7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:35:47.371Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64036","url":"https://www.cve.org/CVERecord?id=CVE-2026-64036","licence":"CVE Terms of Use","modified":"2026-10-30T12:27:30.942Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64036","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64036","licence":"Public domain","modified":"2026-10-30T13:19:29.250Z"}],"updatedAt":"2026-11-25T22:59:28.954Z","epss":{"score":0.00176,"percentile":0.04211,"date":"2026-11-30T12:00:22.000Z"}}