pps: Fix a use-after-free
In the Linux kernel, the following vulnerability has been resolved: pps: Fix a use-after-free On a board running ntpd and gpsd, I'm seeing a consistent use-after-free in sys_exit() from gpsd when rebooting: pps pps1: removed ------------[ cut here ]------------ kobject: '(null)' (00000000db4bec24): is not initialized, yet kobject_put() is being called. WARNING: CPU: 2 PID: 440 at lib/kobject.c:734 kobject_put+0x120/0x150 CPU: 2 UID: 299 PID: 440 Comm: gpsd Not tainted 6.11.0-rc6-00308-gb31c44928842 #1 Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kobject_put+0x120/0x150 lr : kobject_put+0x120/0x150 sp : ffffffc0803d3ae0 x29: ffffffc0803d3ae0 x28: ffffff8042dc9738 x27: 0000000000000001 x26: 0000000000000000 x25: ffffff8042dc9040 x24: ffffff8042dc9440 x23: ffffff80402a4620 x22: ffffff8042ef4bd0 x21: ffffff80405cb600 x20: 000000000008001b x19: ffffff8040b3b6e0 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 696e6920746f6e20 x14: 7369203a29343263 x13: 205d303434542020 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: kobject_put+0x120/0x150 cdev_put+0x20/0x3c __fput+0x2c4/0x2d8 ____fput+0x1c/0x38 task_work_run+0x70/0xfc do_exit+0x2a0/0x924 do_group_exit+0x34/0x90 get_signal+0x7fc/0x8c0 do_signal+0x128/0x13b4 do_notify_resume+0xdc/0x160 el0_svc+0xd4/0xf8 el0t_64_sync_handler+0x140/0x14c el0t_64_sync+0x190/0x194 ---[ end trace 0000000000000000 ]--- ...followed by more symptoms of corruption, with similar stacks: refcount_t: underflow; use-after-free. kernel BUG at lib/list_debug.c:62! Kernel panic - not syncing: Oops - BUG: Fatal exception This happens because pps_device_destruct() frees the pps_device with the embedded cdev immediately after calling cdev_del(), but, as the comment above cdev_del() notes, fops for previously opened cdevs are still callable even after cdev_del() returns. I think this bug has always been there: I can't explain why it suddenly started happening every time I reboot this particular board. In commit d953e0e837e6 ("pps: Fix a use-after free bug when unregistering a source."), George Spelvin suggested removing the embedded cdev. That seems like the simplest way to fix this, so I've implemented his suggestion, using __register_chrdev() with pps_idr becoming the source of truth for which minor corresponds to which device. But now that pps_idr defines userspace visibility instead of cdev_add(), we need to be sure the pps->dev refcount can't reach zero while userspace can still find it again. So, the idr_remove() call moves to pps_unregister_cdev(), and pps_idr now holds a reference to pps->dev. pps_core: source serial1 got cdev (251:1) <...> pps pps1: removed pps_core: unregistering pps1 pps_core: deallocating pps1
- Yayın
- 26 Şub 2025
- Güncelleme
- 8 Eyl 2026
- EPSS
- %0,3 · 16. 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,3
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
- —
- CNA · Linux
- 7,8
- NVD henüz kendi puanını vermedi; gösterilen puan CNA’nın.
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 kernel3.2.40 ve sonrası · 3.3 öncesi
- linux linux kernel3.4.87 ve sonrası · 3.5 öncesi
- linux linux kernel3.8.1 ve sonrası · 5.4.291 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.235 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.179 öncesi
- linux linux kernel5.16 ve sonrası · 6.1.129 öncesi
- linux linux kernel6.2 ve sonrası · 6.6.76 öncesi
- linux linux kernel6.7 ve sonrası · 6.12.13 öncesi
- linux linux kernel6.13 ve sonrası · 6.13.2 ö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
- 77327a71f9841b7dfa708195d1cb133d4ef4a989, cd59fb14918a6b20c1ac8be121fa6397b97b00cb, 49626fbb0360332e40fd76a48cb2ba876d6134ad, 3.9etkilenir
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · 785c78ed0d39d1717cca3ef931d3e51337b5e90e öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · 1a7735ab2cb9747518a7416fb5929e85442dec62 öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · c4041b6b0a7a3def8cf3f3d6120ff337bc4c40f7 öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · 91932db1d96b2952299ce30c1c693d834d10ace6 öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · cd3bbcb6b3a7caa5ce67de76723b6d8531fb7f64 öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · 7e5ee3281dc09014367f5112b6d566ba36ea2d49 öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · 85241f7de216f8298f6e48540ea13d7dcd100870 öncesietkilenir · git
- d953e0e837e65ecc1ddaa4f9560f7925878a0de6 ve sonrası · c79a39dc8d060b9e64e8b0fa9d245d44befeefbe öncesietkilenir · git
- 3.2.40 ve sonrası · 3.3 ö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 |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.44.1.el8_10 öncesi | 4.18.0-553.44.1.el8_10 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.44.1.rt7.385.el8_10 öncesi | 4.18.0-553.44.1.rt7.385.el8_10 |
+65
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 | 1a7735ab2cb9747518a7416fb5929e85442dec62 | Üretici (CNA) |
| Linux Linux | 3.3 | Üretici (CNA) |
| Linux Linux | 3.5 | Üretici (CNA) |
| Linux Linux | 3.9 | Üretici (CNA) |
| Linux Linux | 785c78ed0d39d1717cca3ef931d3e51337b5e90e | Üretici (CNA) |
| Linux Linux | 7e5ee3281dc09014367f5112b6d566ba36ea2d49 | Üretici (CNA) |
| Linux Linux | 85241f7de216f8298f6e48540ea13d7dcd100870 | Üretici (CNA) |
| Linux Linux | 91932db1d96b2952299ce30c1c693d834d10ace6 | Üretici (CNA) |
| Linux Linux | c4041b6b0a7a3def8cf3f3d6120ff337bc4c40f7 | Üretici (CNA) |
| Linux Linux | c79a39dc8d060b9e64e8b0fa9d245d44befeefbe | Üretici (CNA) |
| Linux Linux | cd3bbcb6b3a7caa5ce67de76723b6d8531fb7f64 | Üretici (CNA) |
| almalinux:bpftool | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-abi-stablelists | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-core | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-cross-headers | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-core | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-devel | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-modules | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-debug-modules-extra | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-devel | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| almalinux:kernel-doc | 4.18.0-553.44.1.el8_10 · AlmaLinux:8 | Paket deposu (OSV) |
| debian:linux | 6.1.129-1 · Debian:12 | Paket deposu (OSV) |
| debian:linux-6.1 | 6.1.129-1~deb11u1 · Debian:11 | Paket deposu (OSV) |
| red hat:bpftool | 0:4.18.0-553.44.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-553.44.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel | 0:4.18.0-553.44.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-553.44.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-core | 0:4.18.0-553.44.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
+9
İ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-secondary
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/1a7735ab2cb9747518a7416fb5929e85442dec62
- git.kernel.org/stable/c/785c78ed0d39d1717cca3ef931d3e51337b5e90e
- git.kernel.org/stable/c/7e5ee3281dc09014367f5112b6d566ba36ea2d49
- git.kernel.org/stable/c/85241f7de216f8298f6e48540ea13d7dcd100870
- git.kernel.org/stable/c/91932db1d96b2952299ce30c1c693d834d10ace6
- git.kernel.org/stable/c/c4041b6b0a7a3def8cf3f3d6120ff337bc4c40f7
- git.kernel.org/stable/c/c79a39dc8d060b9e64e8b0fa9d245d44befeefbe
- git.kernel.org/stable/c/cd3bbcb6b3a7caa5ce67de76723b6d8531fb7f64
- lists.debian.org/debian-lts-announce/2025/03/msg00028.html
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- cert-portal.siemens.com/productcert/html/ssa-019113.html
- cert-portal.siemens.com/productcert/html/ssa-265688.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.