cifs: fix double free race when mount fails in cifs_get_root()
In the Linux kernel, the following vulnerability has been resolved: cifs: fix double free race when mount fails in cifs_get_root() When cifs_get_root() fails during cifs_smb3_do_mount() we call deactivate_locked_super() which eventually will call delayed_free() which will free the context. In this situation we should not proceed to enter the out: section in cifs_smb3_do_mount() and free the same resources a second time. [Thu Feb 10 12:59:06 2022] BUG: KASAN: use-after-free in rcu_cblist_dequeue+0x32/0x60 [Thu Feb 10 12:59:06 2022] Read of size 8 at addr ffff888364f4d110 by task swapper/1/0 [Thu Feb 10 12:59:06 2022] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G OE 5.17.0-rc3+ #4 [Thu Feb 10 12:59:06 2022] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.0 12/17/2019 [Thu Feb 10 12:59:06 2022] Call Trace: [Thu Feb 10 12:59:06 2022] <IRQ> [Thu Feb 10 12:59:06 2022] dump_stack_lvl+0x5d/0x78 [Thu Feb 10 12:59:06 2022] print_address_description.constprop.0+0x24/0x150 [Thu Feb 10 12:59:06 2022] ? rcu_cblist_dequeue+0x32/0x60 [Thu Feb 10 12:59:06 2022] kasan_report.cold+0x7d/0x117 [Thu Feb 10 12:59:06 2022] ? rcu_cblist_dequeue+0x32/0x60 [Thu Feb 10 12:59:06 2022] __asan_load8+0x86/0xa0 [Thu Feb 10 12:59:06 2022] rcu_cblist_dequeue+0x32/0x60 [Thu Feb 10 12:59:06 2022] rcu_core+0x547/0xca0 [Thu Feb 10 12:59:06 2022] ? call_rcu+0x3c0/0x3c0 [Thu Feb 10 12:59:06 2022] ? __this_cpu_preempt_check+0x13/0x20 [Thu Feb 10 12:59:06 2022] ? lock_is_held_type+0xea/0x140 [Thu Feb 10 12:59:06 2022] rcu_core_si+0xe/0x10 [Thu Feb 10 12:59:06 2022] __do_softirq+0x1d4/0x67b [Thu Feb 10 12:59:06 2022] __irq_exit_rcu+0x100/0x150 [Thu Feb 10 12:59:06 2022] irq_exit_rcu+0xe/0x30 [Thu Feb 10 12:59:06 2022] sysvec_hyperv_stimer0+0x9d/0xc0 ... [Thu Feb 10 12:59:07 2022] Freed by task 58179: [Thu Feb 10 12:59:07 2022] kasan_save_stack+0x26/0x50 [Thu Feb 10 12:59:07 2022] kasan_set_track+0x25/0x30 [Thu Feb 10 12:59:07 2022] kasan_set_free_info+0x24/0x40 [Thu Feb 10 12:59:07 2022] ____kasan_slab_free+0x137/0x170 [Thu Feb 10 12:59:07 2022] __kasan_slab_free+0x12/0x20 [Thu Feb 10 12:59:07 2022] slab_free_freelist_hook+0xb3/0x1d0 [Thu Feb 10 12:59:07 2022] kfree+0xcd/0x520 [Thu Feb 10 12:59:07 2022] cifs_smb3_do_mount+0x149/0xbe0 [cifs] [Thu Feb 10 12:59:07 2022] smb3_get_tree+0x1a0/0x2e0 [cifs] [Thu Feb 10 12:59:07 2022] vfs_get_tree+0x52/0x140 [Thu Feb 10 12:59:07 2022] path_mount+0x635/0x10c0 [Thu Feb 10 12:59:07 2022] __x64_sys_mount+0x1bf/0x210 [Thu Feb 10 12:59:07 2022] do_syscall_64+0x5c/0xc0 [Thu Feb 10 12:59:07 2022] entry_SYSCALL_64_after_hwframe+0x44/0xae [Thu Feb 10 12:59:07 2022] Last potentially related work creation: [Thu Feb 10 12:59:07 2022] kasan_save_stack+0x26/0x50 [Thu Feb 10 12:59:07 2022] __kasan_record_aux_stack+0xb6/0xc0 [Thu Feb 10 12:59:07 2022] kasan_record_aux_stack_noalloc+0xb/0x10 [Thu Feb 10 12:59:07 2022] call_rcu+0x76/0x3c0 [Thu Feb 10 12:59:07 2022] cifs_umount+0xce/0xe0 [cifs] [Thu Feb 10 12:59:07 2022] cifs_kill_sb+0xc8/0xe0 [cifs] [Thu Feb 10 12:59:07 2022] deactivate_locked_super+0x5d/0xd0 [Thu Feb 10 12:59:07 2022] cifs_smb3_do_mount+0xab9/0xbe0 [cifs] [Thu Feb 10 12:59:07 2022] smb3_get_tree+0x1a0/0x2e0 [cifs] [Thu Feb 10 12:59:07 2022] vfs_get_tree+0x52/0x140 [Thu Feb 10 12:59:07 2022] path_mount+0x635/0x10c0 [Thu Feb 10 12:59:07 2022] __x64_sys_mount+0x1bf/0x210 [Thu Feb 10 12:59:07 2022] do_syscall_64+0x5c/0xc0 [Thu Feb 10 12:59:07 2022] entry_SYSCALL_64_after_hwframe+0x44/0xae
- Yayın
- 21 Ağu 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,5 · 38. yüzdelik
- CWE
- CWE-415
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,5
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
CNA ile NVD puanı
- NVD
- 7,8
- CNA · Linux
- 8,8
- 1,0 puan fark
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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.
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.9.305 öncesi
- linux linux kernel4.10 ve sonrası · 4.14.270 öncesi
- linux linux kernel4.15 ve sonrası · 4.19.233 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.183 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.104 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.27 öncesi
- linux linux kernel5.16 ve sonrası · 5.16.13 ö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
- 5.11etkilenir
- d17abdf7566566fc402c31899b353044a7ff3cf4 ve sonrası · 546d60859ecf13380fcabcbeace53a5971493a2b öncesietkilenir · git
- d17abdf7566566fc402c31899b353044a7ff3cf4 ve sonrası · 563431c1f3c8f2230e4a9c445fa23758742bc4f0 öncesietkilenir · git
- d17abdf7566566fc402c31899b353044a7ff3cf4 ve sonrası · 3d6cc9898efdfb062efb74dc18cfc700e082f5d5 öncesietkilenir · git
- 5.11 öncesietkilenmez · semver
- 5.15.27 ve sonrası · 5.15.* dahil öncesietkilenmez · semver
- 5.16.13 ve sonrası · 5.16.* dahil öncesietkilenmez · semver
- 5.17 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 |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
+90
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 | 3d6cc9898efdfb062efb74dc18cfc700e082f5d5 | Üretici (CNA) |
| Linux Linux | 546d60859ecf13380fcabcbeace53a5971493a2b | Üretici (CNA) |
| Linux Linux | 563431c1f3c8f2230e4a9c445fa23758742bc4f0 | Üretici (CNA) |
| AlmaLinux:bpftool | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-abi-stablelists | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-core | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-cross-headers | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-debug | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-debug-core | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-debug-devel | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-debug-modules | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-debug-modules-extra | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-devel | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| AlmaLinux:kernel-doc | 4.18.0-553.58.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| Debian:linux | 5.16.14-1 · Debian:12 | Paket deposu (OSV) |
| Red Hat:bpftool | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:bpftool-debuginfo | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-abi-stablelists | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-core | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-core | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-debuginfo | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-devel | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-modules | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-modules-extra | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debuginfo | 0:4.18.0-553.58.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| Rocky Linux:kernel | 0:4.18.0-553.58.1.el8_10 · Rocky Linux:8 | Paket deposu (OSV) |
| Rocky Linux:kernel-rt | 0:4.18.0-553.58.1.rt7.399.el8_10 · Rocky Linux:8 | Paket deposu (OSV) |
+12
İ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-2024-3581496 gün araylaswiotlb: Fix double-allocation of slots due to broken alignment handling35İzleyin
- CVE-2022-488920 gün araylasched/core: Fix use-after-free bug in dup_user_cpus_ptr()31İzleyin
- CVE-2024-4213822 gün araylamlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file31İzleyin
- CVE-2024-4214722 gün araylacrypto: hisilicon/debugfs - Fix debugfs uninit process issue31İzleyin
- CVE-2024-4107323 gün araylanvme: avoid double free special payload31İzleyin
- CVE-2024-4668723 gün araylabtrfs: fix a use-after-free when hitting errors inside btrfs_submit_chunk()31İ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).
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-415 · Double FreeCVSS 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ı.
Bu CWE için MITRE'de CAPEC/ATT&CK eşlemesi yok.
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/3d6cc9898efdfb062efb74dc18cfc700e082f5d5
- git.kernel.org/stable/c/546d60859ecf13380fcabcbeace53a5971493a2b
- git.kernel.org/stable/c/563431c1f3c8f2230e4a9c445fa23758742bc4f0
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.