{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2022-50765 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-50765 is a memory corruption vulnerability in Linux, published on 24 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-50765 and fix it if it is affected.\n\nWhat it is: CVE-2022-50765 is a memory corruption vulnerability in Linux, published on 24 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-50765 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-50765/ (Markdown: https://insights.sbomify.com/CVE-2022-50765/index.md)","id":"CVE-2022-50765","markdown":"https://insights.sbomify.com/CVE-2022-50765/index.md","name":"CVE-2022-50765","record":{"aliases":["DEBIAN-CVE-2022-50765","GHSA-9rwv-33pv-xm7g","UBUNTU-CVE-2022-50765"],"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's 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 elf header buffer\n\nThis is reported by kmemleak detector:\n\nunreferenced object 0xff2000000403d000 (size 4096):\n  comm \"kexec\", pid 146, jiffies 4294900633 (age 64.792s)\n  hex dump (first 32 bytes):\n    7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00  .ELF............\n    04 00 f3 00 01 00 00 00 00 00 00 00 00 00 00 00  ................\n  backtrace:\n    [\u003c00000000566ca97c\u003e] kmemleak_vmalloc+0x3c/0xbe\n    [\u003c00000000979283d8\u003e] __vmalloc_node_range+0x3ac/0x560\n    [\u003c00000000b4b3712a\u003e] __vmalloc_node+0x56/0x62\n    [\u003c00000000854f75e2\u003e] vzalloc+0x2c/0x34\n    [\u003c00000000e9a00db9\u003e] crash_prepare_elf64_headers+0x80/0x30c\n    [\u003c0000000067e8bf48\u003e] elf_kexec_load+0x3e8/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 vzalloc() to store elf\nheaders.  While it's not freed back to system when kdump kernel is\nreloaded or unloaded, or when image-\u003eelf_header is successfully set and\nthen fails to load kdump kernel for some reason. Fix it by freeing the\nbuffer in arch_kimage_file_post_load_cleanup().","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 elf header buffer","id":"CVE-2022-50765","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":"btrfs: set generation before calling btrfs_clean_tree_block in btrfs_init_new_buffer","id":"CVE-2022-50766"},"packages":[],"prev":{"headline":"ipv6/sit: use DEV_STATS_INC() to avoid data-races","id":"CVE-2022-50764"},"products":["Linux"],"published":"2025-12-24","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's RISC-V kexec implementation allows local attackers to exhaust system memory, causing denial of service.","url":"https://insights.sbomify.com/CVE-2022-50765/"}