İçeriğe atla
Noroxi
CVE-2025-68358· NVD / CVE Programı· CNA Linux

btrfs: fix racy bitfield write in btrfs_clear_space_info_full()

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix racy bitfield write in btrfs_clear_space_info_full() From the memory-barriers.txt document regarding memory barrier ordering guarantees: (*) These guarantees do not apply to bitfields, because compilers often generate code to modify these using non-atomic read-modify-write sequences. Do not attempt to use bitfields to synchronize parallel algorithms. (*) Even in cases where bitfields are protected by locks, all fields in a given bitfield must be protected by one lock. If two fields in a given bitfield are protected by different locks, the compiler's non-atomic read-modify-write sequences can cause an update to one field to corrupt the value of an adjacent field. btrfs_space_info has a bitfield sharing an underlying word consisting of the fields full, chunk_alloc, and flush: struct btrfs_space_info { struct btrfs_fs_info * fs_info; /* 0 8 */ struct btrfs_space_info * parent; /* 8 8 */ ... int clamp; /* 172 4 */ unsigned int full:1; /* 176: 0 4 */ unsigned int chunk_alloc:1; /* 176: 1 4 */ unsigned int flush:1; /* 176: 2 4 */ ... Therefore, to be safe from parallel read-modify-writes losing a write to one of the bitfield members protected by a lock, all writes to all the bitfields must use the lock. They almost universally do, except for btrfs_clear_space_info_full() which iterates over the space_infos and writes out found->full = 0 without a lock. Imagine that we have one thread completing a transaction in which we finished deleting a block_group and are thus calling btrfs_clear_space_info_full() while simultaneously the data reclaim ticket infrastructure is running do_async_reclaim_data_space(): T1 T2 btrfs_commit_transaction btrfs_clear_space_info_full data_sinfo->full = 0 READ: full:0, chunk_alloc:0, flush:1 do_async_reclaim_data_space(data_sinfo) spin_lock(&space_info->lock); if(list_empty(tickets)) space_info->flush = 0; READ: full: 0, chunk_alloc:0, flush:1 MOD/WRITE: full: 0, chunk_alloc:0, flush:0 spin_unlock(&space_info->lock); return; MOD/WRITE: full:0, chunk_alloc:0, flush:1 and now data_sinfo->flush is 1 but the reclaim worker has exited. This breaks the invariant that flush is 0 iff there is no work queued or running. Once this invariant is violated, future allocations that go into __reserve_bytes() will add tickets to space_info->tickets but will see space_info->flush is set to 1 and not queue the work. After this, they will block forever on the resulting ticket, as it is now impossible to kick the worker again. I also confirmed by looking at the assembly of the affected kernel that it is doing RMW operations. For example, to set the flush (3rd) bit to 0, the assembly is: andb $0xfb,0x60(%rbx) and similarly for setting the full (1st) bit to 0: andb $0xfe,-0x20(%rax) So I think this is really a bug on practical systems. I have observed a number of systems in this exact state, but am currently unable to reproduce it. Rather than leaving this footgun lying around for the future, take advantage of the fact that there is room in the struct anyway, and that it is already quite large and simply change the three bitfield members to bools. This avoids writes to space_info->full having any effect on ---truncated---

OrtaCVSS 5.5 · v3.1—İstismar yok Düzeltme var
Yayın
24 Ara 2025
Güncelleme
17 Haz 2026
EPSS
%0,2 · 7. yüzdelik
CWE
—
Bu CVE’yi takip et

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ı

JSON

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

Etkilenen sistemler

ÜreticiÜrün
linuxlinux 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 kernel4.8 ve sonrası · 5.15.201 öncesi
  • linux linux kernel5.16 ve sonrası · 6.1.164 öncesi
  • linux linux kernel6.2 ve sonrası · 6.6.124 öncesi
  • linux linux kernel6.7 ve sonrası · 6.12.68 öncesi
  • linux linux kernel6.13 ve sonrası · 6.17.13 öncesi
  • linux linux kernel6.18 ve sonrası · 6.18.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

    • 4.8etkilenir
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · b0bb67385480a3aa4c54b139e4f371ddd06b5150 öncesietkilenir · git
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · 55835646da78e83e7ad06abd741ca8fd8c0b0ea7 öncesietkilenir · git
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · d4a81b8ec639895999275ea2472c69825cd67ea4 öncesietkilenir · git
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · db4ae18e1b31e0421fb5312e56aefa382bbc6ece öncesietkilenir · git
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · 6f442808a86eef847ee10afa9e6459494ed85bb3 öncesietkilenir · git
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · 742b90eaf394f0018352c0e10dc89763b2dd5267 öncesietkilenir · git
    • 957780eb2788d8c218d539e19a85653f51a96dc1 ve sonrası · 38e818718c5e04961eea0fa8feff3f100ce40408 öncesietkilenir · git
    • 4.8 öncesietkilenmez · semver
    • 5.15.201 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.

EkosistemPaketEtkilenen aralıkDüzeltme
Debian:11linux-6.16.1.164-1~deb11u1 öncesi6.1.164-1~deb11u1
Debian:12linux6.1.164-1 öncesi6.1.164-1
Debian:13linux6.12.69-1 öncesi6.12.69-1
Debian:14linux6.17.13-1 öncesi6.17.13-1
openSUSE:Leap 16.0dtb-aarch646.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-64kb6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-azure6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-default6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-default-base6.12.0-160000.38.1.160000.2.22 öncesi6.12.0-160000.38.1.160000.2.22
openSUSE:Leap 16.0kernel-docs6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-kvmsmall6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-obs-build6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-obs-qa6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-rt6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-source6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-syms6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Leap 16.0kernel-zfcpdump6.12.0-160000.38.1 öncesi6.12.0-160000.38.1
openSUSE:Tumbleweedkernel-source6.18.5-1.1 öncesi6.18.5-1.1

Aynı 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 KEV
    89Hemen
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Hemen
  • 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 haKEV
    83Hemen
  • 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 creKEV
    77Bu 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 addKEV
    77Bu 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 loKEV
    77Bu 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 / paketDüzeltilmiş sürümKaynak
Linux Linux38e818718c5e04961eea0fa8feff3f100ce40408Üretici (CNA)
Linux Linux55835646da78e83e7ad06abd741ca8fd8c0b0ea7Üretici (CNA)
Linux Linux6f442808a86eef847ee10afa9e6459494ed85bb3Üretici (CNA)
Linux Linux742b90eaf394f0018352c0e10dc89763b2dd5267Üretici (CNA)
Linux Linuxb0bb67385480a3aa4c54b139e4f371ddd06b5150Üretici (CNA)
Linux Linuxd4a81b8ec639895999275ea2472c69825cd67ea4Üretici (CNA)
Linux Linuxdb4ae18e1b31e0421fb5312e56aefa382bbc6eceÜretici (CNA)
debian:linux6.1.164-1 · Debian:12Paket deposu (OSV)
debian:linux-6.16.1.164-1~deb11u1 · Debian:11Paket deposu (OSV)
opensuse:dtb-aarch646.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-64kb6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-azure6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-default6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-default-base6.12.0-160000.38.1.160000.2.22 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-docs6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-kvmsmall6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-obs-build6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-obs-qa6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-rt6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-source6.18.5-1.1 · openSUSE:TumbleweedPaket deposu (OSV)
opensuse:kernel-syms6.12.0-160000.38.1 · openSUSE:Leap 16.0Paket 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.

EPSS son 120 gün

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.

CNA 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 isteyin

Değişiklik günlüğü

  1. Düzeltme✗ → ✓

Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →

Referanslar

Tüm kayıtlar