CVE-2025-38012

MEDIUM

Linux Kernel - Memory Corruption

Title source: llm
STIX 2.1

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

CVSS v3 5.5
EPSS 0.0005
EPSS Percentile 15.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-908
Status published
Products (4)
linux/Kernel 6.12.0 - 6.12.30linux
linux/Kernel 6.13.0 - 6.14.8linux
linux/linux_kernel 6.15 rc1 (6 CPE variants)
linux/linux_kernel 6.12 - 6.12.30
Published Jun 18, 2025
Tracked Since Feb 18, 2026