mm/slub: add missing TID updates on slab deactivation
In the Linux kernel, the following vulnerability has been resolved: mm/slub: add missing TID updates on slab deactivation The fastpath in slab_alloc_node() assumes that c->slab is stable as long as the TID stays the same. However, two places in __slab_alloc() currently don't update the TID when deactivating the CPU slab. If multiple operations race the right way, this could lead to an object getting lost; or, in an even more unlikely situation, it could even lead to an object being freed onto the wrong slab's freelist, messing up the `inuse` counter and eventually causing a page to be freed to the page allocator while it still contains slab objects. (I haven't actually tested these cases though, this is just based on looking at the code. Writing testcases for this stuff seems like it'd be a pain...) The race leading to state inconsistency is (all operations on the same CPU and kmem_cache): - task A: begin do_slab_free(): - read TID - read pcpu freelist (==NULL) - check `slab == c->slab` (true) - [PREEMPT A->B] - task B: begin slab_alloc_node(): - fastpath fails (`c->freelist` is NULL) - enter __slab_alloc() - slub_get_cpu_ptr() (disables preemption) - enter ___slab_alloc() - take local_lock_irqsave() - read c->freelist as NULL - get_freelist() returns NULL - write `c->slab = NULL` - drop local_unlock_irqrestore() - goto new_slab - slub_percpu_partial() is NULL - get_partial() returns NULL - slub_put_cpu_ptr() (enables preemption) - [PREEMPT B->A] - task A: finish do_slab_free(): - this_cpu_cmpxchg_double() succeeds() - [CORRUPT STATE: c->slab==NULL, c->freelist!=NULL] From there, the object on c->freelist will get lost if task B is allowed to continue from here: It will proceed to the retry_load_slab label, set c->slab, then jump to load_freelist, which clobbers c->freelist. But if we instead continue as follows, we get worse corruption: - task A: run __slab_free() on object from other struct slab: - CPU_PARTIAL_FREE case (slab was on no list, is now on pcpu partial) - task A: run slab_alloc_node() with NUMA node constraint: - fastpath fails (c->slab is NULL) - call __slab_alloc() - slub_get_cpu_ptr() (disables preemption) - enter ___slab_alloc() - c->slab is NULL: goto new_slab - slub_percpu_partial() is non-NULL - set c->slab to slub_percpu_partial(c) - [CORRUPT STATE: c->slab points to slab-1, c->freelist has objects from slab-2] - goto redo - node_match() fails - goto deactivate_slab - existing c->freelist is passed into deactivate_slab() - inuse count of slab-1 is decremented to account for object from slab-2 At this point, the inuse count of slab-1 is 1 lower than it should be. This means that if we free all allocated objects in slab-1 except for one, SLUB will think that slab-1 is completely unused, and may free its page, leading to use-after-free.
- Yayın
- 26 Şub 2025
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,3 · 19. 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.1 ve sonrası · 4.9.323 öncesi
- linux linux kernel4.10 ve sonrası · 4.14.288 öncesi
- linux linux kernel4.15 ve sonrası · 4.19.252 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.205 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.130 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.54 öncesi
- linux linux kernel5.16 ve sonrası · 5.18.8 öncesi
- linux linux kernel5.19
Ü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
- 3.1etkilenir
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · 308c6d0e1f200fd26c71270c6e6bfcf0fc6ff082 öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · d6a597450e686d4c6388bd3cdcb17224b4dae7f0 öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · e2b2f0e2e34d71ae6c2a1114fd3c525930e84bc7 öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · e7e3e90d671078455a3a08189f89d85b3da2de9e öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · 6c32496964da0dc230cea763a0e934b2e02dabd5 öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · 0515cc9b6b24877f59b222ade704bfaa42caa2a6 öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · 197e257da473c725dfe47759c3ee02f2398d8ea5 öncesietkilenir · git
- 03e404af26dc2ea0d278d7a342de0aab394793ce ve sonrası · eeaa345e128515135ccb864c04482180c08e3259 öncesietkilenir · git
- 3.1 ö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 | 5.18.14-1 öncesi | 5.18.14-1 |
| Red Hat:enterprise_linux:8::baseos | bpftool | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | bpftool-debuginfo | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-abi-stablelists | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-core | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-core | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-debuginfo | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-devel | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-modules | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-modules-extra | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-aarch64 | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-ppc64le | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-s390x | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-x86_64 | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-devel | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-doc | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-modules | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-modules-extra | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-tools | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-tools-debuginfo | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
| Red Hat:enterprise_linux:8::baseos | kernel-tools-libs | 0:4.18.0-553.el8_10 öncesi | 0:4.18.0-553.el8_10 |
+12
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 | 0515cc9b6b24877f59b222ade704bfaa42caa2a6 | Üretici (CNA) |
| Linux Linux | 197e257da473c725dfe47759c3ee02f2398d8ea5 | Üretici (CNA) |
| Linux Linux | 308c6d0e1f200fd26c71270c6e6bfcf0fc6ff082 | Üretici (CNA) |
| Linux Linux | 6c32496964da0dc230cea763a0e934b2e02dabd5 | Üretici (CNA) |
| Linux Linux | d6a597450e686d4c6388bd3cdcb17224b4dae7f0 | Üretici (CNA) |
| Linux Linux | e2b2f0e2e34d71ae6c2a1114fd3c525930e84bc7 | Üretici (CNA) |
| Linux Linux | e7e3e90d671078455a3a08189f89d85b3da2de9e | Üretici (CNA) |
| Linux Linux | eeaa345e128515135ccb864c04482180c08e3259 | Üretici (CNA) |
| debian:linux | 5.18.14-1 · Debian:12 | Paket deposu (OSV) |
| red hat:bpftool | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-core | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-modules | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-modules-extra | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| red hat:kernel-debuginfo | 0:4.18.0-553.el8_10 · Red Hat:enterprise_linux:8::baseos | Paket deposu (OSV) |
| rocky linux:kernel | 0:4.18.0-553.123.1.el8_10.cloud.0.1 · Rocky Linux:8 | 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-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/0515cc9b6b24877f59b222ade704bfaa42caa2a6
- git.kernel.org/stable/c/197e257da473c725dfe47759c3ee02f2398d8ea5
- git.kernel.org/stable/c/308c6d0e1f200fd26c71270c6e6bfcf0fc6ff082
- git.kernel.org/stable/c/6c32496964da0dc230cea763a0e934b2e02dabd5
- git.kernel.org/stable/c/d6a597450e686d4c6388bd3cdcb17224b4dae7f0
- git.kernel.org/stable/c/e2b2f0e2e34d71ae6c2a1114fd3c525930e84bc7
- git.kernel.org/stable/c/e7e3e90d671078455a3a08189f89d85b3da2de9e
- git.kernel.org/stable/c/eeaa345e128515135ccb864c04482180c08e3259
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.