CVE Catalog

CVE-2025-38012

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

6th percentile - higher than 6% of all known CVEs

Summary

In the Linux kernel sched_ext scheduler, bpf_iter_scx_dsq_new() may leave the iterator uninitialized on error, leading to garbage data dereference in next() or destroy().

Risk Assessment

BPF programs may cause undefined behavior or system crashes if the iterator is not properly initialized after an error.

Recommendation

Update the Linux kernel to a version containing the fix that always clears the iterator on error.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS