SUNRPC: Fix UAF in svc_tcp_listen_data_ready()
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Fix UAF in svc_tcp_listen_data_ready() After the listener svc_sock is freed, and before invoking svc_tcp_accept() for the established child sock, there is a window that the newsock retaining a freed listener svc_sock in sk_user_data which cloning from parent. In the race window, if data is received on the newsock, we will observe use-after-free report in svc_tcp_listen_data_ready(). Reproduce by two tasks: 1. while :; do rpc.nfsd 0 ; rpc.nfsd; done 2. while :; do echo "" | ncat -4 127.0.0.1 2049 ; done KASAN report: ================================================================== BUG: KASAN: slab-use-after-free in svc_tcp_listen_data_ready+0x1cf/0x1f0 [sunrpc] Read of size 8 at addr ffff888139d96228 by task nc/102553 CPU: 7 PID: 102553 Comm: nc Not tainted 6.3.0+ #18 Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 Call Trace: <IRQ> dump_stack_lvl+0x33/0x50 print_address_description.constprop.0+0x27/0x310 print_report+0x3e/0x70 kasan_report+0xae/0xe0 svc_tcp_listen_data_ready+0x1cf/0x1f0 [sunrpc] tcp_data_queue+0x9f4/0x20e0 tcp_rcv_established+0x666/0x1f60 tcp_v4_do_rcv+0x51c/0x850 tcp_v4_rcv+0x23fc/0x2e80 ip_protocol_deliver_rcu+0x62/0x300 ip_local_deliver_finish+0x267/0x350 ip_local_deliver+0x18b/0x2d0 ip_rcv+0x2fb/0x370 __netif_receive_skb_one_core+0x166/0x1b0 process_backlog+0x24c/0x5e0 __napi_poll+0xa2/0x500 net_rx_action+0x854/0xc90 __do_softirq+0x1bb/0x5de do_softirq+0xcb/0x100 </IRQ> <TASK> ... </TASK> Allocated by task 102371: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 __kasan_kmalloc+0x7b/0x90 svc_setup_socket+0x52/0x4f0 [sunrpc] svc_addsock+0x20d/0x400 [sunrpc] __write_ports_addfd+0x209/0x390 [nfsd] write_ports+0x239/0x2c0 [nfsd] nfsctl_transaction_write+0xac/0x110 [nfsd] vfs_write+0x1c3/0xae0 ksys_write+0xed/0x1c0 do_syscall_64+0x38/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc Freed by task 102551: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 kasan_save_free_info+0x2a/0x50 __kasan_slab_free+0x106/0x190 __kmem_cache_free+0x133/0x270 svc_xprt_free+0x1e2/0x350 [sunrpc] svc_xprt_destroy_all+0x25a/0x440 [sunrpc] nfsd_put+0x125/0x240 [nfsd] nfsd_svc+0x2cb/0x3c0 [nfsd] write_threads+0x1ac/0x2a0 [nfsd] nfsctl_transaction_write+0xac/0x110 [nfsd] vfs_write+0x1c3/0xae0 ksys_write+0xed/0x1c0 do_syscall_64+0x38/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc Fix the UAF by simply doing nothing in svc_tcp_listen_data_ready() if state != TCP_LISTEN, that will avoid dereferencing svsk for all child socket.
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 isteyin- Yayın
- 14 Tem 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,6 · 44. yüzdelik
- CWE
- CWE-416
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,6
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,1
- 0,3 puan fark
CVSS:3.1/AV:N/AC:H/PR:N/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.
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.8 ve sonrası · 4.14.322 öncesi
- linux linux kernel4.15 ve sonrası · 4.19.291 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.251 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.188 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.121 öncesi
- linux linux kernel5.16 ve sonrası · 6.1.39 öncesi
- linux linux kernel6.2 ve sonrası · 6.4.4 ö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
- 4.8etkilenir
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · c7b8c2d06e437639694abe76978e915cfb73f428 öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · dfc896c4a75cb8cd7cb2dfd9b469cf1e3f004254 öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · 42725e5c1b181b757ba11d804443922982334d9b öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · cd5ec3ee52ce4b7e283cc11facfa420c297c8065 öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · fbf4ace39b2e4f3833236afbb2336edbafd75eee öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · ef047411887ff0845afd642d6a687819308e1a4e öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · 7e1f989055622fd086c5dfb291fc72adf5660b6f öncesietkilenir · git
- fa9251afc33c81606d70cfe91800a779096442ec ve sonrası · fc80fc2d4e39137869da3150ee169b40bf879287 öncesietkilenir · git
- 4.8 ö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 |
|---|---|---|---|
| Debian:12 | linux | 6.1.52-1 öncesi | 6.1.52-1 |
| Debian:13 | linux | 6.4.4-1 öncesi | 6.4.4-1 |
| openSUSE:Leap 15.6 | dtb-aarch64 | 6.4.0-150600.23.22.1 öncesi | 6.4.0-150600.23.22.1 |
| openSUSE:Leap 15.6 | kernel-debug | 6.4.0-150600.23.22.1 öncesi | 6.4.0-150600.23.22.1 |
| openSUSE:Leap 15.6 | kernel-kvmsmall | 6.4.0-150600.23.22.1 öncesi | 6.4.0-150600.23.22.1 |
| openSUSE:Leap 15.6 | kernel-obs-qa | 6.4.0-150600.23.22.1 öncesi | 6.4.0-150600.23.22.1 |
| Red Hat:rhel_aus:8.6::baseos | bpftool | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | bpftool-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-abi-stablelists | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-core | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-core | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-devel | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules-extra | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo-common-x86_64 | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-devel | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-doc | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules-extra | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
+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 | 42725e5c1b181b757ba11d804443922982334d9b | Üretici (CNA) |
| Linux Linux | 7e1f989055622fd086c5dfb291fc72adf5660b6f | Üretici (CNA) |
| Linux Linux | c7b8c2d06e437639694abe76978e915cfb73f428 | Üretici (CNA) |
| Linux Linux | cd5ec3ee52ce4b7e283cc11facfa420c297c8065 | Üretici (CNA) |
| Linux Linux | dfc896c4a75cb8cd7cb2dfd9b469cf1e3f004254 | Üretici (CNA) |
| Linux Linux | ef047411887ff0845afd642d6a687819308e1a4e | Üretici (CNA) |
| Linux Linux | fbf4ace39b2e4f3833236afbb2336edbafd75eee | Üretici (CNA) |
| Linux Linux | fc80fc2d4e39137869da3150ee169b40bf879287 | Üretici (CNA) |
| debian:linux | 6.1.52-1 · Debian:12 | Paket deposu (OSV) |
| opensuse:kernel-azure | 6.4.0-150600.8.11.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-rt | 6.4.0-150600.10.8.3 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-source-azure | 6.4.0-150600.8.11.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-syms-azure | 6.4.0-150600.8.11.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:7.0.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debuginfo | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel-matched | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-devel-matched | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-debuginfo | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| red hat:kernel-debuginfo-common-aarch64 | 0:5.14.0-284.77.1.el9_2 · Red Hat:rhel_eus:9.2::appstream | Paket deposu (OSV) |
| suse:kernel-64kb | 5.3.18-150300.59.170.1 · SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | Paket deposu (OSV) |
| suse:kernel-azure | 6.4.0-150600.8.11.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6 | Paket deposu (OSV) |
| suse:kernel-default | 5.3.18-150200.24.200.1 · SUSE:Linux Enterprise Live Patching 15 SP2 | Paket deposu (OSV) |
| suse:kernel-default-base | 5.3.18-150200.24.200.1.150200.9.103.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-docs | 5.3.18-150200.24.200.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
+15
İ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
- 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-416 · Use After FreeCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Kök neden
Bir bellek alanı serbest bırakıldıktan sonra ona işaret eden başka bir referans kullanılmaya devam ediyor. Aynı alan o sırada başka bir veri için ayrılmış olabilir.
Hatanın kod karşılığı
CWE-416 sınıfının tamamıBu zafiyet sınıfının temsili örneği. Üreticinin kaynak kodu değildir; hatalı kalıbı ve düzeltmesini gösterir.
Hatalı
free(dev->buf);/* ... başka bir iş parçacığı hâlâ çalışıyor ... */process(dev->buf);Düzeltilmiş
lock(&dev->lock);free(dev->buf);dev->buf = NULL;unlock(&dev->lock);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/42725e5c1b181b757ba11d804443922982334d9b
- git.kernel.org/stable/c/7e1f989055622fd086c5dfb291fc72adf5660b6f
- git.kernel.org/stable/c/c7b8c2d06e437639694abe76978e915cfb73f428
- git.kernel.org/stable/c/cd5ec3ee52ce4b7e283cc11facfa420c297c8065
- git.kernel.org/stable/c/dfc896c4a75cb8cd7cb2dfd9b469cf1e3f004254
- git.kernel.org/stable/c/ef047411887ff0845afd642d6a687819308e1a4e
- git.kernel.org/stable/c/fbf4ace39b2e4f3833236afbb2336edbafd75eee
- git.kernel.org/stable/c/fc80fc2d4e39137869da3150ee169b40bf879287
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.