blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
In the Linux kernel, the following vulnerability has been resolved: blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race We're seeing crashes from rq_qos_wake_function that look like this: BUG: unable to handle page fault for address: ffffafe180a40084 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 100000067 P4D 100000067 PUD 10027c067 PMD 10115d067 PTE 0 Oops: Oops: 0002 [#1] PREEMPT SMP PTI CPU: 17 UID: 0 PID: 0 Comm: swapper/17 Not tainted 6.12.0-rc3-00013-geca631b8fe80 #11 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014 RIP: 0010:_raw_spin_lock_irqsave+0x1d/0x40 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 41 54 9c 41 5c fa 65 ff 05 62 97 30 4c 31 c0 ba 01 00 00 00 <f0> 0f b1 17 75 0a 4c 89 e0 41 5c c3 cc cc cc cc 89 c6 e8 2c 0b 00 RSP: 0018:ffffafe180580ca0 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffffafe180a3f7a8 RCX: 0000000000000011 RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffafe180a40084 RBP: 0000000000000000 R08: 00000000001e7240 R09: 0000000000000011 R10: 0000000000000028 R11: 0000000000000888 R12: 0000000000000002 R13: ffffafe180a40084 R14: 0000000000000000 R15: 0000000000000003 FS: 0000000000000000(0000) GS:ffff9aaf1f280000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffafe180a40084 CR3: 000000010e428002 CR4: 0000000000770ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <IRQ> try_to_wake_up+0x5a/0x6a0 rq_qos_wake_function+0x71/0x80 __wake_up_common+0x75/0xa0 __wake_up+0x36/0x60 scale_up.part.0+0x50/0x110 wb_timer_fn+0x227/0x450 ... So rq_qos_wake_function() calls wake_up_process(data->task), which calls try_to_wake_up(), which faults in raw_spin_lock_irqsave(&p->pi_lock). p comes from data->task, and data comes from the waitqueue entry, which is stored on the waiter's stack in rq_qos_wait(). Analyzing the core dump with drgn, I found that the waiter had already woken up and moved on to a completely unrelated code path, clobbering what was previously data->task. Meanwhile, the waker was passing the clobbered garbage in data->task to wake_up_process(), leading to the crash. What's happening is that in between rq_qos_wake_function() deleting the waitqueue entry and calling wake_up_process(), rq_qos_wait() is finding that it already got a token and returning. The race looks like this: rq_qos_wait() rq_qos_wake_function() ============================================================== prepare_to_wait_exclusive() data->got_token = true; list_del_init(&curr->entry); if (data.got_token) break; finish_wait(&rqw->wait, &data.wq); ^- returns immediately because list_empty_careful(&wq_entry->entry) is true ... return, go do something else ... wake_up_process(data->task) (NO LONGER VALID!)-^ Normally, finish_wait() is supposed to synchronize against the waker. But, as noted above, it is returning immediately because the waitqueue entry has already been removed from the waitqueue. The bug is that rq_qos_wake_function() is accessing the waitqueue entry AFTER deleting it. Note that autoremove_wake_function() wakes the waiter and THEN deletes the waitqueue entry, which is the proper order. Fix it by swapping the order. We also need to use list_del_init_careful() to match the list_empty_careful() in finish_wait().
- Yayın
- 28 Eki 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,2 · 12. yüzdelik
- CWE
- —
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
18
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 18 / 40 · 4.7 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,2
CNA ile NVD puanı
- NVD
- 4,7
- CNA · Linux
- 7,8
- 3,1 puan fark
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
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 kernel4.19 ve sonrası · 5.10.228 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.169 öncesi
- linux linux kernel5.16 ve sonrası · 6.1.114 öncesi
- linux linux kernel6.2 ve sonrası · 6.6.58 öncesi
- linux linux kernel6.7 ve sonrası · 6.11.5 öncesi
- linux linux kernel6.12
Ü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
- 4.19etkilenir
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · d04b72c9ef2b0689bfc1057d21c4aeed087c329f öncesietkilenir · git
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · 3bc6d0f8b70a9101456cf02ab99acb75254e1852 öncesietkilenir · git
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · 455a469758e57a6fe070e3e342db12e4a629e0eb öncesietkilenir · git
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · b5e900a3612b69423a0e1b0ab67841a1fb4af80f öncesietkilenir · git
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · 4c5b123ab289767afe940389dbb963c5c05e594e öncesietkilenir · git
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · 04f283fc16c8d5db641b6bffd2d8310aa7eccebc öncesietkilenir · git
- 38cfb5a45ee013bfab5d1ae4c4738815e744b440 ve sonrası · e972b08b91ef48488bae9789f03cfedb148667fb öncesietkilenir · git
- 4.19 öncesietkilenmez · semver
- 5.4.285 ve sonrası · 5.4.* dahil öncesietkilenmez · semver
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 |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.32.1.el8_10 öncesi | 4.18.0-553.32.1.el8_10 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.32.1.rt7.373.el8_10 öncesi | 4.18.0-553.32.1.rt7.373.el8_10 |
+96
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 | 04f283fc16c8d5db641b6bffd2d8310aa7eccebc | Üretici (CNA) |
| Linux Linux | 3bc6d0f8b70a9101456cf02ab99acb75254e1852 | Üretici (CNA) |
| Linux Linux | 455a469758e57a6fe070e3e342db12e4a629e0eb | Üretici (CNA) |
| Linux Linux | 4c5b123ab289767afe940389dbb963c5c05e594e | Üretici (CNA) |
| Linux Linux | b5e900a3612b69423a0e1b0ab67841a1fb4af80f | Üretici (CNA) |
| Linux Linux | d04b72c9ef2b0689bfc1057d21c4aeed087c329f | Üretici (CNA) |
| Linux Linux | e972b08b91ef48488bae9789f03cfedb148667fb | Üretici (CNA) |
| CBL Mariner 2.0 ARM | 5.15.173.1-1 · kernel | Microsoft (MSRC) |
| CBL Mariner 2.0 x64 | 5.15.173.1-1 · kernel | Microsoft (MSRC) |
| almalinux:bpftool | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-abi-stablelists | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-core | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-cross-headers | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-core | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-devel | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-modules | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-modules-extra | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-devel | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-doc | 4.18.0-553.32.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| debian:linux | 6.1.115-1 · Debian:12 | Paket deposu (OSV) |
| red hat:bpftool | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-core | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-553.32.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
+6
İ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.
Gece hesaplanan ilişki yok.
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-1781 · 30 Eki 2024(Linux Kernel Güvenlik Bildirimi)
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.
- Zamanlama ya da yapılandırma gibi özel koşullar gerekir.
Başarılı olursa
- Gizlilik
- yok
- Bütünlük
- yok
- Erişilebilirlik
- yüksek · hizmet durdurulabilir
- Saldırı vektörü
- Yerel
- Karmaşıklık
- Yüksek
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yok
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
—
CVSS vektörü
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/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ı.
Bu CWE için MITRE'de CAPEC/ATT&CK eşlemesi yok.
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/04f283fc16c8d5db641b6bffd2d8310aa7eccebc
- git.kernel.org/stable/c/3bc6d0f8b70a9101456cf02ab99acb75254e1852
- git.kernel.org/stable/c/455a469758e57a6fe070e3e342db12e4a629e0eb
- git.kernel.org/stable/c/4c5b123ab289767afe940389dbb963c5c05e594e
- git.kernel.org/stable/c/b5e900a3612b69423a0e1b0ab67841a1fb4af80f
- git.kernel.org/stable/c/d04b72c9ef2b0689bfc1057d21c4aeed087c329f
- git.kernel.org/stable/c/e972b08b91ef48488bae9789f03cfedb148667fb
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- lists.debian.org/debian-lts-announce/2025/03/msg00002.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.