ubifs: Fix to add refcount once page is set private
In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix to add refcount once page is set private MM defined the rule [1] very clearly that once page was set with PG_private flag, we should increment the refcount in that page, also main flows like pageout(), migrate_page() will assume there is one additional page reference count if page_has_private() returns true. Otherwise, we may get a BUG in page migration: page:0000000080d05b9d refcount:-1 mapcount:0 mapping:000000005f4d82a8 index:0xe2 pfn:0x14c12 aops:ubifs_file_address_operations [ubifs] ino:8f1 dentry name:"f30e" flags: 0x1fffff80002405(locked|uptodate|owner_priv_1|private|node=0| zone=1|lastcpupid=0x1fffff) page dumped because: VM_BUG_ON_PAGE(page_count(page) != 0) ------------[ cut here ]------------ kernel BUG at include/linux/page_ref.h:184! invalid opcode: 0000 [#1] SMP CPU: 3 PID: 38 Comm: kcompactd0 Not tainted 5.15.0-rc5 RIP: 0010:migrate_page_move_mapping+0xac3/0xe70 Call Trace: ubifs_migrate_page+0x22/0xc0 [ubifs] move_to_new_page+0xb4/0x600 migrate_pages+0x1523/0x1cc0 compact_zone+0x8c5/0x14b0 kcompactd+0x2bc/0x560 kthread+0x18c/0x1e0 ret_from_fork+0x1f/0x30 Before the time, we should make clean a concept, what does refcount means in page gotten from grab_cache_page_write_begin(). There are 2 situations: Situation 1: refcount is 3, page is created by __page_cache_alloc. TYPE_A - the write process is using this page TYPE_B - page is assigned to one certain mapping by calling __add_to_page_cache_locked() TYPE_C - page is added into pagevec list corresponding current cpu by calling lru_cache_add() Situation 2: refcount is 2, page is gotten from the mapping's tree TYPE_B - page has been assigned to one certain mapping TYPE_A - the write process is using this page (by calling page_cache_get_speculative()) Filesystem releases one refcount by calling put_page() in xxx_write_end(), the released refcount corresponds to TYPE_A (write task is using it). If there are any processes using a page, page migration process will skip the page by judging whether expected_page_refs() equals to page refcount. The BUG is caused by following process: PA(cpu 0) kcompactd(cpu 1) compact_zone ubifs_write_begin page_a = grab_cache_page_write_begin add_to_page_cache_lru lru_cache_add pagevec_add // put page into cpu 0's pagevec (refcnf = 3, for page creation process) ubifs_write_end SetPagePrivate(page_a) // doesn't increase page count ! unlock_page(page_a) put_page(page_a) // refcnt = 2 [...] PB(cpu 0) filemap_read filemap_get_pages add_to_page_cache_lru lru_cache_add __pagevec_lru_add // traverse all pages in cpu 0's pagevec __pagevec_lru_add_fn SetPageLRU(page_a) isolate_migratepages isolate_migratepages_block get_page_unless_zero(page_a) // refcnt = 3 list_add(page_a, from_list) migrate_pages(from_list) __unmap_and_move move_to_new_page ubifs_migrate_page(page_a) migrate_page_move_mapping expected_page_refs get 3 (migration[1] + mapping[1] + private[1]) release_pages put_page_testzero(page_a) // refcnt = 3 page_ref_freeze // refcnt = 0 page_ref_dec_and_test(0 - 1 = -1) page_ref_unfreeze VM_BUG_ON_PAGE(-1 != 0, page) UBIFS doesn't increase the page refcount after setting private flag, which leads to page migration task believes the page is not used by any other processes, so the page is migrated. This causes concurrent accessing on page refcount between put_page() called by other process(eg. read process calls lru_cache_add) and page_ref_unfreeze() called by mi ---truncated---
- Yayın
- 26 Şub 2025
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,3 · 16. yüzdelik
- CWE
- —
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,3
CNA ile NVD puanı
- NVD
- 5,5
- CNA · Linux
- 7,8
- 2,3 puan fark
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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 kernel2.6.27 ve sonrası · 5.10.110 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.33 öncesi
- linux linux kernel5.16 ve sonrası · 5.16.19 öncesi
- linux linux kernel5.17 ve sonrası · 5.17.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
- 2.6.27etkilenir
- 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d ve sonrası · c34ae24a2590fee96a3a7735ba2fa6cc52306221 öncesietkilenir · git
- 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d ve sonrası · 4f75bab98565afd4f905059c56ec4caba88a7eec öncesietkilenir · git
- 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d ve sonrası · 5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22 öncesietkilenir · git
- 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d ve sonrası · fbeb2139eed65e929ce806c6468e6601ade01b1b öncesietkilenir · git
- 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d ve sonrası · 3b67db8a6ca83e6ff90b756d3da0c966f61cd37b öncesietkilenir · git
- 2.6.27 öncesietkilenmez · semver
- 5.10.110 ve sonrası · 5.10.* dahil öncesietkilenmez · semver
- 5.15.33 ve sonrası · 5.15.* dahil öncesietkilenmez · semver
- 5.16.19 ve sonrası · 5.16.* 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 | 5.17.3-1 öncesi | 5.17.3-1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-64kb | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-docs | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-obs-build | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-syms | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-64kb | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-docs | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-obs-build | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-syms | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
| SUSE:Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_38 | 1-150400.9.3.1 öncesi | 1-150400.9.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_25 | 1-150500.11.3.1 öncesi | 1-150500.11.3.1 |
| SUSE:Linux Enterprise Micro 5.3 | kernel-default | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise Micro 5.3 | kernel-default-base | 5.14.21-150400.24.158.1.150400.24.78.1 öncesi | 5.14.21-150400.24.158.1.150400.24.78.1 |
| SUSE:Linux Enterprise Micro 5.3 | kernel-rt | 5.14.21-150400.15.115.1 öncesi | 5.14.21-150400.15.115.1 |
| SUSE:Linux Enterprise Micro 5.3 | kernel-source-rt | 5.14.21-150400.15.115.1 öncesi | 5.14.21-150400.15.115.1 |
| SUSE:Linux Enterprise Micro 5.5 | kernel-default | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
| SUSE:Linux Enterprise Micro 5.5 | kernel-default-base | 5.14.21-150500.55.100.1.150500.6.47.1 öncesi | 5.14.21-150500.55.100.1.150500.6.47.1 |
| SUSE:Linux Enterprise Micro 5.5 | kernel-rt | 5.14.21-150500.13.91.1 öncesi | 5.14.21-150500.13.91.1 |
| SUSE:Linux Enterprise Micro 5.5 | kernel-source | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
| SUSE:Linux Enterprise Micro 5.5 | kernel-source-rt | 5.14.21-150500.13.91.1 öncesi | 5.14.21-150500.13.91.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | kernel-zfcpdump | 5.14.21-150400.24.158.1 öncesi | 5.14.21-150400.24.158.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | kernel-zfcpdump | 5.14.21-150500.55.100.1 öncesi | 5.14.21-150500.55.100.1 |
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 | 3b67db8a6ca83e6ff90b756d3da0c966f61cd37b | Üretici (CNA) |
| Linux Linux | 4f75bab98565afd4f905059c56ec4caba88a7eec | Üretici (CNA) |
| Linux Linux | 5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22 | Üretici (CNA) |
| Linux Linux | c34ae24a2590fee96a3a7735ba2fa6cc52306221 | Üretici (CNA) |
| Linux Linux | fbeb2139eed65e929ce806c6468e6601ade01b1b | Üretici (CNA) |
| debian:linux | 5.17.3-1 · Debian:12 | Paket deposu (OSV) |
| suse:kernel-64kb | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Paket deposu (OSV) |
| suse:kernel-default | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise Micro 5.3 | Paket deposu (OSV) |
| suse:kernel-default-base | 5.14.21-150400.24.158.1.150400.24.78.1 · SUSE:Linux Enterprise Micro 5.3 | Paket deposu (OSV) |
| suse:kernel-docs | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP4_Update_38 | 1-150400.9.3.1 · SUSE:Linux Enterprise Live Patching 15 SP4 | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP5_Update_25 | 1-150500.11.3.1 · SUSE:Linux Enterprise Live Patching 15 SP5 | Paket deposu (OSV) |
| suse:kernel-obs-build | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Paket deposu (OSV) |
| suse:kernel-rt | 5.14.21-150500.13.91.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-source | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Paket deposu (OSV) |
| suse:kernel-source-rt | 5.14.21-150500.13.91.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-syms | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Paket deposu (OSV) |
| suse:kernel-zfcpdump | 5.14.21-150400.24.158.1 · SUSE:Linux Enterprise Server 15 SP4-LTSS | 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)
—
CVSS 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/3b67db8a6ca83e6ff90b756d3da0c966f61cd37b
- git.kernel.org/stable/c/4f75bab98565afd4f905059c56ec4caba88a7eec
- git.kernel.org/stable/c/5aaa2c0f0052b02c4a982993d4c5bb68fb7cbe22
- git.kernel.org/stable/c/c34ae24a2590fee96a3a7735ba2fa6cc52306221
- git.kernel.org/stable/c/fbeb2139eed65e929ce806c6468e6601ade01b1b
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.