CVE-2025-38012Use of Uninitialized Resource in Linux

Severity
5.5MEDIUMNVD
OSV7.8
EPSS
0.0%
top 84.93%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJun 18
Latest updateAug 28

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 $k

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel6.126.12.30+2
Debianlinux/linux_kernel< 6.12.30-1+1
CVEListV5linux/linux650ba21b131ed1f8ee57826b2c6295a3be2211320102989af4c334d1d98b2a0fd4d61a5152e39b72+3
debiandebian/linux< linux 6.12.30-1 (forky)

Patches

🔴Vulnerability Details

5
OSV
linux-azure vulnerabilities2025-08-28
OSV
linux-hwe-6.14, linux-oem-6.14 vulnerabilities2025-08-20
OSV
linux, linux-aws, linux-aws-6.14, linux-gcp, linux-gcp-6.14, linux-oracle, linux-oracle-6.14, linux-raspi, linux-realtime vulnerabilities2025-08-18
OSV
CVE-2025-38012: In the Linux kernel, the following vulnerability has been resolved: sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator BPF programs m2025-06-18
GHSA
GHSA-99r2-xh56-23cv: In the Linux kernel, the following vulnerability has been resolved: sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator BPF programs2025-06-18

📋Vendor Advisories

5
Ubuntu
Linux kernel (Azure) vulnerabilities2025-08-28
Ubuntu
Linux kernel (HWE) vulnerabilities2025-08-20
Ubuntu
Linux kernel vulnerabilities2025-08-18
Red Hat
kernel: sched_ext: bpf_iter_scx_dsq_new() should always initialize iterator2025-06-18
Debian
CVE-2025-38012: linux - In the Linux kernel, the following vulnerability has been resolved: sched_ext: ...2025
CVE-2025-38012 — Use of Uninitialized Resource in Linux | cvebase