CVE-2024-35877
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35877 affects the Linux kernel's x86/mm/pat subsystem, specifically in handling VM_PAT for Copy-On-Write (COW) mappings. The vulnerability was discovered in May 2024 and affects the Linux kernel's memory management system (Kernel Git).

Technical details

The vulnerability occurs in the PAT (Page Attribute Table) handling mechanism where PTEs can be replaced during write faults to point at anonymous folios in COW mappings. The issue prevents reliable recovery of the correct PFN and cachemode using followphys() from PTEs in COW mappings, potentially leading to incorrect address protection handling or failures in followphys() operations (Kernel Git).

Impact

The vulnerability can result in memory leaks and system warnings due to improper handling of memory types. When triggered, it can cause WARNONONCE() in untrackpfn() and trackpfncopy() functions, and may lead to improper calling of freepfn_range(), potentially affecting system stability (Kernel Git).

Mitigation and workarounds

The issue has been fixed by updating followphys() to refuse returning anon folios and implementing a fallback mechanism to use the stored PFN inside vma->vmpgoff for COW mappings. The fix is included in various Linux distribution updates including Red Hat Enterprise Linux (Red Hat) and Ubuntu (Ubuntu).

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