{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2022-50631 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-50631 is a memory corruption vulnerability in Linux, published on 8 Dec 2025. 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-2022-50631 and fix it if it is affected.\n\nWhat it is: CVE-2022-50631 is a memory corruption vulnerability in Linux, published on 8 Dec 2025. 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-2022-50631 in the wild and no public exploit code.\n\nAffected product: Linux. 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-2022-50631/ (Markdown: https://insights.sbomify.com/CVE-2022-50631/index.md)","id":"CVE-2022-50631","markdown":"https://insights.sbomify.com/CVE-2022-50631/index.md","name":"CVE-2022-50631","record":{"aliases":["DEBIAN-CVE-2022-50631","GHSA-jgrf-v335-cj7m","UBUNTU-CVE-2022-50631"],"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":"high_privilege","summary":"A memory leak in the Linux kernel RISC-V kexec implementation allows local attackers to exhaust system memory, causing denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Linux","cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRISC-V: kexec: Fix memory leak of fdt buffer\n\nThis is reported by kmemleak detector:\n\nunreferenced object 0xff60000082864000 (size 9588):\n  comm \"kexec\", pid 146, jiffies 4294900634 (age 64.788s)\n  hex dump (first 32 bytes):\n    d0 0d fe ed 00 00 12 ed 00 00 00 48 00 00 11 40  ...........H...@\n    00 00 00 28 00 00 00 11 00 00 00 02 00 00 00 00  ...(............\n  backtrace:\n    [\u003c00000000f95b17c4\u003e] kmemleak_alloc+0x34/0x3e\n    [\u003c00000000b9ec8e3e\u003e] kmalloc_order+0x9c/0xc4\n    [\u003c00000000a95cf02e\u003e] kmalloc_order_trace+0x34/0xb6\n    [\u003c00000000f01e68b4\u003e] __kmalloc+0x5c2/0x62a\n    [\u003c000000002bd497b2\u003e] kvmalloc_node+0x66/0xd6\n    [\u003c00000000906542fa\u003e] of_kexec_alloc_and_setup_fdt+0xa6/0x6ea\n    [\u003c00000000e1166bde\u003e] elf_kexec_load+0x206/0x4ec\n    [\u003c0000000036548e09\u003e] kexec_image_load_default+0x40/0x4c\n    [\u003c0000000079fbe1b4\u003e] sys_kexec_file_load+0x1c4/0x322\n    [\u003c0000000040c62c03\u003e] ret_from_syscall+0x0/0x2\n\nIn elf_kexec_load(), a buffer is allocated via kvmalloc() to store fdt.\nWhile it's not freed back to system when kexec kernel is reloaded or\nunloaded.  Then memory leak is caused.  Fix it by introducing riscv\nspecific function arch_kimage_file_post_load_cleanup(), and freeing the\nbuffer there.","ecosystems":[],"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":"RISC-V: kexec: Fix memory leak of fdt buffer","id":"CVE-2022-50631","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2022"},"n_packages":0,"n_references":3,"next":{"headline":"drivers: perf: marvell_cn10k: Fix hotplug callback leak in tad_pmu_init()","id":"CVE-2022-50632"},"packages":[],"prev":{"headline":"mm: hugetlb: fix UAF in hugetlb_handle_userfault","id":"CVE-2022-50630"},"products":["Linux"],"published":"2025-12-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-05-11","vendors":["Linux"]},"summary":"A memory leak in the Linux kernel RISC-V kexec implementation allows local attackers to exhaust system memory, causing denial of service.","url":"https://insights.sbomify.com/CVE-2022-50631/"}