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

fs: Prevent file descriptor table allocations exceeding INT_MAX

In the Linux kernel, the following vulnerability has been resolved: fs: Prevent file descriptor table allocations exceeding INT_MAX When sysctl_nr_open is set to a very high value (for example, 1073741816 as set by systemd), processes attempting to use file descriptors near the limit can trigger massive memory allocation attempts that exceed INT_MAX, resulting in a WARNING in mm/slub.c: WARNING: CPU: 0 PID: 44 at mm/slub.c:5027 __kvmalloc_node_noprof+0x21a/0x288 This happens because kvmalloc_array() and kvmalloc() check if the requested size exceeds INT_MAX and emit a warning when the allocation is not flagged with __GFP_NOWARN. Specifically, when nr_open is set to 1073741816 (0x3ffffff8) and a process calls dup2(oldfd, 1073741880), the kernel attempts to allocate: - File descriptor array: 1073741880 * 8 bytes = 8,589,935,040 bytes - Multiple bitmaps: ~400MB - Total allocation size: > 8GB (exceeding INT_MAX = 2,147,483,647) Reproducer: 1. Set /proc/sys/fs/nr_open to 1073741816: # echo 1073741816 > /proc/sys/fs/nr_open 2. Run a program that uses a high file descriptor: #include <unistd.h> #include <sys/resource.h> int main() { struct rlimit rlim = {1073741824, 1073741824}; setrlimit(RLIMIT_NOFILE, &rlim); dup2(2, 1073741880); // Triggers the warning return 0; } 3. Observe WARNING in dmesg at mm/slub.c:5027 systemd commit a8b627a introduced automatic bumping of fs.nr_open to the maximum possible value. The rationale was that systems with memory control groups (memcg) no longer need separate file descriptor limits since memory is properly accounted. However, this change overlooked that: 1. The kernel's allocation functions still enforce INT_MAX as a maximum size regardless of memcg accounting 2. Programs and tests that legitimately test file descriptor limits can inadvertently trigger massive allocations 3. The resulting allocations (>8GB) are impractical and will always fail systemd's algorithm starts with INT_MAX and keeps halving the value until the kernel accepts it. On most systems, this results in nr_open being set to 1073741816 (0x3ffffff8), which is just under 1GB of file descriptors. While processes rarely use file descriptors near this limit in normal operation, certain selftests (like tools/testing/selftests/core/unshare_test.c) and programs that test file descriptor limits can trigger this issue. Fix this by adding a check in alloc_fdtable() to ensure the requested allocation size does not exceed INT_MAX. This causes the operation to fail with -EMFILE instead of triggering a kernel warning and avoids the impractical >8GB memory allocation request.

OrtaCVSS 5.5 · v3.1—İstismar yok Düzeltme var
Yayın
11 Eyl 2025
Güncelleme
8 Eyl 2026
EPSS
%0,2 · 7. yüzdelik
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
debiandebian linux

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.

  • debian debian linux11.0
  • linux linux kernel5.5 ve sonrası · 5.10.241 öncesi
  • linux linux kernel5.11 ve sonrası · 5.15.190 öncesi
  • linux linux kernel5.16 ve sonrası · 6.1.149 öncesi
  • linux linux kernel2.6.25 ve sonrası · 5.4.297 öncesi
  • linux linux kernel6.7 ve sonrası · 6.12.43 öncesi
  • linux linux kernel6.13 ve sonrası · 6.15.11 öncesi
  • linux linux kernel6.16 ve sonrası · 6.16.2 öncesi
  • linux linux kernel6.2 ve sonrası · 6.6.103 ö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.25etkilenir
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · b4159c5a90c03f8acd3de345a7f5fc63b0909818 öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · f95638a8f22eba307dceddf5aef9ae2326bbcf98 öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · 749528086620f8012b83ae032a80f6ffa80c45cd öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · 628fc28f42d979f36dbf75a6129ac7730e30c04e öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · 237e416eb62101f21b28c9e6e564d10efe1ecc6f öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · d4f9351243c17865a8cdbe6b3ccd09d0b13a7bcc öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · 9f61fa6a2a89a610120bc4e5d24379c667314b5c öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · dfd1f4ea98c3bd3a03d12169b5b2daa1f0a3e4ae öncesietkilenir · git
    • 9cfe015aa424b3c003baba3841a60dd9b5ad319b ve sonrası · 04a2c4b4511d186b0fce685da21085a5d4acd370 öncesietkilenir · git

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:12linux6.1.153-1 öncesi6.1.153-1
Debian:13linux6.12.43-1 öncesi6.12.43-1
Debian:14linux6.16.3-1 öncesi6.16.3-1
openSUSE:Leap 16.0dtb-aarch646.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-64kb6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-default6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-default-base6.12.0-160000.6.1.160000.2.4 öncesi6.12.0-160000.6.1.160000.2.4
openSUSE:Leap 16.0kernel-docs6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-kvmsmall6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-obs-build6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-obs-qa6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-rt6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-source6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-syms6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
openSUSE:Leap 16.0kernel-zfcpdump6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Enterprise Server 16.0kernel-docs6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Enterprise Server 16.0kernel-kvmsmall6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Enterprise Server 16.0kernel-obs-qa6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Enterprise Server 16.0kernel-syms6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Enterprise Server 16.0kernel-zfcpdump6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Micro 6.2kernel-64kb6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Micro 6.2kernel-default6.12.0-160000.7.1 öncesi6.12.0-160000.7.1
SUSE:Linux Micro 6.2kernel-default-base6.12.0-160000.6.1.160000.2.4 öncesi6.12.0-160000.6.1.160000.2.4
SUSE:Linux Micro 6.2kernel-rt6.12.0-160000.7.1 öncesi6.12.0-160000.7.1

+2

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 Linux04a2c4b4511d186b0fce685da21085a5d4acd370Üretici (CNA)
Linux Linux237e416eb62101f21b28c9e6e564d10efe1ecc6fÜretici (CNA)
Linux Linux628fc28f42d979f36dbf75a6129ac7730e30c04eÜretici (CNA)
Linux Linux749528086620f8012b83ae032a80f6ffa80c45cdÜretici (CNA)
Linux Linux9f61fa6a2a89a610120bc4e5d24379c667314b5cÜretici (CNA)
Linux Linuxb4159c5a90c03f8acd3de345a7f5fc63b0909818Üretici (CNA)
Linux Linuxd4f9351243c17865a8cdbe6b3ccd09d0b13a7bccÜretici (CNA)
Linux Linuxdfd1f4ea98c3bd3a03d12169b5b2daa1f0a3e4aeÜretici (CNA)
Linux Linuxf95638a8f22eba307dceddf5aef9ae2326bbcf98Üretici (CNA)
debian:linux6.1.153-1 · Debian:12Paket deposu (OSV)
opensuse:dtb-aarch646.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-64kb6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-default6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-default-base6.12.0-160000.6.1.160000.2.4 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-docs6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-kvmsmall6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-obs-build6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-obs-qa6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-rt6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-source6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-syms6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
opensuse:kernel-zfcpdump6.12.0-160000.7.1 · openSUSE:Leap 16.0Paket deposu (OSV)
suse:kernel-64kb6.12.0-160000.7.1 · SUSE:Linux Micro 6.2Paket deposu (OSV)
suse:kernel-default6.12.0-160000.7.1 · SUSE:Linux Micro 6.2Paket deposu (OSV)
suse:kernel-default-base6.12.0-160000.6.1.160000.2.4 · SUSE:Linux Micro 6.2Paket deposu (OSV)
suse:kernel-docs6.12.0-160000.7.1 · SUSE:Linux Enterprise Server 16.0Paket deposu (OSV)
suse:kernel-kvmsmall6.12.0-160000.7.1 · SUSE:Linux Enterprise Server 16.0Paket deposu (OSV)
suse:kernel-obs-build6.12.0-160000.7.1 · SUSE:Linux Micro Extras 6.2Paket deposu (OSV)
suse:kernel-obs-qa6.12.0-160000.7.1 · SUSE:Linux Enterprise Server 16.0Paket deposu (OSV)
suse:kernel-rt6.12.0-160000.7.1 · SUSE:Linux Micro 6.2Paket deposu (OSV)

+3

İ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

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