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

mm/sparsemem: fix race in accessing memory_section->usage

In the Linux kernel, the following vulnerability has been resolved: mm/sparsemem: fix race in accessing memory_section->usage The below race is observed on a PFN which falls into the device memory region with the system memory configuration where PFN's are such that [ZONE_NORMAL ZONE_DEVICE ZONE_NORMAL]. Since normal zone start and end pfn contains the device memory PFN's as well, the compaction triggered will try on the device memory PFN's too though they end up in NOP(because pfn_to_online_page() returns NULL for ZONE_DEVICE memory sections). When from other core, the section mappings are being removed for the ZONE_DEVICE region, that the PFN in question belongs to, on which compaction is currently being operated is resulting into the kernel crash with CONFIG_SPASEMEM_VMEMAP enabled. The crash logs can be seen at [1]. compact_zone() memunmap_pages ------------- --------------- __pageblock_pfn_to_page ...... (a)pfn_valid(): valid_section()//return true (b)__remove_pages()-> sparse_remove_section()-> section_deactivate(): [Free the array ms->usage and set ms->usage = NULL] pfn_section_valid() [Access ms->usage which is NULL] NOTE: From the above it can be said that the race is reduced to between the pfn_valid()/pfn_section_valid() and the section deactivate with SPASEMEM_VMEMAP enabled. The commit b943f045a9af("mm/sparse: fix kernel crash with pfn_section_valid check") tried to address the same problem by clearing the SECTION_HAS_MEM_MAP with the expectation of valid_section() returns false thus ms->usage is not accessed. Fix this issue by the below steps: a) Clear SECTION_HAS_MEM_MAP before freeing the ->usage. b) RCU protected read side critical section will either return NULL when SECTION_HAS_MEM_MAP is cleared or can successfully access ->usage. c) Free the ->usage with kfree_rcu() and set ms->usage = NULL. No attempt will be made to access ->usage after this as the SECTION_HAS_MEM_MAP is cleared thus valid_section() return false. Thanks to David/Pavan for their inputs on this patch. [1] https://lore.kernel.org/linux-mm/994410bb-89aa-d987-1f50-f514903c55aa@quicinc.com/ On Snapdragon SoC, with the mentioned memory configuration of PFN's as [ZONE_NORMAL ZONE_DEVICE ZONE_NORMAL], we are able to see bunch of issues daily while testing on a device farm. For this particular issue below is the log. Though the below log is not directly pointing to the pfn_section_valid(){ ms->usage;}, when we loaded this dump on T32 lauterbach tool, it is pointing. [ 540.578056] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 540.578068] Mem abort info: [ 540.578070] ESR = 0x0000000096000005 [ 540.578073] EC = 0x25: DABT (current EL), IL = 32 bits [ 540.578077] SET = 0, FnV = 0 [ 540.578080] EA = 0, S1PTW = 0 [ 540.578082] FSC = 0x05: level 1 translation fault [ 540.578085] Data abort info: [ 540.578086] ISV = 0, ISS = 0x00000005 [ 540.578088] CM = 0, WnR = 0 [ 540.579431] pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBSBTYPE=--) [ 540.579436] pc : __pageblock_pfn_to_page+0x6c/0x14c [ 540.579454] lr : compact_zone+0x994/0x1058 [ 540.579460] sp : ffffffc03579b510 [ 540.579463] x29: ffffffc03579b510 x28: 0000000000235800 x27:000000000000000c [ 540.579470] x26: 0000000000235c00 x25: 0000000000000068 x24:ffffffc03579b640 [ 540.579477] x23: 0000000000000001 x22: ffffffc03579b660 x21:0000000000000000 [ 540.579483] x20: 0000000000235bff x19: ffffffdebf7e3940 x18:ffffffdebf66d140 [ 540.579489] x17: 00000000739ba063 x16: 00000000739ba063 x15:00000000009f4bff [ 540.579495] x14: 0000008000000000 x13: 0000000000000000 x12:0000000000000001 [ 540.579501] x11: 0000000000000000 x10: 0000000000000000 x9 :ffffff897d2cd440 [ 540.579507] x8 : 0000000000000000 x7 : 0000000000000000 x6 :ffffffc03579b5b4 [ 540.579512] x5 : 0000000000027f25 x4 : ffffffc03579b5b8 x3 :0000000000000 ---truncated---

OrtaCVSS 4.7 · v3.1—İstismar yok Düzeltme var
Yayın
11 Mar 2024
Güncelleme
17 Haz 2026
EPSS
%0,3 · 20. 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

18

İzleyin

Şimdilik düşük öncelik.

CVSS
18 / 40 · 4.7 / 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.

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
debiandebian linux

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.

  • debian debian linux10.0
  • linux linux kernel5.3 ve sonrası · 5.10.210 öncesi
  • linux linux kernel5.11 ve sonrası · 5.15.149 öncesi
  • linux linux kernel5.16 ve sonrası · 6.1.76 öncesi
  • linux linux kernel6.2 ve sonrası · 6.6.15 öncesi
  • linux linux kernel6.7 ve sonrası · 6.7.3 ö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

    • 5.3etkilenir
    • f46edbd1b1516da1fb34c917775168d5df576f78 ve sonrası · 90ad17575d26874287271127d43ef3c2af876cea öncesietkilenir · git
    • f46edbd1b1516da1fb34c917775168d5df576f78 ve sonrası · b448de2459b6d62a53892487ab18b7d823ff0529 öncesietkilenir · git
    • f46edbd1b1516da1fb34c917775168d5df576f78 ve sonrası · 68ed9e33324021e9d6b798e9db00ca3093d2012a öncesietkilenir · git
    • f46edbd1b1516da1fb34c917775168d5df576f78 ve sonrası · 70064241f2229f7ba7b9599a98f68d9142e81a97 öncesietkilenir · git
    • f46edbd1b1516da1fb34c917775168d5df576f78 ve sonrası · 3a01daace71b521563c38bbbf874e14c3e58adb7 öncesietkilenir · git
    • f46edbd1b1516da1fb34c917775168d5df576f78 ve sonrası · 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 öncesietkilenir · git
    • 5.3 öncesietkilenmez · semver
    • 5.10.210 ve sonrası · 5.10.* dahil öncesietkilenmez · semver
    • 5.15.149 ve sonrası · 5.15.* 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.

EkosistemPaketEtkilenen aralıkDüzeltme
Debian:10linux-5.105.10.216-1~deb10u1 öncesi5.10.216-1~deb10u1
Debian:11linux5.10.216-1 öncesi5.10.216-1
Debian:12linux6.1.76-1 öncesi6.1.76-1
Debian:13linux6.6.15-1 öncesi6.6.15-1
openSUSE:Leap 15.6dtb-aarch646.4.0-150600.23.38.1 öncesi6.4.0-150600.23.38.1
openSUSE:Leap 15.6dtb-aarch646.4.0-150600.23.22.1 öncesi6.4.0-150600.23.22.1
openSUSE:Leap 15.6kernel-debug6.4.0-150600.23.22.1 öncesi6.4.0-150600.23.22.1
openSUSE:Leap 15.6kernel-debug6.4.0-150600.23.38.1 öncesi6.4.0-150600.23.38.1
openSUSE:Leap 15.6kernel-kvmsmall6.4.0-150600.23.22.1 öncesi6.4.0-150600.23.22.1
openSUSE:Leap 15.6kernel-kvmsmall6.4.0-150600.23.38.1 öncesi6.4.0-150600.23.38.1
openSUSE:Leap 15.6kernel-obs-qa6.4.0-150600.23.38.1 öncesi6.4.0-150600.23.38.1
openSUSE:Leap 15.6kernel-obs-qa6.4.0-150600.23.22.1 öncesi6.4.0-150600.23.22.1
Red Hat:rhel_e4s:9.0::appstreambpftool-debuginfo0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debug-debuginfo0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debug-devel0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debug-devel-matched0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debuginfo0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debuginfo-common-aarch640:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debuginfo-common-ppc64le0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debuginfo-common-s390x0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-debuginfo-common-x86_640:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-devel0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-devel-matched0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0
Red Hat:rhel_e4s:9.0::appstreamkernel-doc0:5.14.0-70.117.1.el9_0 öncesi0:5.14.0-70.117.1.el9_0

+96

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 Linux3a01daace71b521563c38bbbf874e14c3e58adb7Üretici (CNA)
Linux Linux5ec8e8ea8b7783fab150cf86404fc38cb4db8800Üretici (CNA)
Linux Linux68ed9e33324021e9d6b798e9db00ca3093d2012aÜretici (CNA)
Linux Linux70064241f2229f7ba7b9599a98f68d9142e81a97Üretici (CNA)
Linux Linux90ad17575d26874287271127d43ef3c2af876ceaÜretici (CNA)
Linux Linuxb448de2459b6d62a53892487ab18b7d823ff0529Üretici (CNA)
debian:linux6.1.76-1 · Debian:12Paket deposu (OSV)
debian:linux-5.105.10.216-1~deb10u1 · Debian:10Paket deposu (OSV)
opensuse:kernel-azure6.4.0-150600.8.11.1 · openSUSE:Leap 15.6Paket deposu (OSV)
opensuse:kernel-rt6.4.0-150600.10.8.3 · openSUSE:Leap 15.6Paket deposu (OSV)
opensuse:kernel-source-azure6.4.0-150600.8.11.1 · openSUSE:Leap 15.6Paket deposu (OSV)
opensuse:kernel-syms-azure6.4.0-150600.8.11.1 · openSUSE:Leap 15.6Paket deposu (OSV)
red hat:bpftool0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:bpftool-debuginfo0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-abi-stablelists0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-core0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debug0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debug-core0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debug-debuginfo0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debug-devel0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debug-modules0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debug-modules-extra0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
red hat:kernel-debuginfo0:4.18.0-477.81.1.el8_8 · Red Hat:rhel_eus:8.8::baseosPaket deposu (OSV)
suse:kernel-azure6.4.0-150600.8.11.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Paket deposu (OSV)
suse:kernel-livepatch-SLE15-SP6-RT_Update_21-150600.1.3.2 · SUSE:Linux Enterprise Live Patching 15 SP6Paket deposu (OSV)
suse:kernel-rt6.4.0-150600.10.8.3 · SUSE:Real Time Module 15 SP6Paket deposu (OSV)
suse:kernel-rt_debug6.4.0-150600.10.8.3 · SUSE:Real Time Module 15 SP6Paket deposu (OSV)
suse:kernel-source-azure6.4.0-150600.8.11.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Paket deposu (OSV)
suse:kernel-source-rt6.4.0-150600.10.8.3 · SUSE:Real Time Module 15 SP6Paket deposu (OSV)

+2

İ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).

Ulusal bildirim (Siber Güvenlik Başkanlığı / USOM)

Bu kaydı anan resmi güvenlik bildirimleri; çözüm önerisi kurumun sayfasında.

Tüm ulusal bildirimler →

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
yok
Bütünlük
yok
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
Yok
Bütünlük etkisi
Yok
Erişilebilirlik etkisi
Yüksek

CVSS vektörü

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

Değişiklik günlüğü

  1. Düzeltme✗ → ✓

Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →

Referanslar

Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.

Tüm kayıtlar