USB: core: Fix hang in usb_kill_urb by adding memory barriers
In the Linux kernel, the following vulnerability has been resolved: USB: core: Fix hang in usb_kill_urb by adding memory barriers The syzbot fuzzer has identified a bug in which processes hang waiting for usb_kill_urb() to return. It turns out the issue is not unlinking the URB; that works just fine. Rather, the problem arises when the wakeup notification that the URB has completed is not received. The reason is memory-access ordering on SMP systems. In outline form, usb_kill_urb() and __usb_hcd_giveback_urb() operating concurrently on different CPUs perform the following actions: CPU 0 CPU 1 ---------------------------- --------------------------------- usb_kill_urb(): __usb_hcd_giveback_urb(): ... ... atomic_inc(&urb->reject); atomic_dec(&urb->use_count); ... ... wait_event(usb_kill_urb_queue, atomic_read(&urb->use_count) == 0); if (atomic_read(&urb->reject)) wake_up(&usb_kill_urb_queue); Confining your attention to urb->reject and urb->use_count, you can see that the overall pattern of accesses on CPU 0 is: write urb->reject, then read urb->use_count; whereas the overall pattern of accesses on CPU 1 is: write urb->use_count, then read urb->reject. This pattern is referred to in memory-model circles as SB (for "Store Buffering"), and it is well known that without suitable enforcement of the desired order of accesses -- in the form of memory barriers -- it is entirely possible for one or both CPUs to execute their reads ahead of their writes. The end result will be that sometimes CPU 0 sees the old un-decremented value of urb->use_count while CPU 1 sees the old un-incremented value of urb->reject. Consequently CPU 0 ends up on the wait queue and never gets woken up, leading to the observed hang in usb_kill_urb(). The same pattern of accesses occurs in usb_poison_urb() and the failure pathway of usb_hcd_submit_urb(). The problem is fixed by adding suitable memory barriers. To provide proper memory-access ordering in the SB pattern, a full barrier is required on both CPUs. The atomic_inc() and atomic_dec() accesses themselves don't provide any memory ordering, but since they are present, we can use the optimized smp_mb__after_atomic() memory barrier in the various routines to obtain the desired effect. This patch adds the necessary memory barriers.
- Yayın
- 20 Haz 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 7. yüzdelik
- CWE
- CWE-667
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
28
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 28 / 40 · 7.1 / 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.
Etkilenen 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.4.302 öncesi
- linux linux kernel4.5 ve sonrası · 4.9.300 öncesi
- linux linux kernel4.10 ve sonrası · 4.14.265 öncesi
- linux linux kernel4.15 ve sonrası · 4.19.228 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.176 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.96 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.19 öncesi
- linux linux kernel5.16 ve sonrası · 5.16.5 öncesi
- linux linux kernel5.17
Ü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
- 2.6.29etkilenir
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · 5f138ef224dffd15d5e5c5b095859719e0038427 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · b50f5ca60475710bbc9a3af32fbfc17b1e69c2f0 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · 546ba238535d925254e0b3f12012a5c55801e2f3 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · 5904dfd3ddaff3bf4a41c3baf0a8e8f31ed4599b öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · 9c61fce322ac2ef7fecf025285353570d60e41d6 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · e3b131e30e612ff0e32de6c1cb4f69f89db29193 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · 9340226388c66a7e090ebb00e91ed64a753b6c26 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · c9a18f7c5b071dce5e6939568829d40994866ab0 öncesietkilenir · git
- 49367d8f1d9f26482cf7089489e90f0afd0a942c ve sonrası · 26fbe9772b8c459687930511444ce443011f86bf öncesietkilenir · git
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 | 5.16.7-1 öncesi | 5.16.7-1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-default-base | 5.3.18-150200.24.197.1.150200.9.101.1 öncesi | 5.3.18-150200.24.197.1.150200.9.101.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-docs | 5.3.18-150200.24.197.1 öncesi | 5.3.18-150200.24.197.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-obs-build | 5.3.18-150200.24.197.1 öncesi | 5.3.18-150200.24.197.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-preempt | 5.3.18-150200.24.197.1 öncesi | 5.3.18-150200.24.197.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-source | 5.3.18-150200.24.197.1 öncesi | 5.3.18-150200.24.197.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-syms | 5.3.18-150200.24.197.1 öncesi | 5.3.18-150200.24.197.1 |
| SUSE:Linux Enterprise Live Patching 15 SP2 | kernel-default | 5.3.18-150200.24.197.1 öncesi | 5.3.18-150200.24.197.1 |
| SUSE:Linux Enterprise Live Patching 15 SP2 | kernel-livepatch-SLE15-SP2_Update_50 | 1-150200.5.3.1 öncesi | 1-150200.5.3.1 |
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 | 26fbe9772b8c459687930511444ce443011f86bf | Üretici (CNA) |
| Linux Linux | 546ba238535d925254e0b3f12012a5c55801e2f3 | Üretici (CNA) |
| Linux Linux | 5904dfd3ddaff3bf4a41c3baf0a8e8f31ed4599b | Üretici (CNA) |
| Linux Linux | 5f138ef224dffd15d5e5c5b095859719e0038427 | Üretici (CNA) |
| Linux Linux | 9340226388c66a7e090ebb00e91ed64a753b6c26 | Üretici (CNA) |
| Linux Linux | 9c61fce322ac2ef7fecf025285353570d60e41d6 | Üretici (CNA) |
| Linux Linux | b50f5ca60475710bbc9a3af32fbfc17b1e69c2f0 | Üretici (CNA) |
| Linux Linux | c9a18f7c5b071dce5e6939568829d40994866ab0 | Üretici (CNA) |
| Linux Linux | e3b131e30e612ff0e32de6c1cb4f69f89db29193 | Üretici (CNA) |
| debian:linux | 5.16.7-1 · Debian:12 | Paket deposu (OSV) |
| suse:kernel-default | 5.3.18-150200.24.197.1 · SUSE:Linux Enterprise Live Patching 15 SP2 | Paket deposu (OSV) |
| suse:kernel-default-base | 5.3.18-150200.24.197.1.150200.9.101.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-docs | 5.3.18-150200.24.197.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP2_Update_50 | 1-150200.5.3.1 · SUSE:Linux Enterprise Live Patching 15 SP2 | Paket deposu (OSV) |
| suse:kernel-obs-build | 5.3.18-150200.24.197.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-preempt | 5.3.18-150200.24.197.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-source | 5.3.18-150200.24.197.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-syms | 5.3.18-150200.24.197.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | 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.
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).
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
- yok
- 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
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-667 · Improper LockingCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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ı.
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
385 binden fazla 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 isteyinDeğ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/26fbe9772b8c459687930511444ce443011f86bf
- git.kernel.org/stable/c/546ba238535d925254e0b3f12012a5c55801e2f3
- git.kernel.org/stable/c/5904dfd3ddaff3bf4a41c3baf0a8e8f31ed4599b
- git.kernel.org/stable/c/5f138ef224dffd15d5e5c5b095859719e0038427
- git.kernel.org/stable/c/9340226388c66a7e090ebb00e91ed64a753b6c26
- git.kernel.org/stable/c/9c61fce322ac2ef7fecf025285353570d60e41d6
- git.kernel.org/stable/c/b50f5ca60475710bbc9a3af32fbfc17b1e69c2f0
- git.kernel.org/stable/c/c9a18f7c5b071dce5e6939568829d40994866ab0
- git.kernel.org/stable/c/e3b131e30e612ff0e32de6c1cb4f69f89db29193
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.