CVE-2025-38012 Details
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.
A vulnerability in the Linux kernel's BPF iterator handling has been addressed. The issue arose because the function 'bpf_iter_scx_dsq_new()' did not consistently initialize the iterator, particularly after an error return. This lack of proper initialization could lead to the iterator referencing invalid data. BPF programs might inadvertently call 'next()' and 'destroy()' on these uninitialized iterators, causing 'bpf_iter_scx_dsq_next()' to dereference garbage data. The vulnerability has been fixed by ensuring that 'bpf_iter_scx_dsq_new()' always clears the iterator state, making the 'next()' and 'destroy()' calls harmless.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0102989af4c334d1d98b2a0fd4d61a5152e39b72 | kernel.org | Patch |
| https://git.kernel.org/stable/c/255dd31bfc4a67a19b1fc2cd130a50284dadfe3a | kernel.org | Patch |
| https://git.kernel.org/stable/c/428dc9fc0873989d73918d4a9cc22745b7bbc799 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.12, < 6.12.30 >= 6.13, < 6.14.8 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 6.15 rc5 6.15 rc6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 17, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |