security/keys: fix slab-out-of-bounds in key_task_permission
In the Linux kernel, the following vulnerability has been resolved: security/keys: fix slab-out-of-bounds in key_task_permission KASAN reports an out of bounds read: BUG: KASAN: slab-out-of-bounds in __kuid_val include/linux/uidgid.h:36 BUG: KASAN: slab-out-of-bounds in uid_eq include/linux/uidgid.h:63 [inline] BUG: KASAN: slab-out-of-bounds in key_task_permission+0x394/0x410 security/keys/permission.c:54 Read of size 4 at addr ffff88813c3ab618 by task stress-ng/4362 CPU: 2 PID: 4362 Comm: stress-ng Not tainted 5.10.0-14930-gafbffd6c3ede #15 Call Trace: __dump_stack lib/dump_stack.c:82 [inline] dump_stack+0x107/0x167 lib/dump_stack.c:123 print_address_description.constprop.0+0x19/0x170 mm/kasan/report.c:400 __kasan_report.cold+0x6c/0x84 mm/kasan/report.c:560 kasan_report+0x3a/0x50 mm/kasan/report.c:585 __kuid_val include/linux/uidgid.h:36 [inline] uid_eq include/linux/uidgid.h:63 [inline] key_task_permission+0x394/0x410 security/keys/permission.c:54 search_nested_keyrings+0x90e/0xe90 security/keys/keyring.c:793 This issue was also reported by syzbot. It can be reproduced by following these steps(more details [1]): 1. Obtain more than 32 inputs that have similar hashes, which ends with the pattern '0xxxxxxxe6'. 2. Reboot and add the keys obtained in step 1. The reproducer demonstrates how this issue happened: 1. In the search_nested_keyrings function, when it iterates through the slots in a node(below tag ascend_to_node), if the slot pointer is meta and node->back_pointer != NULL(it means a root), it will proceed to descend_to_node. However, there is an exception. If node is the root, and one of the slots points to a shortcut, it will be treated as a keyring. 2. Whether the ptr is keyring decided by keyring_ptr_is_keyring function. However, KEYRING_PTR_SUBTYPE is 0x2UL, the same as ASSOC_ARRAY_PTR_SUBTYPE_MASK. 3. When 32 keys with the similar hashes are added to the tree, the ROOT has keys with hashes that are not similar (e.g. slot 0) and it splits NODE A without using a shortcut. When NODE A is filled with keys that all hashes are xxe6, the keys are similar, NODE A will split with a shortcut. Finally, it forms the tree as shown below, where slot 6 points to a shortcut. NODE A +------>+---+ ROOT | | 0 | xxe6 +---+ | +---+ xxxx | 0 | shortcut : : xxe6 +---+ | +---+ xxe6 : : | | | xxe6 +---+ | +---+ | 6 |---+ : : xxe6 +---+ +---+ xxe6 : : | f | xxe6 +---+ +---+ xxe6 | f | +---+ 4. As mentioned above, If a slot(slot 6) of the root points to a shortcut, it may be mistakenly transferred to a key*, leading to a read out-of-bounds read. To fix this issue, one should jump to descend_to_node if the ptr is a shortcut, regardless of whether the node is root or not. [1] https://lore.kernel.org/linux-kernel/1cfa878e-8c7b-4570-8606-21daf5e13ce7@huaweicloud.com/ [jarkko: tweaked the commit message a bit to have an appropriate closes tag.]
- BDU:2025-00152
- ALSA-2025:17377
- ALSA-2025:9580
- ALSA-2025:9581
- RHSA-2025:17377
- RHSA-2025:9580
- RHSA-2025:9581
- RLSA-2025:9580
- RLSA-2025:9581
- SUSE-SU-2024:4346-1
- SUSE-SU-2024:4388-1
- SUSE-SU-2025:02069-1
- SUSE-SU-2025:02070-1
- SUSE-SU-2025:02071-1
- SUSE-SU-2025:02075-1
- SUSE-SU-2025:02076-1
- SUSE-SU-2025:02077-1
- SUSE-SU-2025:02095-1
- SUSE-SU-2025:02096-1
- SUSE-SU-2025:02101-1
- Yayın
- 18 Kas 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,3 · 19. yüzdelik
- CWE
- CWE-125
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
28
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 28 / 40 · 7.1 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,3
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
CNA ile NVD puanı
- NVD
- 7,1
- CNA · Linux
- 7,8
- 0,7 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.
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 kernel3.13 ve sonrası · 4.19.324 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.286 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.230 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.172 öncesi
- linux linux kernel5.16 ve sonrası · 6.1.117 öncesi
- linux linux kernel6.2 ve sonrası · 6.6.61 öncesi
- linux linux kernel6.7 ve sonrası · 6.11.8 öncesi
- linux linux kernel6.12
Ü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
- 3.13etkilenir
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · c3ce634ad953ce48c75c39bdfd8b711dd95f346f öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · 4efb69a0e294ef201bcdf7ce3d6202cd0a545a5d öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · 1e4332581cd4eed75aea77af6f66cdcdda8b49b9 öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · 199c20fb7499c79557a075dc24e9a7dae7d9f1ce öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · bbad2d5b6c99db468d8f88b6ba6a56ed409b4881 öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · 3e79ad156bedf2da0ab909a118d2cec6c9c22b79 öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · e0a317ad68e4ea48a0158187238c5407e4fdec8b öncesietkilenir · git
- b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 ve sonrası · 4a74da044ec9ec8679e6beccc4306b936b62873f öncesietkilenir · git
- 3.13 ö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 |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.58.1.el8_10 öncesi | 4.18.0-553.58.1.el8_10 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.58.1.rt7.399.el8_10 öncesi | 4.18.0-553.58.1.rt7.399.el8_10 |
+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 | 199c20fb7499c79557a075dc24e9a7dae7d9f1ce | Üretici (CNA) |
| Linux Linux | 1e4332581cd4eed75aea77af6f66cdcdda8b49b9 | Üretici (CNA) |
| Linux Linux | 3e79ad156bedf2da0ab909a118d2cec6c9c22b79 | Üretici (CNA) |
| Linux Linux | 4a74da044ec9ec8679e6beccc4306b936b62873f | Üretici (CNA) |
| Linux Linux | 4efb69a0e294ef201bcdf7ce3d6202cd0a545a5d | Üretici (CNA) |
| Linux Linux | bbad2d5b6c99db468d8f88b6ba6a56ed409b4881 | Üretici (CNA) |
| Linux Linux | c3ce634ad953ce48c75c39bdfd8b711dd95f346f | Üretici (CNA) |
| Linux Linux | e0a317ad68e4ea48a0158187238c5407e4fdec8b | Üretici (CNA) |
| CBL Mariner 2.0 ARM | 5.15.173.1-1 · kernel | Microsoft (MSRC) |
| CBL Mariner 2.0 x64 | 5.15.173.1-1 · kernel | Microsoft (MSRC) |
| almalinux:kernel | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-core | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:kernel-64k-devel-matched | 5.14.0-570.51.1.el9_6 · AlmaLinux:9 | Paket deposu (OSV) |
| debian:linux | 6.1.119-1 · Debian:12 | Paket deposu (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-debuginfo | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-64k-devel-matched | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:5.14.0-570.51.1.el9_6 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
+19
İ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
- yüksek · veriler okunabilir
- 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
- Yüksek
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-125 · Out-of-bounds ReadCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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ı.
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/199c20fb7499c79557a075dc24e9a7dae7d9f1ce
- git.kernel.org/stable/c/1e4332581cd4eed75aea77af6f66cdcdda8b49b9
- git.kernel.org/stable/c/3e79ad156bedf2da0ab909a118d2cec6c9c22b79
- git.kernel.org/stable/c/4a74da044ec9ec8679e6beccc4306b936b62873f
- git.kernel.org/stable/c/4efb69a0e294ef201bcdf7ce3d6202cd0a545a5d
- git.kernel.org/stable/c/bbad2d5b6c99db468d8f88b6ba6a56ed409b4881
- git.kernel.org/stable/c/c3ce634ad953ce48c75c39bdfd8b711dd95f346f
- git.kernel.org/stable/c/e0a317ad68e4ea48a0158187238c5407e4fdec8b
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- lists.debian.org/debian-lts-announce/2025/03/msg00002.html
- cert-portal.siemens.com/productcert/html/ssa-265688.html
- cert-portal.siemens.com/productcert/html/ssa-355557.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.