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 crashprepareelf64headers() 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 x8664 architecture implementation, specifically in the arch/x86/kernel/machinekexec64.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).

Mitigation and workarounds

The issue has been resolved by introducing an x86-specific function archkimagefilepostload_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


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-aws-fips
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • kernel-firmware
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025

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