bpf: Fix accesses to uninit stack slots
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix accesses to uninit stack slots Privileged programs are supposed to be able to read uninitialized stack memory (ever since 6715df8d5) but, before this patch, these accesses were permitted inconsistently. In particular, accesses were permitted above state->allocated_stack, but not below it. In other words, if the stack was already "large enough", the access was permitted, but otherwise the access was rejected instead of being allowed to "grow the stack". This undesired rejection was happening in two places: - in check_stack_slot_within_bounds() - in check_stack_range_initialized() This patch arranges for these accesses to be permitted. A bunch of tests that were relying on the old rejection had to change; all of them were changed to add also run unprivileged, in which case the old behavior persists. One tests couldn't be updated - global_func16 - because it can't run unprivileged for other reasons. This patch also fixes the tracking of the stack size for variable-offset reads. This second fix is bundled in the same commit as the first one because they're inter-related. Before this patch, writes to the stack using registers containing a variable offset (as opposed to registers with fixed, known values) were not properly contributing to the function's needed stack size. As a result, it was possible for a program to verify, but then to attempt to read out-of-bounds data at runtime because a too small stack had been allocated for it. Each function tracks the size of the stack it needs in bpf_subprog_info.stack_depth, which is maintained by update_stack_depth(). For regular memory accesses, check_mem_access() was calling update_state_depth() but it was passing in only the fixed part of the offset register, ignoring the variable offset. This was incorrect; the minimum possible value of that register should be used instead. This tracking is now fixed by centralizing the tracking of stack size in grow_stack_state(), and by lifting the calls to grow_stack_state() to check_stack_access_within_bounds() as suggested by Andrii. The code is now simpler and more convincingly tracks the correct maximum stack size. check_stack_range_initialized() can now rely on enough stack having been allocated for the access; this helps with the fix for the first issue. A few tests were changed to also check the stack depth computation. The one that fails without this patch is verifier_var_off:stack_write_priv_vs_unpriv.
- Yayın
- 22 Şub 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 14. yüzdelik
- CWE
- CWE-665
Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.
Rapor araçları
Aksiyon skoru
31
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,2
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
Veritabanındaki yüz binlerce zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.
Bu ürünü kullanıyoruz, yardım isteyinEtkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Etkilenen sürümler
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’ine sürümle eklersen eşleşme bunlarla yapılır.
- linux linux kernel5.12 ve sonrası · 6.6.14 öncesi
- linux linux kernel6.7.0 ve sonrası · 6.7.2 öncesi
Üreticinin bildirdiği sürümler
Kaydı açan otorite (Linux) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
Linux Linux
- f3c4b01689d392373301e6e60d1b02c5b4020afc, d1b725ea5d104caea250427899f4e2e3ab15b4fc, 5.12etkilenir
- 01f810ace9ed37255f27608a0864abebccf0aab3 ve sonrası · 0954982db8283016bf38e9db2da5adf47a102e19 öncesietkilenir · git
- 01f810ace9ed37255f27608a0864abebccf0aab3 ve sonrası · fbcf372c8eda2290470268e0afb5ab5d5f5d5fde öncesietkilenir · git
- 01f810ace9ed37255f27608a0864abebccf0aab3 ve sonrası · 6b4a64bafd107e521c01eec3453ce94a3fb38529 öncesietkilenir · git
- 5.10.33 ve sonrası · 5.11 öncesietkilenir · semver
- 5.11.17 ve sonrası · 5.12 öncesietkilenir · semver
- 5.12 öncesietkilenmez · semver
- 6.6.14 ve sonrası · 6.6.* dahil öncesietkilenmez · semver
- 6.7.2 ve sonrası · 6.7.* dahil öncesietkilenmez · semver
- 6.8 ve sonrasıetkilenmez · original_commit_for_fix
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| Debian:12 | linux | tüm sürümler | — |
| Debian:13 | linux | 6.6.15-1 öncesi | 6.6.15-1 |
| openSUSE:Leap 15.5 | dtb-aarch64 | 5.14.21-150500.55.52.1 öncesi | 5.14.21-150500.55.52.1 |
| openSUSE:Leap 15.5 | kernel-debug | 5.14.21-150500.55.52.1 öncesi | 5.14.21-150500.55.52.1 |
| openSUSE:Leap 15.5 | kernel-kvmsmall | 5.14.21-150500.55.52.1 öncesi | 5.14.21-150500.55.52.1 |
| openSUSE:Leap 15.5 | kernel-obs-qa | 5.14.21-150500.55.52.1 öncesi | 5.14.21-150500.55.52.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-64kb | 5.14.21-150400.24.111.2 öncesi | 5.14.21-150400.24.111.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-64kb | 5.14.21-150400.24.111.2 öncesi | 5.14.21-150400.24.111.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-docs | 5.14.21-150400.24.111.2 öncesi | 5.14.21-150400.24.111.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-docs | 5.14.21-150400.24.111.2 öncesi | 5.14.21-150400.24.111.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-obs-build | 5.14.21-150400.24.111.1 öncesi | 5.14.21-150400.24.111.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-obs-build | 5.14.21-150400.24.111.1 öncesi | 5.14.21-150400.24.111.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | 5.14.21-150400.24.111.1 öncesi | 5.14.21-150400.24.111.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | 5.14.21-150400.24.111.1 öncesi | 5.14.21-150400.24.111.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-syms | 5.14.21-150400.24.111.1 öncesi | 5.14.21-150400.24.111.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-syms | 5.14.21-150400.24.111.1 öncesi | 5.14.21-150400.24.111.1 |
| SUSE:Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_24 | 1-150400.9.3.1 öncesi | 1-150400.9.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_24 | 1-150400.9.3.1 öncesi | 1-150400.9.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4-RT_Update_19 | 1-150400.1.3.1 öncesi | 1-150400.1.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4-RT_Update_19 | 1-150400.1.3.1 öncesi | 1-150400.1.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_11 | 1-150500.11.3.1 öncesi | 1-150500.11.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_11 | 1-150500.11.3.1 öncesi | 1-150500.11.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5-RT_Update_11 | 1-150500.11.3.1 öncesi | 1-150500.11.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5-RT_Update_11 | 1-150500.11.3.1 öncesi | 1-150500.11.3.1 |
+40
Aynı üründe
linux: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Hemen
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Hemen
- CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV83Hemen
- CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV77Bu hafta
- CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV77Bu hafta
- CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV77Bu hafta
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| Linux Linux | 0954982db8283016bf38e9db2da5adf47a102e19 | Üretici (CNA) |
| Linux Linux | 5.11 | Üretici (CNA) |
| Linux Linux | 5.12 | Üretici (CNA) |
| Linux Linux | 6b4a64bafd107e521c01eec3453ce94a3fb38529 | Üretici (CNA) |
| Linux Linux | fbcf372c8eda2290470268e0afb5ab5d5f5d5fde | Üretici (CNA) |
| debian:linux | 6.6.15-1 · Debian:13 | Paket deposu (OSV) |
| opensuse:kernel-azure | 5.14.21-150500.33.37.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| opensuse:kernel-source-azure | 5.14.21-150500.33.37.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| opensuse:kernel-syms-azure | 5.14.21-150500.33.37.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| suse:kernel-64kb | 5.14.21-150500.55.52.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP5 | Paket deposu (OSV) |
| suse:kernel-azure | 5.14.21-150500.33.37.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP5 | Paket deposu (OSV) |
| suse:kernel-default | 5.14.21-150500.55.52.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-default-base | 5.14.21-150500.55.52.1.150500.6.23.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-docs | 5.14.21-150500.55.52.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP5 | Paket deposu (OSV) |
| suse:kernel-source | 5.14.21-150500.55.52.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP5 | Paket deposu (OSV) |
| suse:kernel-source-azure | 5.14.21-150500.33.37.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP5 | Paket deposu (OSV) |
| suse:kernel-syms-azure | 5.14.21-150500.33.37.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP5 | Paket deposu (OSV) |
| suse:kernel-zfcpdump | 5.14.21-150500.55.52.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP5 | Paket deposu (OSV) |
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
Referanslarda commit ya da PR bağlantısı yok.
Kredi
Tüm araştırmacılarCNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.
CNA kaydında kredi yok.
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
- CVE-2021-4719448 gün araylacfg80211: call cfg80211_stop_ap when switch from P2P_GO type31İzleyin
- CVE-2021-469325 gün araylaInput: appletouch - initialize work before device registration22İzleyin
- CVE-2024-38558118 gün araylanet: openvswitch: fix overwriting ct original tuple for ICMPv622İzleyin
- CVE-2024-39301124 gün araylanet/9p: fix uninit-value in p9_client_rpc()22İzleyin
- CVE-2024-39485134 gün araylamedia: v4l: async: Properly re-initialise notifier entry in unregister22İzleyin
- CVE-2024-42078158 gün araylanfsd: initialise nfsd_info.mutex early.22İzleyin
Zincir adayları
Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.
—
Bug bounty kapsamı
Bilinen herkese açık program yok.
Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).
Ulusal bildirim (Siber Güvenlik Başkanlığı / USOM)
Bu kaydı anan resmi güvenlik bildirimleri; çözüm önerisi kurumun sayfasında.
- TR-24-0126 · 23 Şub 2024(Linux Kernel Güncellemesi)
Teknik detay
Saldırı koşulları
- Sisteme yerel erişimi olan biri tetikleyebilir.
- Düşük yetkili bir hesap yeterli.
- Kullanıcının bir şey yapması gerekmez.
- Özel bir koşul gerekmez; tekrarlanabilir.
Başarılı olursa
- Gizlilik
- yüksek · veriler okunabilir
- Bütünlük
- yüksek · veri ya da yapılandırma değiştirilebilir
- Erişilebilirlik
- yüksek · hizmet durdurulabilir
- Saldırı vektörü
- Yerel
- Karmaşıklık
- Düşük
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yüksek
- Bütünlük etkisi
- Yüksek
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-665 · Improper InitializationCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Saldırı desenleri (CAPEC)
ATT&CK teknikleri
—
Değişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- git.kernel.org/stable/c/0954982db8283016bf38e9db2da5adf47a102e19
- git.kernel.org/stable/c/6b4a64bafd107e521c01eec3453ce94a3fb38529
- git.kernel.org/stable/c/fbcf372c8eda2290470268e0afb5ab5d5f5d5fde
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.