{"id":"CVE-2025-38012","aliases":["CVE-2025-38012"],"related":[],"kind":"vulnerability","state":"published","title":"sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: bpf_iter_scx_dsq_new() should always initialize iterator\n\nBPF programs may call next() and destroy() on BPF iterators even after new()\nreturns an error value (e.g. bpf_for_each() macro ignores error returns from\nnew()). bpf_iter_scx_dsq_new() could leave the iterator in an uninitialized\nstate after an error return causing bpf_iter_scx_dsq_next() to dereference\ngarbage data. Make bpf_iter_scx_dsq_new() always clear $kit->dsq so that\nnext() and destroy() become noops.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: bpf_iter_scx_dsq_new() should always initialize iterator\n\nBPF programs may call next() and destroy() on BPF iterators even after new()\nreturns an error value (e.g. bpf_for_each() macro ignores error returns from\nnew()). bpf_iter_scx_dsq_new() could leave the iterator in an uninitialized\nstate after an error return causing bpf_iter_scx_dsq_next() to dereference\ngarbage data. Make bpf_iter_scx_dsq_new() always clear $kit->dsq so that\nnext() and destroy() become noops.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sched_ext: bpf_iter_scx_dsq_new() siempre debe inicializar el iterador. Los programas BPF pueden llamar a next() y destroy() en iteradores BPF incluso después de que new() devuelva un valor de error (p. ej., la macro bpf_for_each() ignora los errores devueltos por new()). bpf_iter_scx_dsq_new() podría dejar el iterador sin inicializar después de un error, lo que provoca que bpf_iter_scx_dsq_next() desreferencia datos innecesarios. Asegúrese de que bpf_iter_scx_dsq_new() siempre borre $kit-&gt;dsq para que next() y destroy() se conviertan en noops.","source":"nvd"}],"published":"2025-06-18T09:28:22.057Z","modified":"2026-08-05T11:58:57.764Z","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-908"],"affected":[{"ranges":[{"type":"git","introduced":"650ba21b131ed1f8ee57826b2c6295a3be221132","fixed":"0102989af4c334d1d98b2a0fd4d61a5152e39b72","status":"affected"},{"type":"git","introduced":"650ba21b131ed1f8ee57826b2c6295a3be221132","fixed":"255dd31bfc4a67a19b1fc2cd130a50284dadfe3a","status":"affected"},{"type":"git","introduced":"650ba21b131ed1f8ee57826b2c6295a3be221132","fixed":"428dc9fc0873989d73918d4a9cc22745b7bbc799","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.30","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.8","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","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.30"},{"status":"affected","introduced":"6.13","fixed":"6.14.8"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0102989af4c334d1d98b2a0fd4d61a5152e39b72","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/255dd31bfc4a67a19b1fc2cd130a50284dadfe3a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/428dc9fc0873989d73918d4a9cc22745b7bbc799","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38012","url":"https://www.cve.org/CVERecord?id=CVE-2025-38012","licence":"CVE Terms of Use","modified":"2026-08-05T11:58:57.764Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38012","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38012","licence":"Public domain","modified":"2026-07-30T06:22:44.367Z"}],"updatedAt":"2026-11-25T22:58:59.337Z","epss":{"score":0.00212,"percentile":0.12177,"date":"2026-12-01T12:00:22.000Z"}}