CVE-2025-38012

sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator

State
Published
Severity
7.8 High
Published
Jun 18, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 650ba21b131ed1f8ee57826b2c6295a3be221132 to before 0102989af4c334d1d98b2a0fd4d61a5152e39b72Affected
  • 650ba21b131ed1f8ee57826b2c6295a3be221132 to before 255dd31bfc4a67a19b1fc2cd130a50284dadfe3aAffected
  • 650ba21b131ed1f8ee57826b2c6295a3be221132 to before 428dc9fc0873989d73918d4a9cc22745b7bbc799Affected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.30 through 6.12.*Not affected
  • 6.14.8 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.