af_unix: Fix garbage collector racing against connect()
In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix garbage collector racing against connect() Garbage collector does not take into account the risk of embryo getting enqueued during the garbage collection. If such embryo has a peer that carries SCM_RIGHTS, two consecutive passes of scan_children() may see a different set of children. Leading to an incorrectly elevated inflight count, and then a dangling pointer within the gc_inflight_list. sockets are AF_UNIX/SOCK_STREAM S is an unconnected socket L is a listening in-flight socket bound to addr, not in fdtable V's fd will be passed via sendmsg(), gets inflight count bumped connect(S, addr) sendmsg(S, [V]); close(V) __unix_gc() ---------------- ------------------------- ----------- NS = unix_create1() skb1 = sock_wmalloc(NS) L = unix_find_other(addr) unix_state_lock(L) unix_peer(S) = NS // V count=1 inflight=0 NS = unix_peer(S) skb2 = sock_alloc() skb_queue_tail(NS, skb2[V]) // V became in-flight // V count=2 inflight=1 close(V) // V count=1 inflight=1 // GC candidate condition met for u in gc_inflight_list: if (total_refs == inflight_refs) add u to gc_candidates // gc_candidates={L, V} for u in gc_candidates: scan_children(u, dec_inflight) // embryo (skb1) was not // reachable from L yet, so V's // inflight remains unchanged __skb_queue_tail(L, skb1) unix_state_unlock(L) for u in gc_candidates: if (u.inflight) scan_children(u, inc_inflight_move_tail) // V count=1 inflight=2 (!) If there is a GC-candidate listening socket, lock/unlock its state. This makes GC wait until the end of any ongoing connect() to that socket. After flipping the lock, a possibly SCM-laden embryo is already enqueued. And if there is another embryo coming, it can not possibly carry SCM_RIGHTS. At this point, unix_inflight() can not happen because unix_gc_lock is already taken. Inflight graph remains unaffected.
- BDU:2024-03615
- ALSA-2024:8617
- DSA-5680-1
- RHSA-2024:6993
- RHSA-2024:7486
- RHSA-2024:8617
- RLSA-2024:8617
- SUSE-SU-2024:2326-1
- SUSE-SU-2024:2335-1
- SUSE-SU-2024:2337-1
- SUSE-SU-2024:2338-1
- SUSE-SU-2024:2341-1
- SUSE-SU-2024:2342-1
- SUSE-SU-2024:2343-1
- SUSE-SU-2024:2344-1
- SUSE-SU-2024:2351-1
- SUSE-SU-2024:2357-1
- SUSE-SU-2024:2358-1
- SUSE-SU-2024:2368-1
- SUSE-SU-2024:2369-1
- Yayın
- 25 Nis 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,2 · 10. yüzdelik
- CWE
- CWE-362
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
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- tam
Vulnrichment: CISA'nın karar ağacı girdileri.
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 |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
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.
- debian debian linux10.0
- linux linux kernel4.20 ve sonrası · 5.4.275 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.216 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.156 öncesi
- linux linux kernel2.6.23 ve sonrası · 4.19.314 öncesi
- linux linux kernel6.2 ve sonrası · 6.6.28 öncesi
- linux linux kernel6.7 ve sonrası · 6.8.7 öncesi
- linux linux kernel5.16 ve sonrası · 6.1.87 öncesi
- linux linux kernel6.9
Ü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.23etkilenir
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · a36ae0ec2353015f0f6762e59f4c2dbc0c906423 öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · 343c5372d5e17b306db5f8f3c895539b06e3177f öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · 2e2a03787f4f0abc0072350654ab0ef3324d9db3 öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · e76c2678228f6aec74b305ae30c9374cc2f28a51 öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · b75722be422c276b699200de90527d01c602ea7c öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · 507cc232ffe53a352847893f8177d276c3b532a9 öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · dbdf7bec5c920200077d693193f989cb1513f009 öncesietkilenir · git
- 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 ve sonrası · 47d8ac011fe1c9251070e1bd64cb10b48193ec51 öncesietkilenir · git
- 2.6.23 ö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:9 | bpftool | 7.3.0-427.42.1.el9_4 öncesi | 7.3.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-core | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-debug | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-427.42.1.el9_4 öncesi | 5.14.0-427.42.1.el9_4 |
+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 | 2e2a03787f4f0abc0072350654ab0ef3324d9db3 | Üretici (CNA) |
| Linux Linux | 343c5372d5e17b306db5f8f3c895539b06e3177f | Üretici (CNA) |
| Linux Linux | 47d8ac011fe1c9251070e1bd64cb10b48193ec51 | Üretici (CNA) |
| Linux Linux | 507cc232ffe53a352847893f8177d276c3b532a9 | Üretici (CNA) |
| Linux Linux | a36ae0ec2353015f0f6762e59f4c2dbc0c906423 | Üretici (CNA) |
| Linux Linux | b75722be422c276b699200de90527d01c602ea7c | Üretici (CNA) |
| Linux Linux | dbdf7bec5c920200077d693193f989cb1513f009 | Üretici (CNA) |
| Linux Linux | e76c2678228f6aec74b305ae30c9374cc2f28a51 | Üretici (CNA) |
| almalinux:bpftool | 7.3.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-core | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel | 5.14.0-427.42.1.el9_4 · AlmaLinux:9 | Paket deposu (OSV) |
| debian:linux | 6.1.90-1 · Debian:12 | Paket deposu (OSV) |
| red hat:bpftool | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel-core | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:4.18.0-477.74.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
+16
İ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-0341 · 25 Nis 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.
- 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)
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')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ı.
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/507cc232ffe53a352847893f8177d276c3b532a9
- git.kernel.org/stable/c/2e2a03787f4f0abc0072350654ab0ef3324d9db3
- git.kernel.org/stable/c/343c5372d5e17b306db5f8f3c895539b06e3177f
- git.kernel.org/stable/c/47d8ac011fe1c9251070e1bd64cb10b48193ec51
- git.kernel.org/stable/c/a36ae0ec2353015f0f6762e59f4c2dbc0c906423
- git.kernel.org/stable/c/b75722be422c276b699200de90527d01c602ea7c
- git.kernel.org/stable/c/dbdf7bec5c920200077d693193f989cb1513f009
- git.kernel.org/stable/c/e76c2678228f6aec74b305ae30c9374cc2f28a51
- lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- lists.debian.org/debian-lts-announce/2024/06/msg00020.html
- cert-portal.siemens.com/productcert/html/ssa-265688.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com/productcert/html/ssa-613116.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.