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.
- Yayın
- 11 Eyl 2025
- Güncelleme
- 8 Eyl 2026
- EPSS
- %0,2 · 7. yüzdelik
- CWE
- CWE-401
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,2
Etkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
| debian | debian linux | cpe:2.3:o:debian:debian_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.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| Debian:12 | linux | 6.1.153-1 öncesi | 6.1.153-1 |
| Debian:13 | linux | 6.12.43-1 öncesi | 6.12.43-1 |
| Debian:14 | linux | 6.16.3-1 öncesi | 6.16.3-1 |
| openSUSE:Leap 16.0 | dtb-aarch64 | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-64kb | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-default | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-default-base | 6.12.0-160000.6.1.160000.2.4 öncesi | 6.12.0-160000.6.1.160000.2.4 |
| openSUSE:Leap 16.0 | kernel-docs | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-rt | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-source | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-syms | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-docs | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-kvmsmall | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-obs-qa | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-syms | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-zfcpdump | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Micro 6.2 | kernel-64kb | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Micro 6.2 | kernel-default | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
| SUSE:Linux Micro 6.2 | kernel-default-base | 6.12.0-160000.6.1.160000.2.4 öncesi | 6.12.0-160000.6.1.160000.2.4 |
| SUSE:Linux Micro 6.2 | kernel-rt | 6.12.0-160000.7.1 öncesi | 6.12.0-160000.7.1 |
+2
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 | 04a2c4b4511d186b0fce685da21085a5d4acd370 | Üretici (CNA) |
| Linux Linux | 237e416eb62101f21b28c9e6e564d10efe1ecc6f | Üretici (CNA) |
| Linux Linux | 628fc28f42d979f36dbf75a6129ac7730e30c04e | Üretici (CNA) |
| Linux Linux | 749528086620f8012b83ae032a80f6ffa80c45cd | Üretici (CNA) |
| Linux Linux | 9f61fa6a2a89a610120bc4e5d24379c667314b5c | Üretici (CNA) |
| Linux Linux | b4159c5a90c03f8acd3de345a7f5fc63b0909818 | Üretici (CNA) |
| Linux Linux | d4f9351243c17865a8cdbe6b3ccd09d0b13a7bcc | Üretici (CNA) |
| Linux Linux | dfd1f4ea98c3bd3a03d12169b5b2daa1f0a3e4ae | Üretici (CNA) |
| Linux Linux | f95638a8f22eba307dceddf5aef9ae2326bbcf98 | Üretici (CNA) |
| debian:linux | 6.1.153-1 · Debian:12 | Paket deposu (OSV) |
| opensuse:dtb-aarch64 | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-64kb | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-default | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-default-base | 6.12.0-160000.6.1.160000.2.4 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-docs | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-kvmsmall | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-obs-build | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-obs-qa | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-rt | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-source | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-syms | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| opensuse:kernel-zfcpdump | 6.12.0-160000.7.1 · openSUSE:Leap 16.0 | Paket deposu (OSV) |
| suse:kernel-64kb | 6.12.0-160000.7.1 · SUSE:Linux Micro 6.2 | Paket deposu (OSV) |
| suse:kernel-default | 6.12.0-160000.7.1 · SUSE:Linux Micro 6.2 | Paket deposu (OSV) |
| suse:kernel-default-base | 6.12.0-160000.6.1.160000.2.4 · SUSE:Linux Micro 6.2 | Paket deposu (OSV) |
| suse:kernel-docs | 6.12.0-160000.7.1 · SUSE:Linux Enterprise Server 16.0 | Paket deposu (OSV) |
| suse:kernel-kvmsmall | 6.12.0-160000.7.1 · SUSE:Linux Enterprise Server 16.0 | Paket deposu (OSV) |
| suse:kernel-obs-build | 6.12.0-160000.7.1 · SUSE:Linux Micro Extras 6.2 | Paket deposu (OSV) |
| suse:kernel-obs-qa | 6.12.0-160000.7.1 · SUSE:Linux Enterprise Server 16.0 | Paket deposu (OSV) |
| suse:kernel-rt | 6.12.0-160000.7.1 · SUSE:Linux Micro 6.2 | Paket 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.
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)
CWE-401 · Missing Release of Memory after Effective LifetimeCVSS 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/04a2c4b4511d186b0fce685da21085a5d4acd370
- git.kernel.org/stable/c/237e416eb62101f21b28c9e6e564d10efe1ecc6f
- git.kernel.org/stable/c/628fc28f42d979f36dbf75a6129ac7730e30c04e
- git.kernel.org/stable/c/749528086620f8012b83ae032a80f6ffa80c45cd
- git.kernel.org/stable/c/9f61fa6a2a89a610120bc4e5d24379c667314b5c
- git.kernel.org/stable/c/b4159c5a90c03f8acd3de345a7f5fc63b0909818
- git.kernel.org/stable/c/d4f9351243c17865a8cdbe6b3ccd09d0b13a7bcc
- git.kernel.org/stable/c/dfd1f4ea98c3bd3a03d12169b5b2daa1f0a3e4ae
- git.kernel.org/stable/c/f95638a8f22eba307dceddf5aef9ae2326bbcf98
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- cert-portal.siemens.com/productcert/html/ssa-019113.html
- cert-portal.siemens.com/productcert/html/ssa-032379.html
- cert-portal.siemens.com/productcert/html/ssa-082556.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.