drm/amdgpu: fix use-after-free bug
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix use-after-free bug The bug can be triggered by sending a single amdgpu_gem_userptr_ioctl to the AMDGPU DRM driver on any ASICs with an invalid address and size. The bug was reported by Joonkyo Jung <joonkyoj@yonsei.ac.kr>. For example the following code: static void Syzkaller1(int fd) { struct drm_amdgpu_gem_userptr arg; int ret; arg.addr = 0xffffffffffff0000; arg.size = 0x80000000; /*2 Gb*/ arg.flags = 0x7; ret = drmIoctl(fd, 0xc1186451/*amdgpu_gem_userptr_ioctl*/, &arg); } Due to the address and size are not valid there is a failure in amdgpu_hmm_register->mmu_interval_notifier_insert->__mmu_interval_notifier_insert-> check_shl_overflow, but we even the amdgpu_hmm_register failure we still call amdgpu_hmm_unregister into amdgpu_gem_object_free which causes access to a bad address. The following stack is below when the issue is reproduced when Kazan is enabled: [ +0.000014] Hardware name: ASUS System Product Name/ROG STRIX B550-F GAMING (WI-FI), BIOS 1401 12/03/2020 [ +0.000009] RIP: 0010:mmu_interval_notifier_remove+0x327/0x340 [ +0.000017] Code: ff ff 49 89 44 24 08 48 b8 00 01 00 00 00 00 ad de 4c 89 f7 49 89 47 40 48 83 c0 22 49 89 47 48 e8 ce d1 2d 01 e9 32 ff ff ff <0f> 0b e9 16 ff ff ff 4c 89 ef e8 fa 14 b3 ff e9 36 ff ff ff e8 80 [ +0.000014] RSP: 0018:ffffc90002657988 EFLAGS: 00010246 [ +0.000013] RAX: 0000000000000000 RBX: 1ffff920004caf35 RCX: ffffffff8160565b [ +0.000011] RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffff8881a9f78260 [ +0.000010] RBP: ffffc90002657a70 R08: 0000000000000001 R09: fffff520004caf25 [ +0.000010] R10: 0000000000000003 R11: ffffffff8161d1d6 R12: ffff88810e988c00 [ +0.000010] R13: ffff888126fb5a00 R14: ffff88810e988c0c R15: ffff8881a9f78260 [ +0.000011] FS: 00007ff9ec848540(0000) GS:ffff8883cc880000(0000) knlGS:0000000000000000 [ +0.000012] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ +0.000010] CR2: 000055b3f7e14328 CR3: 00000001b5770000 CR4: 0000000000350ef0 [ +0.000010] Call Trace: [ +0.000006] <TASK> [ +0.000007] ? show_regs+0x6a/0x80 [ +0.000018] ? __warn+0xa5/0x1b0 [ +0.000019] ? mmu_interval_notifier_remove+0x327/0x340 [ +0.000018] ? report_bug+0x24a/0x290 [ +0.000022] ? handle_bug+0x46/0x90 [ +0.000015] ? exc_invalid_op+0x19/0x50 [ +0.000016] ? asm_exc_invalid_op+0x1b/0x20 [ +0.000017] ? kasan_save_stack+0x26/0x50 [ +0.000017] ? mmu_interval_notifier_remove+0x23b/0x340 [ +0.000019] ? mmu_interval_notifier_remove+0x327/0x340 [ +0.000019] ? mmu_interval_notifier_remove+0x23b/0x340 [ +0.000020] ? __pfx_mmu_interval_notifier_remove+0x10/0x10 [ +0.000017] ? kasan_save_alloc_info+0x1e/0x30 [ +0.000018] ? srso_return_thunk+0x5/0x5f [ +0.000014] ? __kasan_kmalloc+0xb1/0xc0 [ +0.000018] ? srso_return_thunk+0x5/0x5f [ +0.000013] ? __kasan_check_read+0x11/0x20 [ +0.000020] amdgpu_hmm_unregister+0x34/0x50 [amdgpu] [ +0.004695] amdgpu_gem_object_free+0x66/0xa0 [amdgpu] [ +0.004534] ? __pfx_amdgpu_gem_object_free+0x10/0x10 [amdgpu] [ +0.004291] ? do_syscall_64+0x5f/0xe0 [ +0.000023] ? srso_return_thunk+0x5/0x5f [ +0.000017] drm_gem_object_free+0x3b/0x50 [drm] [ +0.000489] amdgpu_gem_userptr_ioctl+0x306/0x500 [amdgpu] [ +0.004295] ? __pfx_amdgpu_gem_userptr_ioctl+0x10/0x10 [amdgpu] [ +0.004270] ? srso_return_thunk+0x5/0x5f [ +0.000014] ? __this_cpu_preempt_check+0x13/0x20 [ +0.000015] ? srso_return_thunk+0x5/0x5f [ +0.000013] ? sysvec_apic_timer_interrupt+0x57/0xc0 [ +0.000020] ? srso_return_thunk+0x5/0x5f [ +0.000014] ? asm_sysvec_apic_timer_interrupt+0x1b/0x20 [ +0.000022] ? drm_ioctl_kernel+0x17b/0x1f0 [drm] [ +0.000496] ? __pfx_amdgpu_gem_userptr_ioctl+0x10/0x10 [amdgpu] [ +0.004272] ? drm_ioctl_kernel+0x190/0x1f0 [drm] [ +0.000492] drm_ioctl_kernel+0x140/0x1f0 [drm] [ +0.000497] ? __pfx_amdgpu_gem_userptr_ioctl+0x10/0x10 [amdgpu] [ +0.004297] ? __pfx_drm_ioctl_kernel+0x10/0x10 [d ---truncated---
- Yayın
- 2 Nis 2024
- Güncelleme
- 5 Ağu 2026
- EPSS
- %0,2 · 13. yüzdelik
- CWE
- CWE-416
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
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
- 5,5
- CNA · Linux
- 7,8
- 2,3 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.
Etkilenen 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 kernel6.9 ö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.2etkilenir
- d38ceaf99ed015f2a0b9af3499791bd3a3daae21 ve sonrası · 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60 öncesietkilenir · git
- d38ceaf99ed015f2a0b9af3499791bd3a3daae21 ve sonrası · e87e08c94c9541b4e18c4c13f2f605935f512605 öncesietkilenir · git
- d38ceaf99ed015f2a0b9af3499791bd3a3daae21 ve sonrası · af054a5fb24a144f99895afce9519d709891894c öncesietkilenir · git
- d38ceaf99ed015f2a0b9af3499791bd3a3daae21 ve sonrası · 22f665ecfd1225afa1309ace623157d12bb9bb0c öncesietkilenir · git
- d38ceaf99ed015f2a0b9af3499791bd3a3daae21 ve sonrası · 22207fd5c80177b860279653d017474b2812af5e öncesietkilenir · git
- 4.2 öncesietkilenmez · semver
- 6.1.132 ve sonrası · 6.1.* dahil öncesietkilenmez · semver
- 6.6.24 ve sonrası · 6.6.* dahil öncesietkilenmez · semver
- 6.7.12 ve sonrası · 6.7.* 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.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| Debian:11 | linux-6.1 | 6.1.137-1~deb11u1 öncesi | 6.1.137-1~deb11u1 |
| Debian:12 | linux | 6.1.133-1 öncesi | 6.1.133-1 |
| Debian:13 | linux | 6.7.12-1 öncesi | 6.7.12-1 |
| Red Hat:rhel_aus:8.6::baseos | bpftool | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | bpftool-debuginfo | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-abi-stablelists | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-core | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-core | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-debuginfo | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-devel | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debug-modules-extra | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-debuginfo-common-x86_64 | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-devel | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-doc | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-modules-extra | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools-debuginfo | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | kernel-tools-libs | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
| Red Hat:rhel_aus:8.6::baseos | perf | 0:4.18.0-372.129.1.el8_6 öncesi | 0:4.18.0-372.129.1.el8_6 |
+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 | 22207fd5c80177b860279653d017474b2812af5e | Üretici (CNA) |
| Linux Linux | 22f665ecfd1225afa1309ace623157d12bb9bb0c | Üretici (CNA) |
| Linux Linux | 2e13f88e01ae7e28a7e831bf5c2409c4748e0a60 | Üretici (CNA) |
| Linux Linux | af054a5fb24a144f99895afce9519d709891894c | Üretici (CNA) |
| Linux Linux | e87e08c94c9541b4e18c4c13f2f605935f512605 | Üretici (CNA) |
| Debian:linux | 6.1.133-1 · Debian:12 | Paket deposu (OSV) |
| Debian:linux-6.1 | 6.1.137-1~deb11u1 · Debian:11 | Paket deposu (OSV) |
| Red Hat:bpftool | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:bpftool-debuginfo | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-abi-stablelists | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-core | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-core | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-debuginfo | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-devel | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-modules | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debug-modules-extra | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket deposu (OSV) |
| Red Hat:kernel-debuginfo | 0:4.18.0-477.64.1.el8_8 · Red Hat:rhel_eus:8.8::baseos | Paket 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.
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-416 · Use After FreeCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Kök neden
Bir bellek alanı serbest bırakıldıktan sonra ona işaret eden başka bir referans kullanılmaya devam ediyor. Aynı alan o sırada başka bir veri için ayrılmış olabilir.
Hatanın kod karşılığı
CWE-416 sınıfının tamamıBu zafiyet sınıfının temsili örneği. Üreticinin kaynak kodu değildir; hatalı kalıbı ve düzeltmesini gösterir.
Hatalı
free(dev->buf);/* ... başka bir iş parçacığı hâlâ çalışıyor ... */process(dev->buf);Düzeltilmiş
lock(&dev->lock);free(dev->buf);dev->buf = NULL;unlock(&dev->lock);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/22207fd5c80177b860279653d017474b2812af5e
- git.kernel.org/stable/c/22f665ecfd1225afa1309ace623157d12bb9bb0c
- git.kernel.org/stable/c/2e13f88e01ae7e28a7e831bf5c2409c4748e0a60
- git.kernel.org/stable/c/af054a5fb24a144f99895afce9519d709891894c
- git.kernel.org/stable/c/e87e08c94c9541b4e18c4c13f2f605935f512605
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.