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

drm/i915/vma: Fix UAF on destroy against retire race

In the Linux kernel, the following vulnerability has been resolved: drm/i915/vma: Fix UAF on destroy against retire race Object debugging tools were sporadically reporting illegal attempts to free a still active i915 VMA object when parking a GT believed to be idle. [161.359441] ODEBUG: free active (active state 0) object: ffff88811643b958 object type: i915_active hint: __i915_vma_active+0x0/0x50 [i915] [161.360082] WARNING: CPU: 5 PID: 276 at lib/debugobjects.c:514 debug_print_object+0x80/0xb0 ... [161.360304] CPU: 5 PID: 276 Comm: kworker/5:2 Not tainted 6.5.0-rc1-CI_DRM_13375-g003f860e5577+ #1 [161.360314] Hardware name: Intel Corporation Rocket Lake Client Platform/RocketLake S UDIMM 6L RVP, BIOS RKLSFWI1.R00.3173.A03.2204210138 04/21/2022 [161.360322] Workqueue: i915-unordered __intel_wakeref_put_work [i915] [161.360592] RIP: 0010:debug_print_object+0x80/0xb0 ... [161.361347] debug_object_free+0xeb/0x110 [161.361362] i915_active_fini+0x14/0x130 [i915] [161.361866] release_references+0xfe/0x1f0 [i915] [161.362543] i915_vma_parked+0x1db/0x380 [i915] [161.363129] __gt_park+0x121/0x230 [i915] [161.363515] ____intel_wakeref_put_last+0x1f/0x70 [i915] That has been tracked down to be happening when another thread is deactivating the VMA inside __active_retire() helper, after the VMA's active counter has been already decremented to 0, but before deactivation of the VMA's object is reported to the object debugging tool. We could prevent from that race by serializing i915_active_fini() with __active_retire() via ref->tree_lock, but that wouldn't stop the VMA from being used, e.g. from __i915_vma_retire() called at the end of __active_retire(), after that VMA has been already freed by a concurrent i915_vma_destroy() on return from the i915_active_fini(). Then, we should rather fix the issue at the VMA level, not in i915_active. Since __i915_vma_parked() is called from __gt_park() on last put of the GT's wakeref, the issue could be addressed by holding the GT wakeref long enough for __active_retire() to complete before that wakeref is released and the GT parked. I believe the issue was introduced by commit d93939730347 ("drm/i915: Remove the vma refcount") which moved a call to i915_active_fini() from a dropped i915_vma_release(), called on last put of the removed VMA kref, to i915_vma_parked() processing path called on last put of a GT wakeref. However, its visibility to the object debugging tool was suppressed by a bug in i915_active that was fixed two weeks later with commit e92eb246feb9 ("drm/i915/active: Fix missing debug object activation"). A VMA associated with a request doesn't acquire a GT wakeref by itself. Instead, it depends on a wakeref held directly by the request's active intel_context for a GT associated with its VM, and indirectly on that intel_context's engine wakeref if the engine belongs to the same GT as the VMA's VM. Those wakerefs are released asynchronously to VMA deactivation. Fix the issue by getting a wakeref for the VMA's GT when activating it, and putting that wakeref only after the VMA is deactivated. However, exclude global GTT from that processing path, otherwise the GPU never goes idle. Since __i915_vma_retire() may be called from atomic contexts, use async variant of wakeref put. Also, to avoid circular locking dependency, take care of acquiring the wakeref before VM mutex when both are needed. v7: Add inline comments with justifications for: - using untracked variants of intel_gt_pm_get/put() (Nirmoy), - using async variant of _put(), - not getting the wakeref in case of a global GTT, - always getting the first wakeref outside vm->mutex. v6: Since __i915_vma_active/retire() callbacks are not serialized, storing a wakeref tracking handle inside struct i915_vma is not safe, and there is no other good place for that. Use untracked variants of intel_gt_pm_get/put_async(). v5: Replace "tile" with "GT" across commit description (Rodrigo), - ---truncated---

YüksekCVSS 7.0 · v3.1—İstismar yok Düzeltme var
Yayın
1 May 2024
Güncelleme
5 Ağu 2026
EPSS
%0,2 · 15. 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

28

İzleyin

Şimdilik düşük öncelik.

CVSS
28 / 40 · 7.0 / 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
tam

Vulnrichment: CISA'nın karar ağacı girdileri.

CNA ile NVD puanı

NVD
7,0
CNA · Linux
7,8
0,8 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 isteyin

Etkilenen sistemler

ÜreticiÜrün
linuxlinux 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 kernel5.19 ve sonrası · 6.1.88 öncesi
  • linux linux kernel6.2 ve sonrası · 6.6.29 öncesi
  • linux linux kernel6.7 ve sonrası · 6.8.3 öncesi
  • linux linux kernel6.9

Ü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

    • 5.19etkilenir
    • d93939730347360db0afe6a4367451b6f84ab7b1 ve sonrası · 704edc9252f4988ae1ad7dafa23d0db8d90d7190 öncesietkilenir · git
    • d93939730347360db0afe6a4367451b6f84ab7b1 ve sonrası · 5e3eb862df9f972ab677fb19e0d4b9b1be8db7b5 öncesietkilenir · git
    • d93939730347360db0afe6a4367451b6f84ab7b1 ve sonrası · 59b2626dd8c8a2e13f18054b3530e0c00073d79f öncesietkilenir · git
    • d93939730347360db0afe6a4367451b6f84ab7b1 ve sonrası · 0e45882ca829b26b915162e8e86dbb1095768e9e öncesietkilenir · git
    • 5.19 öncesietkilenmez · semver
    • 6.1.88 ve sonrası · 6.1.* dahil öncesietkilenmez · semver
    • 6.6.29 ve sonrası · 6.6.* dahil öncesietkilenmez · semver
    • 6.8.3 ve sonrası · 6.8.* dahil öncesietkilenmez · semver
    • 6.9 ve sonrasıetkilenmez · original_commit_for_fix

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.90-1 öncesi6.1.90-1
Debian:13linux6.8.9-1 öncesi6.8.9-1
Red Hat:rhel_eus:9.4::appstreambpftool-debuginfo0:7.3.0-427.74.1.el9_4 öncesi0:7.3.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debug-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debug-devel0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debug-devel-matched0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-devel0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-64k-devel-matched0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debug-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debug-devel0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debug-devel-matched0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-aarch640:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-ppc64le0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-s390x0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-debuginfo-common-x86_640:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-devel0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-devel-matched0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-doc0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-rt-debug-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-rt-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-tools-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4
Red Hat:rhel_eus:9.4::appstreamkernel-zfcpdump-debuginfo0:5.14.0-427.74.1.el9_4 öncesi0:5.14.0-427.74.1.el9_4

+56

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 Linux0e45882ca829b26b915162e8e86dbb1095768e9eÜretici (CNA)
Linux Linux59b2626dd8c8a2e13f18054b3530e0c00073d79fÜretici (CNA)
Linux Linux5e3eb862df9f972ab677fb19e0d4b9b1be8db7b5Üretici (CNA)
Linux Linux704edc9252f4988ae1ad7dafa23d0db8d90d7190Üretici (CNA)
azl3 hyperv-daemons 6.6.22.1-2 on Azure Linux 3.06.6.35.1-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
azl3 hyperv-daemons 6.6.35.1-1 on Azure Linux 3.06.6.35.1-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
debian:linux6.1.90-1 · Debian:12Paket deposu (OSV)
red hat:bpftool-debuginfo0:7.3.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-64k-debug-debuginfo0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-64k-debug-devel0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-64k-debug-devel-matched0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-64k-debuginfo0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-64k-devel0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-64k-devel-matched0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-debug-debuginfo0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-debug-devel0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-debug-devel-matched0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-debuginfo0:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket deposu (OSV)
red hat:kernel-debuginfo-common-aarch640:5.14.0-427.74.1.el9_4 · Red Hat:rhel_eus:9.4::appstreamPaket 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.

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.
  • Zamanlama ya da yapılandırma gibi özel koşullar gerekir.

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
Yüksek
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-416 · Use After Free

CVSS vektörü

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/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ı

c
free(dev->buf);/* ... başka bir iş parçacığı hâlâ çalışıyor ... */process(dev->buf);

Düzeltilmiş

c
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.

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