bpf, sockmap: Avoid using sk_socket after free when sending
In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Avoid using sk_socket after free when sending The sk->sk_socket is not locked or referenced in backlog thread, and during the call to skb_send_sock(), there is a race condition with the release of sk_socket. All types of sockets(tcp/udp/unix/vsock) will be affected. Race conditions: ''' CPU0 CPU1 backlog::skb_send_sock sendmsg_unlocked sock_sendmsg sock_sendmsg_nosec close(fd): ... ops->release() -> sock_map_close() sk_socket->ops = NULL free(socket) sock->ops->sendmsg ^ panic here ''' The ref of psock become 0 after sock_map_close() executed. ''' void sock_map_close() { ... if (likely(psock)) { ... // !! here we remove psock and the ref of psock become 0 sock_map_remove_links(sk, psock) psock = sk_psock_get(sk); if (unlikely(!psock)) goto no_psock; <=== Control jumps here via goto ... cancel_delayed_work_sync(&psock->work); <=== not executed sk_psock_put(sk, psock); ... } ''' Based on the fact that we already wait for the workqueue to finish in sock_map_close() if psock is held, we simply increase the psock reference count to avoid race conditions. With this patch, if the backlog thread is running, sock_map_close() will wait for the backlog thread to complete and cancel all pending work. If no backlog running, any pending work that hasn't started by then will fail when invoked by sk_psock_get(), as the psock reference count have been zeroed, and sk_psock_drop() will cancel all jobs via cancel_delayed_work_sync(). In summary, we require synchronization to coordinate the backlog thread and close() thread. The panic I catched: ''' Workqueue: events sk_psock_backlog RIP: 0010:sock_sendmsg+0x21d/0x440 RAX: 0000000000000000 RBX: ffffc9000521fad8 RCX: 0000000000000001 ... Call Trace: <TASK> ? die_addr+0x40/0xa0 ? exc_general_protection+0x14c/0x230 ? asm_exc_general_protection+0x26/0x30 ? sock_sendmsg+0x21d/0x440 ? sock_sendmsg+0x3e0/0x440 ? __pfx_sock_sendmsg+0x10/0x10 __skb_send_sock+0x543/0xb70 sk_psock_backlog+0x247/0xb80 ... '''
- Yayın
- 3 Tem 2025
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,2 · 6. 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,2
CNA ile NVD puanı
- NVD
- 7,8
- CNA · Linux
- 7,8
- uyumlu
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 |
| 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 linux11.0
- linux linux kernel6.1.95 ve sonrası · 6.1.142 öncesi
- linux linux kernel6.6.35 ve sonrası · 6.6.94 öncesi
- linux linux kernel6.9.6 ve sonrası · 6.10 öncesi
- linux linux kernel5.15.162 ve sonrası · 5.15.186 öncesi
- linux linux kernel6.13 ve sonrası · 6.15.3 öncesi
- linux linux kernel6.10.1 ve sonrası · 6.12.34 öncesi
- linux linux kernel6.10
Ü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
- 3627605de498639a3c586c8684d12c89cba11073, 6.10etkilenir
- 4959ffc65a0e94f8acaac20deac49f89e6ded52d ve sonrası · 4edb40b05cb6a261775abfd8046804ca139a5546 öncesietkilenir · git
- 5eabdf17fed2ad41b836bb4055ec36d95e512c50 ve sonrası · b19cbf0b9a91f5a0d93fbcd761ff71c48ab40ed9 öncesietkilenir · git
- e946428439a0d2079959f5603256ac51b6047017 ve sonrası · 4c6fa65ab2aec7df94809478c8d28ef38676a1b7 öncesietkilenir · git
- 4b4647add7d3c8530493f7247d11e257ee425bf0 ve sonrası · 15c0250dae3b48a398447d2b364603821ed4ed90 öncesietkilenir · git
- 4b4647add7d3c8530493f7247d11e257ee425bf0 ve sonrası · 7c0a16f6ea2b1c82a03bccd5d1bdb4a7bbd4d987 öncesietkilenir · git
- 4b4647add7d3c8530493f7247d11e257ee425bf0 ve sonrası · 8259eb0e06d8f64c700f5fbdb28a5c18e10de291 öncesietkilenir · git
- 5.15.162 ve sonrası · 5.15.186 öncesietkilenir · semver
- 6.1.95 ve sonrası · 6.1.142 öncesietkilenir · semver
- 6.6.35 ve sonrası · 6.6.94 öncesietkilenir · 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.147-1 öncesi | 6.1.147-1 |
| Debian:13 | linux | 6.12.35-1 öncesi | 6.12.35-1 |
| Red Hat:enterprise_linux_eus:10.0 | kernel | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-core | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-core | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-debuginfo | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-devel | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-devel-matched | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-modules | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-modules-core | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debug-modules-extra | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-debuginfo | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-devel | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-devel-matched | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-modules | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-modules-core | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-64k-modules-extra | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-abi-stablelists | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-core | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-debug | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-debug-core | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
| Red Hat:enterprise_linux_eus:10.0 | kernel-debug-debuginfo | 0:6.12.0-55.82.1.el10_0 öncesi | 0:6.12.0-55.82.1.el10_0 |
+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 | 15c0250dae3b48a398447d2b364603821ed4ed90 | Üretici (CNA) |
| Linux Linux | 4c6fa65ab2aec7df94809478c8d28ef38676a1b7 | Üretici (CNA) |
| Linux Linux | 4edb40b05cb6a261775abfd8046804ca139a5546 | Üretici (CNA) |
| Linux Linux | 5.15.186 | Üretici (CNA) |
| Linux Linux | 6.1.142 | Üretici (CNA) |
| Linux Linux | 6.10 | Üretici (CNA) |
| Linux Linux | 6.6.94 | Üretici (CNA) |
| Linux Linux | 7c0a16f6ea2b1c82a03bccd5d1bdb4a7bbd4d987 | Üretici (CNA) |
| Linux Linux | 8259eb0e06d8f64c700f5fbdb28a5c18e10de291 | Üretici (CNA) |
| Linux Linux | b19cbf0b9a91f5a0d93fbcd761ff71c48ab40ed9 | Üretici (CNA) |
| debian:linux | 6.1.147-1 · Debian:12 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-64k-debuginfo | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-64k-devel | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-64k-devel-matched | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-debug-devel-matched | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-debuginfo | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-debuginfo-common-aarch64 | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | Paket deposu (OSV) |
| red hat:kernel-debuginfo-common-ppc64le | 0:6.12.0-55.82.1.el10_0 · Red Hat:enterprise_linux_eus:10.0 | 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
- 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.
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/15c0250dae3b48a398447d2b364603821ed4ed90
- git.kernel.org/stable/c/4c6fa65ab2aec7df94809478c8d28ef38676a1b7
- git.kernel.org/stable/c/4edb40b05cb6a261775abfd8046804ca139a5546
- git.kernel.org/stable/c/7c0a16f6ea2b1c82a03bccd5d1bdb4a7bbd4d987
- git.kernel.org/stable/c/8259eb0e06d8f64c700f5fbdb28a5c18e10de291
- git.kernel.org/stable/c/b19cbf0b9a91f5a0d93fbcd761ff71c48ab40ed9
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.