sched/psi: fix race between file release and pressure write
In the Linux kernel, the following vulnerability has been resolved: sched/psi: fix race between file release and pressure write A potential race condition exists between pressure write and cgroup file release regarding the priv member of struct kernfs_open_file, which triggers the uaf reported in [1]. Consider the following scenario involving execution on two separate CPUs: CPU0 CPU1 ==== ==== vfs_rmdir() kernfs_iop_rmdir() cgroup_rmdir() cgroup_kn_lock_live() cgroup_destroy_locked() cgroup_addrm_files() cgroup_rm_file() kernfs_remove_by_name() kernfs_remove_by_name_ns() vfs_write() __kernfs_remove() new_sync_write() kernfs_drain() kernfs_fop_write_iter() kernfs_drain_open_files() cgroup_file_write() kernfs_release_file() pressure_write() cgroup_file_release() ctx = of->priv; kfree(ctx); of->priv = NULL; cgroup_kn_unlock() cgroup_kn_lock_live() cgroup_get(cgrp) cgroup_kn_unlock() if (ctx->psi.trigger) // here, trigger uaf for ctx, that is of->priv The cgroup_rmdir() is protected by the cgroup_mutex, it also safeguards the memory deallocation of of->priv performed within cgroup_file_release(). However, the operations involving of->priv executed within pressure_write() are not entirely covered by the protection of cgroup_mutex. Consequently, if the code in pressure_write(), specifically the section handling the ctx variable executes after cgroup_file_release() has completed, a uaf vulnerability involving of->priv is triggered. Therefore, the issue can be resolved by extending the scope of the cgroup_mutex lock within pressure_write() to encompass all code paths involving of->priv, thereby properly synchronizing the race condition occurring between cgroup_file_release() and pressure_write(). And, if an live kn lock can be successfully acquired while executing the pressure write operation, it indicates that the cgroup deletion process has not yet reached its final stage; consequently, the priv pointer within open_file cannot be NULL. Therefore, the operation to retrieve the ctx value must be moved to a point *after* the live kn lock has been successfully acquired. In another situation, specifically after entering cgroup_kn_lock_live() but before acquiring cgroup_mutex, there exists a different class of race condition: CPU0: write memory.pressure CPU1: write cgroup.pressure=0 =========================== ============================= kernfs_fop_write_iter() kernfs_get_active_of(of) pressure_write() cgroup_kn_lock_live(memory.pressure) cgroup_tryget(cgrp) kernfs_break_active_protection(kn) ... blocks on cgroup_mutex cgroup_pressure_write() cgroup_kn_lock_live(cgroup.pressure) cgroup_file_show(memory.pressure, false) kernfs_show(false) kernfs_drain_open_files() cgroup_file_release(of) kfree(ctx) of->priv = NULL cgroup_kn_unlock() ... acquires cgroup_mutex ctx = of->priv; // may now be NULL if (ctx->psi.trigger) // NULL dereference Consequently, there is a possibility that of->priv is NULL, the pressure write needs to check for this. Now that the scope of the cgroup_mutex has been expanded, the original explicit cgroup_get/put operations are no longer necessary, this is because acquiring/releasing the live kn lock inherently executes a cgroup get/put operation. [1] BUG: KASAN: slab-use-after-free in pressure_write+0xa4/0x210 kernel/cgroup/cgroup.c:4011 Call Trace: pressure_write+0xa4/0x210 kernel/cgroup/cgroup.c:4011 cgroup_file_write+0x36f/0x790 kernel/cgroup/cgroup.c:43 ---truncated---
- Yayın
- 24 Haz 2026
- Güncelleme
- 20 Ağu 2026
- EPSS
- %0,1 · 1. yüzdelik
- CWE
- CWE-362
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,1
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.
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 isteyinEtkilenen 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.2 ve sonrası · 6.18.33 öncesi
- linux linux kernel6.19 ve sonrası · 7.0.10 öncesi
- linux linux kernel7.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
- 5.2etkilenir
- 0e94682b73bfa6c44c98af7a26771c9c08c055d5 ve sonrası · 03dc070fa0fc3cb4068693f468ccd5f8a7e58282 öncesietkilenir · git
- 0e94682b73bfa6c44c98af7a26771c9c08c055d5 ve sonrası · d4352c0709bfd38c752fccbde7fd72a82ac78f23 öncesietkilenir · git
- 0e94682b73bfa6c44c98af7a26771c9c08c055d5 ve sonrası · a5b98009f16d8a5fb4a8ff9a193f5735515c38fa öncesietkilenir · git
- 5.2 öncesietkilenmez · semver
- 6.18.33 ve sonrası · 6.18.* dahil öncesietkilenmez · semver
- 7.0.10 ve sonrası · 7.0.* dahil öncesietkilenmez · semver
- 7.1 ve sonrasıetkilenmez · original_commit_for_fix
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:10 | kernel | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-devel | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-devel-matched | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules-extra | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-devel | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-devel-matched | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules-extra | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-abi-stablelists | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-cross-headers | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-debug | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-debug-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-debug-devel | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-debug-devel-matched | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-debug-modules | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
| AlmaLinux:10 | kernel-debug-modules-core | 6.12.0-211.49.1.el10_2 öncesi | 6.12.0-211.49.1.el10_2 |
+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 | 03dc070fa0fc3cb4068693f468ccd5f8a7e58282 | Üretici (CNA) |
| Linux Linux | a5b98009f16d8a5fb4a8ff9a193f5735515c38fa | Üretici (CNA) |
| Linux Linux | d4352c0709bfd38c752fccbde7fd72a82ac78f23 | Üretici (CNA) |
| almalinux:kernel | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-core | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-core | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-core | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel-matched | 6.12.0-211.49.1.el10_2 · AlmaLinux:10 | Paket deposu (OSV) |
| debian:linux | 7.0.10-1 · Debian:14 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-64k-debuginfo | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-64k-devel | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-64k-devel-matched | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-debug-devel-matched | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-debuginfo | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-debuginfo-common-aarch64 | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| red hat:kernel-debuginfo-common-ppc64le | 0:6.12.0-211.49.1.el10_2 · Red Hat:enterprise_linux:10.2 | Paket deposu (OSV) |
| rocky linux:kernel | 0:6.12.0-211.49.1.el10_2 · Rocky Linux:10 | Paket deposu (OSV) |
| rocky linux:kernel-rt | 0:4.18.0-553.157.1.rt7.498.el8_10 · 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).
Ulusal bildirim (Siber Güvenlik Başkanlığı / USOM)
Bu kaydı anan resmi güvenlik bildirimleri; çözüm önerisi kurumun sayfasında.
- TR-26-0440 · 25 Haz 2026(Linux Kernel Güvenlik Bildirimi)
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-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')CVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-secondary
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ı.
Saldırı desenleri (CAPEC)
ATT&CK teknikleri
—
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/03dc070fa0fc3cb4068693f468ccd5f8a7e58282
- git.kernel.org/stable/c/a5b98009f16d8a5fb4a8ff9a193f5735515c38fa
- git.kernel.org/stable/c/d4352c0709bfd38c752fccbde7fd72a82ac78f23
- access.redhat.com/errata/RHSA-2026:57251
- access.redhat.com/errata/RHSA-2026:57252
- access.redhat.com/errata/RHSA-2026:57253
- access.redhat.com/errata/RHSA-2026:57254
- access.redhat.com/security/cve/CVE-2026-52991
- bugzilla.redhat.com/show_bug.cgi?id=2492403
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52991.json
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.