VYPR
High severity7.8NVD Advisory· Published Jun 18, 2025· Updated Jul 30, 2026

CVE-2025-38012

CVE-2025-38012

Description

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

10
  • Linux/Kernelcpe-rescue9 versions
    6.12+ 8 more
    • (no CPE)range: 6.12
    • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*range: >=6.12,<6.12.30
    • cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:*
    • (no CPE)
  • osv-coords
    Range: >= 6.12.0, < 6.12.30

Patches

Vulnerability mechanics

References

3

News mentions

0

No linked articles in our index yet.