{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-52490 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-52490 is a medium-severity vulnerability in Linux kernel, published on 29 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-52490 and fix it if it is affected.\n\nWhat it is: CVE-2023-52490 is a medium-severity vulnerability in Linux kernel, published on 29 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-52490 in the wild and no public exploit code.\n\nAffected product: Linux kernel. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-52490/ (Markdown: https://insights.sbomify.com/CVE-2023-52490/index.md)","id":"CVE-2023-52490","markdown":"https://insights.sbomify.com/CVE-2023-52490/index.md","name":"CVE-2023-52490","record":{"aliases":["ALSA-2025:1659","BELL-CVE-2023-52490","DEBIAN-CVE-2023-52490","GHSA-j4qq-hcfp-m638","RHSA-2025:1659","UBUNTU-CVE-2023-52490"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux kernel","requires_auth":"low_privilege","summary":"A race condition during page migration and memory hotplug causes a NULL pointer dereference, leading to a kernel crash and denial of service.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Linux","cpe":[{"product":"linux_kernel","vendor":"linux"}],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: migrate: fix getting incorrect page mapping during page migration\n\nWhen running stress-ng testing, we found below kernel crash after a few hours:\n\nUnable to handle kernel NULL pointer dereference at virtual address 0000000000000000\npc : dentry_name+0xd8/0x224\nlr : pointer+0x22c/0x370\nsp : ffff800025f134c0\n......\nCall trace:\n  dentry_name+0xd8/0x224\n  pointer+0x22c/0x370\n  vsnprintf+0x1ec/0x730\n  vscnprintf+0x2c/0x60\n  vprintk_store+0x70/0x234\n  vprintk_emit+0xe0/0x24c\n  vprintk_default+0x3c/0x44\n  vprintk_func+0x84/0x2d0\n  printk+0x64/0x88\n  __dump_page+0x52c/0x530\n  dump_page+0x14/0x20\n  set_migratetype_isolate+0x110/0x224\n  start_isolate_page_range+0xc4/0x20c\n  offline_pages+0x124/0x474\n  memory_block_offline+0x44/0xf4\n  memory_subsys_offline+0x3c/0x70\n  device_offline+0xf0/0x120\n  ......\n\nAfter analyzing the vmcore, I found this issue is caused by page migration.\nThe scenario is that, one thread is doing page migration, and we will use the\ntarget page's -\u003emapping field to save 'anon_vma' pointer between page unmap and\npage move, and now the target page is locked and refcount is 1.\n\nCurrently, there is another stress-ng thread performing memory hotplug,\nattempting to offline the target page that is being migrated. It discovers that\nthe refcount of this target page is 1, preventing the offline operation, thus\nproceeding to dump the page. However, page_mapping() of the target page may\nreturn an incorrect file mapping to crash the system in dump_mapping(), since\nthe target page-\u003emapping only saves 'anon_vma' pointer without setting\nPAGE_MAPPING_ANON flag.\n\nThere are seveval ways to fix this issue:\n(1) Setting the PAGE_MAPPING_ANON flag for target page's -\u003emapping when saving\n'anon_vma', but this can confuse PageAnon() for PFN walkers, since the target\npage has not built mappings yet.\n(2) Getting the page lock to call page_mapping() in __dump_page() to avoid crashing\nthe system, however, there are still some PFN walkers that call page_mapping()\nwithout holding the page lock, such as compaction.\n(3) Using target page-\u003eprivate field to save the 'anon_vma' pointer and 2 bits\npage state, just as page-\u003emapping records an anonymous page, which can remove\nthe page_mapping() impact for PFN walkers and also seems a simple way.\n\nSo I choose option 3 to fix this issue, and this can also fix other potential\nissues for PFN walkers, such as compaction.","ecosystems":["AlmaLinux:9","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:enterprise_linux:9::nfv","Red Hat:enterprise_linux:9::realtime"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"mm: migrate: fix getting incorrect page mapping during page migration","id":"CVE-2023-52490","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"linux:linux_kernel","products":["linux:linux_kernel"],"type":"null_dereference","year":"2023"},"n_packages":206,"n_references":3,"next":{"headline":"media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run","id":"CVE-2023-52491"},"packages":[{"ecosystem":"AlmaLinux:9","fixed":["7.4.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"bpftool","purl":"pkg:rpm/almalinux/bpftool","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel","purl":"pkg:rpm/almalinux/kernel","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k","purl":"pkg:rpm/almalinux/kernel-64k","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-core","purl":"pkg:rpm/almalinux/kernel-64k-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug","purl":"pkg:rpm/almalinux/kernel-64k-debug","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug-core","purl":"pkg:rpm/almalinux/kernel-64k-debug-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug-devel","purl":"pkg:rpm/almalinux/kernel-64k-debug-devel","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug-devel-matched","purl":"pkg:rpm/almalinux/kernel-64k-debug-devel-matched","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug-modules","purl":"pkg:rpm/almalinux/kernel-64k-debug-modules","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug-modules-core","purl":"pkg:rpm/almalinux/kernel-64k-debug-modules-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-debug-modules-extra","purl":"pkg:rpm/almalinux/kernel-64k-debug-modules-extra","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-devel","purl":"pkg:rpm/almalinux/kernel-64k-devel","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-devel-matched","purl":"pkg:rpm/almalinux/kernel-64k-devel-matched","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-modules","purl":"pkg:rpm/almalinux/kernel-64k-modules","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-modules-core","purl":"pkg:rpm/almalinux/kernel-64k-modules-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-64k-modules-extra","purl":"pkg:rpm/almalinux/kernel-64k-modules-extra","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-abi-stablelists","purl":"pkg:rpm/almalinux/kernel-abi-stablelists","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-core","purl":"pkg:rpm/almalinux/kernel-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-cross-headers","purl":"pkg:rpm/almalinux/kernel-cross-headers","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug","purl":"pkg:rpm/almalinux/kernel-debug","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-core","purl":"pkg:rpm/almalinux/kernel-debug-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel","purl":"pkg:rpm/almalinux/kernel-debug-devel","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel-matched","purl":"pkg:rpm/almalinux/kernel-debug-devel-matched","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules","purl":"pkg:rpm/almalinux/kernel-debug-modules","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules-core","purl":"pkg:rpm/almalinux/kernel-debug-modules-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules-extra","purl":"pkg:rpm/almalinux/kernel-debug-modules-extra","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-uki-virt","purl":"pkg:rpm/almalinux/kernel-debug-uki-virt","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-devel","purl":"pkg:rpm/almalinux/kernel-devel","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-devel-matched","purl":"pkg:rpm/almalinux/kernel-devel-matched","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-doc","purl":"pkg:rpm/almalinux/kernel-doc","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-headers","purl":"pkg:rpm/almalinux/kernel-headers","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-modules","purl":"pkg:rpm/almalinux/kernel-modules","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-modules-core","purl":"pkg:rpm/almalinux/kernel-modules-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-modules-extra","purl":"pkg:rpm/almalinux/kernel-modules-extra","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-rt","purl":"pkg:rpm/almalinux/kernel-rt","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-core","purl":"pkg:rpm/almalinux/kernel-rt-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug","purl":"pkg:rpm/almalinux/kernel-rt-debug","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-core","purl":"pkg:rpm/almalinux/kernel-rt-debug-core","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-devel","purl":"pkg:rpm/almalinux/kernel-rt-debug-devel","source":"ALSA-2025:1659"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-503.26.1.el9_5"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-modules","purl":"pkg:rpm/almalinux/kernel-rt-debug-modules","source":"ALSA-2025:1659"}],"prev":{"headline":"mm/sparsemem: fix race in accessing memory_section-\u003eusage","id":"CVE-2023-52489"},"products":["Linux"],"published":"2024-02-29","related":[{"cvss_score":8.8,"headline":"Linux Kernel Out-of-Bounds Write","id":"CVE-2026-53266","kev_date_added":"2026-09-18","published":"2026-06-25"},{"cvss_score":8.8,"headline":"Linux Kernel Improper Input Validation","id":"CVE-2013-6282","kev_date_added":"2022-09-15","published":"2013-11-19"},{"cvss_score":8.4,"headline":"Linux Kernel Heap-Based Buffer Overflow","id":"CVE-2022-0185","kev_date_added":"2024-08-21","published":"2022-02-11"},{"cvss_score":8.4,"headline":"Linux Kernel Privilege Escalation","id":"CVE-2013-2094","kev_date_added":"2022-09-15","published":"2013-05-14"},{"cvss_score":7.8,"headline":"Linux Kernel Unspecified","id":"CVE-2026-53362","kev_date_added":"2026-08-27","published":"2026-07-04"},{"cvss_score":7.8,"headline":"Linux Kernel Missing Initialization of a Variable","id":"CVE-2026-46300","kev_date_added":"2026-10-28","published":"2026-05-23"},{"cvss_score":7.8,"headline":"Linux Kernel Race Condition","id":"CVE-2025-39964","kev_date_added":"2026-09-18","published":"2025-10-13"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-23","vendors":["Linux"]},"summary":"A race condition during page migration and memory hotplug causes a NULL pointer dereference, leading to a kernel crash and denial of service.","url":"https://insights.sbomify.com/CVE-2023-52490/"}