CVE-2025-38012
sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator
Reported by linux · Published June 18, 2025
In the Linux kernel, the following vulnerability has been resolved: sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator BPF programs may call next() and destroy() on BPF iterators even after new() returns an error value (e.g. bpf_for_each() macro ignores error returns from new()). bpf_iter_scx_dsq_new() could leave the iterator in an uninitialized state after an error return causing bpf_iter_scx_dsq_next() to dereference garbage data. Make bpf_iter_scx_dsq_new() always clear $kit->dsq so that next() and destroy() become noops.
EPSS 0.21% · 11.5th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | 6.12, 428dc9fc0873989d73918d4a9cc22745b7bbc799, 255dd31bfc4a67a19b1fc2cd130a50284dadfe3a, 0102989af4c334d1d98b2a0fd4d61a5152e39b72 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 650ba21b131ed1f8ee57826b2c6295a3be221132, 650ba21b131ed1f8ee57826b2c6295a3be221132, 650ba21b131ed1f8ee57826b2c6295a3be221132 |
| Linux | Linux | 6.12, 0, 6.12.30 |
| Linux | Linux | 0, 650ba21b131ed1f8ee57826b2c6295a3be221132, 650ba21b131ed1f8ee57826b2c6295a3be221132 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.30-34.92 | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 6.12, 6.12, 6.12 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
Timeline
- Jun 17, 2025 CVE Published
- Jun 18, 2025 EPSS Score (30 in total, the first dated here)
- Dec 2, 2025 PoC Published
- Apr 29, 2026 Distribution Patch (235 in total, the first dated here)
- Apr 29, 2026 Security Advisory (246 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Oct 13, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38012
vulnetix vdb fixes CVE-2025-38012
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38012/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart