PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2022-49546: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49546 addresses a memory leak vulnerability in the Linux kernel's x86/kexec subsystem. The issue specifically affects the handling of ELF header buffers during kernel execution. The vulnerability was discovered when a memory leak was detected by the kmemleak detector, showing an unreferenced object of size 4096 bytes in the kexec process (Kernel Git).

Technical details

The vulnerability occurs in the crash_prepare_elf64_headers() function where a buffer is allocated via vmalloc() to store ELF headers. The issue arises because this buffer is not properly freed when the kdump kernel is reloaded or unloaded. The bug was identified in the x86_64 architecture implementation, specifically in the arch/x86/kernel/machine_kexec_64.c file. The vulnerability was confirmed through memory leak detection showing an unreferenced object at address 0xffffc900002a9000 (Kernel Git).

Impact

The vulnerability results in a memory leak in the Linux kernel's kexec subsystem. While memory leaks don't typically present immediate security risks, they can lead to resource exhaustion over time, potentially affecting system stability and performance, particularly in systems that frequently use the kexec functionality (Kernel Git).

Exploitability

The vulnerability requires local access to the system and the ability to trigger kexec operations. Three different individuals reported the memory leak issue within Red Hat's environment, indicating the reproducibility of the issue (Kernel Git).

Mitigation and workarounds

The issue has been resolved by introducing an x86-specific function arch_kimage_file_post_load_cleanup() that properly frees the ELF header buffer. The fix also removes incorrect ELF header buffer freeing code that was previously in place. The patch ensures proper cleanup of allocated resources when the kexec operation is completed (Kernel Git).

Additional resources


Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-99082HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesOct 23, 2026
CVE-2026-99081HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-docs
NoYesOct 23, 2026
CVE-2026-99087NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesOct 23, 2026
CVE-2026-99086NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesOct 23, 2026
CVE-2026-99085NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoNoOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management