{"id":"CVE-2025-21965","aliases":["CVE-2025-21965"],"related":[],"kind":"vulnerability","state":"published","title":"sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()\n\nIf a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids\nrange) as prev_cpu to scx_bpf_select_cpu_dfl() it can cause a kernel\ncrash.\n\nTo prevent this, validate prev_cpu in scx_bpf_select_cpu_dfl() and\ntrigger an scx error if an invalid CPU is specified.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()\n\nIf a BPF scheduler provides an invalid CPU (outside the nr_cpu_ids\nrange) as prev_cpu to scx_bpf_select_cpu_dfl() it can cause a kernel\ncrash.\n\nTo prevent this, validate prev_cpu in scx_bpf_select_cpu_dfl() and\ntrigger an scx error if an invalid CPU is specified.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sched_ext: Validar prev_cpu en scx_bpf_select_cpu_dfl(). Si un programador BPF proporciona una CPU no válida (fuera del rango nr_cpu_ids) como prev_cpu a scx_bpf_select_cpu_dfl(), puede provocar un fallo del kernel. Para evitarlo, valide prev_cpu en scx_bpf_select_cpu_dfl() y genere un error scx si se especifica una CPU no válida.","source":"nvd"}],"published":"2025-04-01T15:47:01.129Z","modified":"2026-08-05T11:55:41.135Z","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","fixed":"752b56bb76e2471197d25d6948d85753043b10da","status":"affected"},{"type":"git","introduced":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","fixed":"515680e76c536dd4aa8e2b5d674b0d441baddf5b","status":"affected"},{"type":"git","introduced":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","fixed":"9360dfe4cbd62ff1eb8217b815964931523b75b3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.20","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.8","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","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.12","fixed":"6.12.20"},{"status":"affected","introduced":"6.13","fixed":"6.13.8"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/752b56bb76e2471197d25d6948d85753043b10da","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/515680e76c536dd4aa8e2b5d674b0d441baddf5b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9360dfe4cbd62ff1eb8217b815964931523b75b3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21965","url":"https://www.cve.org/CVERecord?id=CVE-2025-21965","licence":"CVE Terms of Use","modified":"2026-08-05T11:55:41.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21965","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21965","licence":"Public domain","modified":"2026-07-30T06:22:00.100Z"}],"updatedAt":"2026-11-25T22:58:55.913Z","epss":{"score":0.00201,"percentile":0.10576,"date":"2026-12-01T12:00:22.000Z"}}