Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE""
In the Linux kernel, the following vulnerability has been resolved: swiotlb: fix info leak with DMA_FROM_DEVICE The problem I'm addressing was discovered by the LTP test covering cve-2018-1000204. A short description of what happens follows: 1) The test case issues a command code 00 (TEST UNIT READY) via the SG_IO interface with: dxfer_len == 524288, dxdfer_dir == SG_DXFER_FROM_DEV and a corresponding dxferp. The peculiar thing about this is that TUR is not reading from the device. 2) In sg_start_req() the invocation of blk_rq_map_user() effectively bounces the user-space buffer. As if the device was to transfer into it. Since commit a45b599ad808 ("scsi: sg: allocate with __GFP_ZERO in sg_build_indirect()") we make sure this first bounce buffer is allocated with GFP_ZERO. 3) For the rest of the story we keep ignoring that we have a TUR, so the device won't touch the buffer we prepare as if the we had a DMA_FROM_DEVICE type of situation. My setup uses a virtio-scsi device and the buffer allocated by SG is mapped by the function virtqueue_add_split() which uses DMA_FROM_DEVICE for the "in" sgs (here scatter-gather and not scsi generics). This mapping involves bouncing via the swiotlb (we need swiotlb to do virtio in protected guest like s390 Secure Execution, or AMD SEV). 4) When the SCSI TUR is done, we first copy back the content of the second (that is swiotlb) bounce buffer (which most likely contains some previous IO data), to the first bounce buffer, which contains all zeros. Then we copy back the content of the first bounce buffer to the user-space buffer. 5) The test case detects that the buffer, which it zero-initialized, ain't all zeros and fails. One can argue that this is an swiotlb problem, because without swiotlb we leak all zeros, and the swiotlb should be transparent in a sense that it does not affect the outcome (if all other participants are well behaved). Copying the content of the original buffer into the swiotlb buffer is the only way I can think of to make swiotlb transparent in such scenarios. So let's do just that if in doubt, but allow the driver to tell us that the whole mapped buffer is going to be overwritten, in which case we can preserve the old behavior and avoid the performance impact of the extra bounce.
- Yayın
- 16 Tem 2024
- Güncelleme
- 17 Haz 2026
- EPSS
- %0,3 · 17. yüzdelik
- CWE
- —
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,3
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
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 kernel4.9.320 öncesi
- linux linux kernel4.10 ve sonrası · 4.14.281 öncesi
- linux linux kernel4.15 ve sonrası · 4.19.245 öncesi
- linux linux kernel4.20 ve sonrası · 5.4.189 öncesi
- linux linux kernel5.5 ve sonrası · 5.10.110 öncesi
- linux linux kernel5.11 ve sonrası · 5.15.29 öncesi
- linux linux kernel5.16 ve sonrası · 5.16.15 ö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.12etkilenir
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · fd97de9c7b973f46a6103f4170c5efc7b8ef8797 öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · aaf166f37eb6bb55d81c3e40a2a460c8875c8813 öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · 06cb238b0f7ac1669cb06390704c61794724c191 öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · b2f140a9f980806f572d672e1780acea66b9a25c öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · f3f2247ac31cb71d1f05f56536df5946c6652f4a öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · 7007c894631cf43041dcfa0da7142bbaa7eb673c öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · dcead36b19d999d687cd9c99b7f37520d9102b57 öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · f2141881b530738777c28bb51c62175895c8178b öncesietkilenir · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ve sonrası · 901c7280ca0d5e2b4a8929fbe0bfb007ac2a6544 ö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 | 5.16.18-1 öncesi | 5.16.18-1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-default-base | 5.3.18-150200.24.203.1.150200.9.105.1 öncesi | 5.3.18-150200.24.203.1.150200.9.105.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-docs | 5.3.18-150200.24.203.1 öncesi | 5.3.18-150200.24.203.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-obs-build | 5.3.18-150200.24.203.1 öncesi | 5.3.18-150200.24.203.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-preempt | 5.3.18-150200.24.203.1 öncesi | 5.3.18-150200.24.203.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-source | 5.3.18-150200.24.203.1 öncesi | 5.3.18-150200.24.203.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | kernel-syms | 5.3.18-150200.24.203.1 öncesi | 5.3.18-150200.24.203.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-64kb | 5.14.21-150400.24.194.1 öncesi | 5.14.21-150400.24.194.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-docs | 5.14.21-150400.24.194.1 öncesi | 5.14.21-150400.24.194.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-obs-build | 5.14.21-150400.24.194.1 öncesi | 5.14.21-150400.24.194.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-source | 5.14.21-150400.24.194.1 öncesi | 5.14.21-150400.24.194.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | kernel-syms | 5.14.21-150400.24.194.1 öncesi | 5.14.21-150400.24.194.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-64kb | 5.14.21-150500.55.133.1 öncesi | 5.14.21-150500.55.133.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-docs | 5.14.21-150500.55.133.1 öncesi | 5.14.21-150500.55.133.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-obs-build | 5.14.21-150500.55.133.1 öncesi | 5.14.21-150500.55.133.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | kernel-syms | 5.14.21-150500.55.133.1 öncesi | 5.14.21-150500.55.133.1 |
| SUSE:Linux Enterprise Live Patching 12 SP5 | kernel-default | 4.12.14-122.237.1 öncesi | 4.12.14-122.237.1 |
| SUSE:Linux Enterprise Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_63 | 1-8.3.1 öncesi | 1-8.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP2 | kernel-default | 5.3.18-150200.24.203.1 öncesi | 5.3.18-150200.24.203.1 |
| SUSE:Linux Enterprise Live Patching 15 SP2 | kernel-livepatch-SLE15-SP2_Update_52 | 1-150200.5.3.1 öncesi | 1-150200.5.3.1 |
| SUSE:Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_48 | 1-150400.9.7.1 öncesi | 1-150400.9.7.1 |
| SUSE:Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_34 | 1-150500.11.3.1 öncesi | 1-150500.11.3.1 |
| SUSE:Linux Enterprise Micro 5.2 | kernel-default | 5.3.18-150300.59.232.1 öncesi | 5.3.18-150300.59.232.1 |
| SUSE:Linux Enterprise Micro 5.2 | kernel-default-base | 5.3.18-150300.59.232.1.150300.18.138.1 öncesi | 5.3.18-150300.59.232.1.150300.18.138.1 |
+15
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 | 06cb238b0f7ac1669cb06390704c61794724c191 | Üretici (CNA) |
| Linux Linux | 7007c894631cf43041dcfa0da7142bbaa7eb673c | Üretici (CNA) |
| Linux Linux | 901c7280ca0d5e2b4a8929fbe0bfb007ac2a6544 | Üretici (CNA) |
| Linux Linux | aaf166f37eb6bb55d81c3e40a2a460c8875c8813 | Üretici (CNA) |
| Linux Linux | b2f140a9f980806f572d672e1780acea66b9a25c | Üretici (CNA) |
| Linux Linux | dcead36b19d999d687cd9c99b7f37520d9102b57 | Üretici (CNA) |
| Linux Linux | f2141881b530738777c28bb51c62175895c8178b | Üretici (CNA) |
| Linux Linux | f3f2247ac31cb71d1f05f56536df5946c6652f4a | Üretici (CNA) |
| Linux Linux | fd97de9c7b973f46a6103f4170c5efc7b8ef8797 | Üretici (CNA) |
| debian:linux | 5.16.18-1 · Debian:12 | Paket deposu (OSV) |
| suse:kernel-default | 5.3.18-150200.24.203.1 · SUSE:Linux Enterprise Live Patching 15 SP2 | Paket deposu (OSV) |
| suse:kernel-default-base | 5.3.18-150200.24.203.1.150200.9.105.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-docs | 5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP2_Update_52 | 1-150200.5.3.1 · SUSE:Linux Enterprise Live Patching 15 SP2 | Paket deposu (OSV) |
| suse:kernel-livepatch-SLE15-SP5_Update_34 | 1-150500.11.3.1 · SUSE:Linux Enterprise Live Patching 15 SP5 | Paket deposu (OSV) |
| suse:kernel-obs-build | 5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-preempt | 5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-rt | 5.14.21-150500.13.118.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-source | 5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kernel-source-rt | 5.14.21-150500.13.118.1 · SUSE:Linux Enterprise Micro 5.5 | Paket deposu (OSV) |
| suse:kernel-syms | 5.3.18-150200.24.203.1 · SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | Paket deposu (OSV) |
| suse:kgraft-patch-SLE12-SP5_Update_63 | 1-8.3.1 · SUSE:Linux Enterprise Live Patching 12 SP5 | 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
- yüksek · veriler okunabilir
- Bütünlük
- yok
- Erişilebilirlik
- yok
- 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
- Yok
Zayıflık sınıfı (CWE)
—
CVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
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/06cb238b0f7ac1669cb06390704c61794724c191
- git.kernel.org/stable/c/7007c894631cf43041dcfa0da7142bbaa7eb673c
- git.kernel.org/stable/c/901c7280ca0d5e2b4a8929fbe0bfb007ac2a6544
- git.kernel.org/stable/c/aaf166f37eb6bb55d81c3e40a2a460c8875c8813
- git.kernel.org/stable/c/b2f140a9f980806f572d672e1780acea66b9a25c
- git.kernel.org/stable/c/dcead36b19d999d687cd9c99b7f37520d9102b57
- git.kernel.org/stable/c/f2141881b530738777c28bb51c62175895c8178b
- git.kernel.org/stable/c/f3f2247ac31cb71d1f05f56536df5946c6652f4a
- git.kernel.org/stable/c/fd97de9c7b973f46a6103f4170c5efc7b8ef8797
- git.kernel.org/stable/c/270475d6d2410ec66e971bf181afe1958dad565e
- git.kernel.org/stable/c/6bfc5377a210dbda2a237f16d94d1bd4f1335026
- git.kernel.org/stable/c/7403f4118ab94be837ab9d770507537a8057bc63
- git.kernel.org/stable/c/8d9ac1b6665c73f23e963775f85d99679fd8e192
- git.kernel.org/stable/c/971e5dadffd02beba1063e7dd9c3a82de17cf534
- git.kernel.org/stable/c/c132f2ba716b5ee6b35f82226a6e5417d013d753
- git.kernel.org/stable/c/d4d975e7921079f877f828099bb8260af335508f
- git.kernel.org/stable/c/ddbd89deb7d32b1fbb879f48d68fda1a8ac58e8e
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.