VDB

CVE-2025-38012

CVE-2025-38012 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
LinuxLinux6.12, 428dc9fc0873989d73918d4a9cc22745b7bbc799, 255dd31bfc4a67a19b1fc2cd130a50284dadfe3a, 0102989af4c334d1d98b2a0fd4d61a5152e39b72

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.21%
11.5th percentile

Affected products

VendorProductVersions
LinuxLinux650ba21b131ed1f8ee57826b2c6295a3be221132, 650ba21b131ed1f8ee57826b2c6295a3be221132, 650ba21b131ed1f8ee57826b2c6295a3be221132
LinuxLinux6.12, 0, 6.12.30
LinuxLinux0, 650ba21b131ed1f8ee57826b2c6295a3be221132, 650ba21b131ed1f8ee57826b2c6295a3be221132
amazon:2023kernel-tools0
amazon:2023perf6.120
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.30-34.920
amazon:2023kernel-headers0
linuxlinux_kernel6.12, 6.12, 6.12
amazon:2023kernel-devel0
amazon:2023kernel-tools-devel0
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023bpftool0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›