csirt@kutim:~/threat-intel/cve/CVE-2024-42096

Katalog CVE

CVSS 5.5 · Medium EPSS 0,24%

Kerentanan Use of Uninitialized Resource pada linux kernel. Skor CVSS 3.1 5.5 (Medium) menurut NVD.

Deskripsi (NVD)

In the Linux kernel, the following vulnerability has been resolved: x86: stop playing stack games in profile_pc() The 'profile_pc()' function is used for timer-based profiling, which isn't really all that relevant any more to begin with, but it also ends up making assumptions based on the stack layout that aren't necessarily valid. Basically, the code tries to account the time spent in spinlocks to the caller rather than the spinlock, and while I support that as a concept, it's not worth the code complexity or the KASAN warnings when no serious profiling is done using timers anyway these days. And the code really does depend on stack layout that is only true in the simplest of cases. We've lost the comment at some point (I think when the 32-bit and 64-bit code was unified), but it used to say: Assume the lock function has either no stack frame or a copy of eflags from PUSHF. which explains why it just blindly loads a word or two straight off the stack pointer and then takes a minimal look at the values to just check if they might be eflags or the return pc: Eflags always has bits 22 and up cleared unlike kernel addresses but that basic stack layout assumption assumes that there isn't any lock debugging etc going on that would complicate the code and cause a stack frame. It causes KASAN unhappiness reported for years by syzkaller [1] and others [2]. With no real practical reason for this any more, just remove the code. Just for historical interest, here's some background commits relating to this code from 2006: 0cb91a229364 ("i386: Account spinlocks to the caller during profiling for !FP kernels") 31679f38d886 ("Simplify profile_pc on x86-64") and a code unification from 2009: ef4512882dbe ("x86: time_32/64.c unify profile_pc") but the basics of this thing actually goes back to before the git tree.

Rincian

Terbit di NVD
29 Juli 2024
Terakhir diubah
17 Juni 2026
Status NVD
Modified
CVSS 3.1
5.5 (Medium), sumber NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H · uraikan di kalkulator
Jenis kelemahan (CWE)
CWE-908: Use of Uninitialized Resource
EPSS (30 hari)
0,24% peluang dieksploitasi; lebih tinggi dari 13,7% CVE lain

Produk dan versi terdampak

VendorProdukVersi terdampak
linux linux kernel Semua versi sebelum 4.19.317
linux linux kernel Versi 4.20 hingga sebelum 5.4.279
linux linux kernel Versi 5.5 hingga sebelum 5.10.221
linux linux kernel Versi 5.11 hingga sebelum 5.15.162
linux linux kernel Versi 5.16 hingga sebelum 6.1.97
linux linux kernel Versi 6.2 hingga sebelum 6.6.37
linux linux kernel Versi 6.7 hingga sebelum 6.9.8
linux linux kernel Versi 6.10 rc1
linux linux kernel Versi 6.10 rc2
linux linux kernel Versi 6.10 rc3
linux linux kernel Versi 6.10 rc4
linux linux kernel Versi 6.10 rc5

> Data dari konfigurasi CPE di NVD.

Referensi dan perbaikan

Sumber: NVD · CVE.org · EPSS. Halaman ini disusun otomatis dari data tersebut; pembaruan terakhir 5 Okt 2026, 20:11 WITA. Kalau sistem di Perangkat Daerah memakai produk ini dan butuh bantuan, laporkan lewat kanal pelaporan.