CVE-2022-49210
Linux Debian vulnerability analysis and mitigation

Overview

A memory leak vulnerability was discovered in the Linux kernel's MIPS architecture implementation, identified as CVE-2022-49210. The issue occurs in the pgdfree() function when handling page table directory (PGD) pages. The vulnerability was discovered when the generic implementation of pgdfree() failed to properly free all allocated pages in certain scenarios, particularly when the system uses more than one page as the PGD table (Kernel Git).

Technical details

The vulnerability stems from a mismatch between page allocation and deallocation in the MIPS architecture's memory management system. When PAGESIZE4KB is enabled and MIPSVABITS48 is not enabled in a 64-bit system, the PGDORDER macro is set to "1", causing the allocation of two pages for the PGD table. However, the generic implementation of pgd_free() only frees one PGD page, resulting in a memory leak. The issue can be detected by monitoring system memory usage through the command: "while true; do ls > /dev/null; grep MemFree /proc/meminfo; done" (Kernel Git).

Impact

The vulnerability results in a continuous memory leak in affected systems, which can gradually consume available system memory over time. This can potentially lead to system performance degradation and resource exhaustion if left unaddressed (Kernel Git).

Mitigation and workarounds

The issue has been resolved by implementing a proper pgdfree() function that correctly handles the freeing of multiple pages. The fix involves adding the _HAVEARCHPGDFREE definition and implementing a new pgdfree() function that uses the correct PGD_ORDER when freeing pages (Kernel Git).

Additional resources


SourceThis report was generated using AI

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