proc/vmcore: fix clearing user buffer by properly using clear_user()
In the Linux kernel, the following vulnerability has been resolved: proc/vmcore: fix clearing user buffer by properly using clear_user() To clear a user buffer we cannot simply use memset, we have to use clear_user(). With a virtio-mem device that registers a vmcore_cb and has some logically unplugged memory inside an added Linux memory block, I can easily trigger a BUG by copying the vmcore via "cp": systemd[1]: Starting Kdump Vmcore Save Service... kdump[420]: Kdump is using the default log level(3). kdump[453]: saving to /sysroot/var/crash/127.0.0.1-2021-11-11-14:59:22/ kdump[458]: saving vmcore-dmesg.txt to /sysroot/var/crash/127.0.0.1-2021-11-11-14:59:22/ kdump[465]: saving vmcore-dmesg.txt complete kdump[467]: saving vmcore BUG: unable to handle page fault for address: 00007f2374e01000 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD 7a523067 P4D 7a523067 PUD 7a528067 PMD 7a525067 PTE 800000007048f867 Oops: 0003 [#1] PREEMPT SMP NOPTI CPU: 0 PID: 468 Comm: cp Not tainted 5.15.0+ #6 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-27-g64f37cc530f1-prebuilt.qemu.org 04/01/2014 RIP: 0010:read_from_oldmem.part.0.cold+0x1d/0x86 Code: ff ff ff e8 05 ff fe ff e9 b9 e9 7f ff 48 89 de 48 c7 c7 38 3b 60 82 e8 f1 fe fe ff 83 fd 08 72 3c 49 8d 7d 08 4c 89 e9 89 e8 <49> c7 45 00 00 00 00 00 49 c7 44 05 f8 00 00 00 00 48 83 e7 f81 RSP: 0018:ffffc9000073be08 EFLAGS: 00010212 RAX: 0000000000001000 RBX: 00000000002fd000 RCX: 00007f2374e01000 RDX: 0000000000000001 RSI: 00000000ffffdfff RDI: 00007f2374e01008 RBP: 0000000000001000 R08: 0000000000000000 R09: ffffc9000073bc50 R10: ffffc9000073bc48 R11: ffffffff829461a8 R12: 000000000000f000 R13: 00007f2374e01000 R14: 0000000000000000 R15: ffff88807bd421e8 FS: 00007f2374e12140(0000) GS:ffff88807f000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2374e01000 CR3: 000000007a4aa000 CR4: 0000000000350eb0 Call Trace: read_vmcore+0x236/0x2c0 proc_reg_read+0x55/0xa0 vfs_read+0x95/0x190 ksys_read+0x4f/0xc0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae Some x86-64 CPUs have a CPU feature called "Supervisor Mode Access Prevention (SMAP)", which is used to detect wrong access from the kernel to user buffers like this: SMAP triggers a permissions violation on wrong access. In the x86-64 variant of clear_user(), SMAP is properly handled via clac()+stac(). To fix, properly use clear_user() when we're dealing with a user buffer.
- Yayın
- 24 May 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,2 · 13. yüzdelik
- CWE
- CWE-787
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
31
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %0,2
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
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.0 ve sonrası · 4.4.294 öncesi
- linux linux kernel4.5 ve sonrası · 4.9.292 öncesi
- linux linux kernel4.10 ve sonrası · 4.14.257 öncesi
- linux linux kernel4.15 ve sonrası · 4.19.219 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.163 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.83 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.6 öncesi
- linux linux kernel5.16
Ü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.0etkilenir
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · a9e164bd160be8cbee1df70acb379129e3cd2e7c öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · 33a7d698f30fa0b99d50569e9909d3baa65d8f6a öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · 99d348b82bcb36171f24411d3f1a15706a2a937a öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · 9ef384ed300d1bcfb23d0ab0b487d544444d4b52 öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · fd7974c547abfb03072a4ee706d3a6f182266f89 öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · a8a917058faf4abaec9fb614bb6d5f8fe3529ec6 öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · 7b3a34f08d11e7f05cd00b8e09adaa15192f0ad1 öncesietkilenir · git
- 997c136f518c5debd63847e78e2a8694f56dcf90 ve sonrası · c1e63117711977cc4295b2ce73de29dd17066c82 öncesietkilenir · git
- 3.0 ö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.15.15-1 öncesi | 5.15.15-1 |
| openSUSE:Leap 15.5 | dtb-aarch64 | 5.14.21-150500.55.73.1 öncesi | 5.14.21-150500.55.73.1 |
| openSUSE:Leap 15.5 | kernel-debug | 5.14.21-150500.55.73.1 öncesi | 5.14.21-150500.55.73.1 |
| openSUSE:Leap 15.5 | kernel-kvmsmall | 5.14.21-150500.55.73.1 öncesi | 5.14.21-150500.55.73.1 |
| openSUSE:Leap 15.5 | kernel-obs-qa | 5.14.21-150500.55.73.1 öncesi | 5.14.21-150500.55.73.1 |
| Red Hat:rhel_aus:8.6::baseos | bpftool | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | bpftool-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-abi-stablelists | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-core | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-core | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-devel | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules-extra | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo-common-x86_64 | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-devel | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-doc | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules-extra | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools-debuginfo | 0:4.18.0-372.118.1.el8_6 öncesi | 0:4.18.0-372.118.1.el8_6 |
+82
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 | 33a7d698f30fa0b99d50569e9909d3baa65d8f6a | Üretici (CNA) |
| Linux Linux | 7b3a34f08d11e7f05cd00b8e09adaa15192f0ad1 | Üretici (CNA) |
| Linux Linux | 99d348b82bcb36171f24411d3f1a15706a2a937a | Üretici (CNA) |
| Linux Linux | 9ef384ed300d1bcfb23d0ab0b487d544444d4b52 | Üretici (CNA) |
| Linux Linux | a8a917058faf4abaec9fb614bb6d5f8fe3529ec6 | Üretici (CNA) |
| Linux Linux | a9e164bd160be8cbee1df70acb379129e3cd2e7c | Üretici (CNA) |
| Linux Linux | c1e63117711977cc4295b2ce73de29dd17066c82 | Üretici (CNA) |
| Linux Linux | fd7974c547abfb03072a4ee706d3a6f182266f89 | Üretici (CNA) |
| debian:linux | 5.15.15-1 · Debian:12 | Paket deposu (OSV) |
| opensuse:kernel-azure | 5.14.21-150500.33.60.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| opensuse:kernel-rt | 5.14.21-150500.13.61.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| opensuse:kernel-source-azure | 5.14.21-150500.33.60.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| opensuse:kernel-syms-azure | 5.14.21-150500.33.60.1 · openSUSE:Leap 15.5 | Paket deposu (OSV) |
| red hat:bpftool | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-core | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debug | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-devel | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-modules | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debug-modules-extra | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| red hat:kernel-debuginfo | 0:4.18.0-372.118.1.el8_6 · Red Hat:rhel_aus:8.6::baseos | Paket deposu (OSV) |
| suse:kernel-azure | 5.14.21-150500.33.60.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP5 | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP5-RT_Update_17 | 1-150500.11.3.1 · SUSE:Linux Enterprise Live Patching 15 SP5 | Paket deposu (OSV) |
| suse:kernel-rt | 5.14.21-150500.13.61.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-rt_debug | 5.14.21-150500.13.61.1 · SUSE:Real Time Module 15 SP5 | Paket deposu (OSV) |
| suse:kernel-source-azure | 5.14.21-150500.33.60.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP5 | 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
- yüksek · veriler okunabilir
- Bütünlük
- yüksek · veri ya da yapılandırma değiştirilebilir
- 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
- Yüksek
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-787 · Out-of-bounds WriteCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.
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/33a7d698f30fa0b99d50569e9909d3baa65d8f6a
- git.kernel.org/stable/c/7b3a34f08d11e7f05cd00b8e09adaa15192f0ad1
- git.kernel.org/stable/c/99d348b82bcb36171f24411d3f1a15706a2a937a
- git.kernel.org/stable/c/9ef384ed300d1bcfb23d0ab0b487d544444d4b52
- git.kernel.org/stable/c/a8a917058faf4abaec9fb614bb6d5f8fe3529ec6
- git.kernel.org/stable/c/a9e164bd160be8cbee1df70acb379129e3cd2e7c
- git.kernel.org/stable/c/c1e63117711977cc4295b2ce73de29dd17066c82
- git.kernel.org/stable/c/fd7974c547abfb03072a4ee706d3a6f182266f89
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.