CVE-2024-26989

CVE Details

Release Date:2024-05-01

Description


In the Linux kernel, the following vulnerability has been resolved:\narm64: hibernate: Fix level3 translation fault in swsusp_save()\nOn arm64 machines, swsusp_save() faults if it attempts to access\nMEMBLOCK_NOMAP memory ranges. This can be reproduced in QEMU using UEFI\nwhen booting with rodata=off debug_pagealloc=off and CONFIG_KFENCE=n:\nUnable to handle kernel paging request at virtual address ffffff8000000000\nMem abort info:\nESR = 0x0000000096000007\nEC = 0x25: DABT (current EL), IL = 32 bits\nSET = 0, FnV = 0\nEA = 0, S1PTW = 0\nFSC = 0x07: level 3 translation fault\nData abort info:\nISV = 0, ISS = 0x00000007, ISS2 = 0x00000000\nCM = 0, WnR = 0, TnD = 0, TagAccess = 0\nGCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0\nswapper pgtable: 4k pages, 39-bit VAs, pgdp=00000000eeb0b000\n[ffffff8000000000] pgd=180000217fff9803, p4d=180000217fff9803, pud=180000217fff9803, pmd=180000217fff8803, pte=0000000000000000\nInternal error: Oops: 0000000096000007 [#1] SMP\nInternal error: Oops: 0000000096000007 [#1] SMP\nModules linked in: xt_multiport ipt_REJECT nf_reject_ipv4 xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter bpfilter rfkill at803x snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg dwmac_generic stmmac_platform snd_hda_codec stmmac joydev pcs_xpcs snd_hda_core phylink ppdev lp parport ramoops reed_solomon ip_tables x_tables nls_iso8859_1 vfat multipath linear amdgpu amdxcp drm_exec gpu_sched drm_buddy hid_generic usbhid hid radeon video drm_suballoc_helper drm_ttm_helper ttm i2c_algo_bit drm_display_helper cec drm_kms_helper drm\nCPU: 0 PID: 3663 Comm: systemd-sleep Not tainted 6.6.2+ #76\nSource Version: 4e22ed63a0a48e7a7cff9b98b7806d8d4add7dc0\nHardware name: Greatwall GW-XXXXXX-XXX/GW-XXXXXX-XXX, BIOS KunLun BIOS V4.0 01/19/2021\npstate: 600003c5 (nZCv DAIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)\npc : swsusp_save+0x280/0x538\nlr : swsusp_save+0x280/0x538\nsp : ffffffa034a3fa40\nx29: ffffffa034a3fa40 x28: ffffff8000001000 x27: 0000000000000000\nx26: ffffff8001400000 x25: ffffffc08113e248 x24: 0000000000000000\nx23: 0000000000080000 x22: ffffffc08113e280 x21: 00000000000c69f2\nx20: ffffff8000000000 x19: ffffffc081ae2500 x18: 0000000000000000\nx17: 6666662074736420 x16: 3030303030303030 x15: 3038666666666666\nx14: 0000000000000b69 x13: ffffff9f89088530 x12: 00000000ffffffea\nx11: 00000000ffff7fff x10: 00000000ffff7fff x9 : ffffffc08193f0d0\nx8 : 00000000000bffe8 x7 : c0000000ffff7fff x6 : 0000000000000001\nx5 : ffffffa0fff09dc8 x4 : 0000000000000000 x3 : 0000000000000027\nx2 : 0000000000000000 x1 : 0000000000000000 x0 : 000000000000004e\nCall trace:\nswsusp_save+0x280/0x538\nswsusp_arch_suspend+0x148/0x190\nhibernation_snapshot+0x240/0x39c\nhibernate+0xc4/0x378\nstate_store+0xf0/0x10c\nkobj_attr_store+0x14/0x24\nThe reason is swsusp_save() -> copy_data_pages() -> page_is_saveable()\n-> kernel_page_present() assuming that a page is always present when\ncan_set_direct_map() is false (all of rodata_full,\ndebug_pagealloc_enabled() and arm64_kfence_can_set_direct_map() false),\nirrespective of the MEMBLOCK_NOMAP ranges. Such MEMBLOCK_NOMAP regions\nshould not be saved during hibernation.\nThis problem was introduced by changes to the pfn_valid() logic in\ncommit a7d9f306ba70 ('arm64: drop pfn_valid_within() and simplify\npfn_valid()').\nSimilar to other architectures, drop the !can_set_direct_map() check in\nkernel_page_present() so that page_is_savable() skips such pages.\n[catalin.marinas@arm.com: rework commit message]

See more information about CVE-2024-26989 from MITRE CVE dictionary and NIST NVD


CVSS Scoring


NOTE: The following CVSS v3.1 metrics and score provided are preliminary and subject to review.

Base Score: 5.5 CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector: Local network Attack Complexity: Low
Privileges Required: Low User Interaction: None
Scope: Unchanged Confidentiality Impact: None
Integrity Impact: None Availability Impact: High

Errata information


PlatformErrataRelease Date
Oracle Linux version 9 (kernel)ELSA-2024-93152024-11-14


This page is generated automatically and has not been checked for errors or omissions. For clarification or corrections:

software.hardware.complete