perf: Fix event leak upon exec and file release
In the Linux kernel, the following vulnerability has been resolved: perf: Fix event leak upon exec and file release The perf pending task work is never waited upon the matching event release. In the case of a child event, released via free_event() directly, this can potentially result in a leaked event, such as in the following scenario that doesn't even require a weak IRQ work implementation to trigger: schedule() prepare_task_switch() =======> <NMI> perf_event_overflow() event->pending_sigtrap = ... irq_work_queue(&event->pending_irq) <======= </NMI> perf_event_task_sched_out() event_sched_out() event->pending_sigtrap = 0; atomic_long_inc_not_zero(&event->refcount) task_work_add(&event->pending_task) finish_lock_switch() =======> <IRQ> perf_pending_irq() //do nothing, rely on pending task work <======= </IRQ> begin_new_exec() perf_event_exit_task() perf_event_exit_event() // If is child event free_event() WARN(atomic_long_cmpxchg(&event->refcount, 1, 0) != 1) // event is leaked Similar scenarios can also happen with perf_event_remove_on_exec() or simply against concurrent perf_event_release(). Fix this with synchonizing against the possibly remaining pending task work while freeing the event, just like is done with remaining pending IRQ work. This means that the pending task callback neither need nor should hold a reference to the event, preventing it from ever beeing freed.
- Yayın
- 20 Ağu 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 10. yüzdelik
- CWE
- CWE-401
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
22
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 22 / 40 · 5.5 / 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 kernel5.15.84 ve sonrası · 5.15.165 öncesi
- linux linux kernel6.0.14 ve sonrası · 6.1 öncesi
- linux linux kernel6.1.1 ve sonrası · 6.1.103 öncesi
- linux linux kernel6.2 ve sonrası · 6.6.44 öncesi
- linux linux kernel6.7 ve sonrası · 6.10.3 öncesi
- linux linux kernel6.1
Ü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
- 78e1317a174edbfd1182599bf76c092a2877672c, 6.1etkilenir
- 8bffa95ac19ff27c8261904f89d36c7fcf215d59 ve sonrası · 9ad46f1fef421d43cdab3a7d1744b2f43b54dae0 öncesietkilenir · git
- 517e6a301f34613bff24a8e35b5455884f2d83d8 ve sonrası · ed2c202dac55423a52d7e2290f2888bf08b8ee99 öncesietkilenir · git
- 517e6a301f34613bff24a8e35b5455884f2d83d8 ve sonrası · 104e258a004037bc7dba9f6085c71dad6af57ad4 öncesietkilenir · git
- 517e6a301f34613bff24a8e35b5455884f2d83d8 ve sonrası · f34d8307a73a18de5320fcc6f40403146d061891 öncesietkilenir · git
- 517e6a301f34613bff24a8e35b5455884f2d83d8 ve sonrası · 3a5465418f5fd970e86a86c7f4075be262682840 öncesietkilenir · git
- 5.15.84 ve sonrası · 5.15.165 öncesietkilenir · semver
- 6.0.14 ve sonrası · 6.1 öncesietkilenir · semver
- 6.1 öncesietkilenmez · semver
- 5.15.165 ve sonrası · 5.15.* dahil ö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.106-1 öncesi | 6.1.106-1 |
| Debian:13 | linux | 6.10.3-1 öncesi | 6.10.3-1 |
| openSUSE:Leap 15.6 | dtb-aarch64 | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| openSUSE:Leap 15.6 | kernel-debug | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| openSUSE:Leap 15.6 | kernel-kvmsmall | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| openSUSE:Leap 15.6 | kernel-obs-qa | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_12 | 1-150600.13.3.1 öncesi | 1-150600.13.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_12 | 1-150600.13.3.1 öncesi | 1-150600.13.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6-RT_Update_11 | 1-150600.1.3.2 öncesi | 1-150600.1.3.2 |
| SUSE:Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6-RT_Update_11 | 1-150600.1.3.2 öncesi | 1-150600.1.3.2 |
| SUSE:Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7_Update_2 | 1-150700.15.3.1 öncesi | 1-150700.15.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7-RT_Update_2 | 1-150700.1.5.1 öncesi | 1-150700.1.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-64kb | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-64kb | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-default | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-default | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-default-base | 6.4.0-150600.23.53.1.150600.12.24.1 öncesi | 6.4.0-150600.23.53.1.150600.12.24.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-default-base | 6.4.0-150600.23.53.1.150600.12.24.1 öncesi | 6.4.0-150600.23.53.1.150600.12.24.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-source | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-source | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-zfcpdump | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | kernel-zfcpdump | 6.4.0-150600.23.53.1 öncesi | 6.4.0-150600.23.53.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | kernel-64kb | 6.4.0-150700.53.6.1 öncesi | 6.4.0-150700.53.6.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | kernel-default | 6.4.0-150700.53.6.1 öncesi | 6.4.0-150700.53.6.1 |
+46
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 | 104e258a004037bc7dba9f6085c71dad6af57ad4 | Üretici (CNA) |
| Linux Linux | 3a5465418f5fd970e86a86c7f4075be262682840 | Üretici (CNA) |
| Linux Linux | 5.15.165 | Üretici (CNA) |
| Linux Linux | 6.1 | Üretici (CNA) |
| Linux Linux | 9ad46f1fef421d43cdab3a7d1744b2f43b54dae0 | Üretici (CNA) |
| Linux Linux | ed2c202dac55423a52d7e2290f2888bf08b8ee99 | Üretici (CNA) |
| Linux Linux | f34d8307a73a18de5320fcc6f40403146d061891 | Üretici (CNA) |
| debian:linux | 6.1.106-1 · Debian:12 | Paket deposu (OSV) |
| opensuse:kernel-rt | 6.4.0-150600.10.39.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-rt_debug | 6.4.0-150600.10.39.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-source-rt | 6.4.0-150600.10.39.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| opensuse:kernel-syms-rt | 6.4.0-150600.10.39.1 · openSUSE:Leap 15.6 | Paket deposu (OSV) |
| suse:kernel-azure | 6.4.0-150600.8.40.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6 | Paket deposu (OSV) |
| suse:kernel-coco | 6.4.0-15061.21.coco15sp6.1 · SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 | Paket deposu (OSV) |
| suse:kernel-coco_debug | 6.4.0-15061.21.coco15sp6.1 · SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP6-RT_Update_11 | 1-150600.1.3.2 · SUSE:Linux Enterprise Live Patching 15 SP6 | Paket deposu (OSV) |
| suse:kernel-rt | 6.4.0-150600.10.39.1 · SUSE:Real Time Module 15 SP6 | Paket deposu (OSV) |
| suse:kernel-rt_debug | 6.4.0-150600.10.39.1 · SUSE:Real Time Module 15 SP6 | Paket deposu (OSV) |
| suse:kernel-source-azure | 6.4.0-150600.8.40.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6 | Paket deposu (OSV) |
| suse:kernel-source-coco | 6.4.0-15061.21.coco15sp6.1 · SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 | Paket deposu (OSV) |
| suse:kernel-source-rt | 6.4.0-150600.10.39.1 · SUSE:Real Time Module 15 SP6 | Paket deposu (OSV) |
| suse:kernel-syms-azure | 6.4.0-150600.8.40.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6 | Paket deposu (OSV) |
| suse:kernel-syms-coco | 6.4.0-15061.21.coco15sp6.1 · SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 | Paket deposu (OSV) |
| suse:kernel-syms-rt | 6.4.0-150600.10.39.1 · SUSE:Real Time Module 15 SP6 | 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
- yok
- 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
- Yok
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-401 · Missing Release of Memory after Effective LifetimeCVSS vektörü
CVSS:3.1/AV:L/AC:L/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ı.
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/104e258a004037bc7dba9f6085c71dad6af57ad4
- git.kernel.org/stable/c/3a5465418f5fd970e86a86c7f4075be262682840
- git.kernel.org/stable/c/9ad46f1fef421d43cdab3a7d1744b2f43b54dae0
- git.kernel.org/stable/c/ed2c202dac55423a52d7e2290f2888bf08b8ee99
- git.kernel.org/stable/c/f34d8307a73a18de5320fcc6f40403146d061891
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.