CVE-2024-47745
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-47745 is a security vulnerability discovered in the Linux kernel's remapfilepages syscall handler. The vulnerability was disclosed on October 21, 2024, affecting Linux kernel versions up to 6.6.54, from 6.7 to 6.10.13, and from 6.11 to 6.11.2. The issue stems from the remapfilepages syscall handler calling do_mmap() directly without proper LSM (Linux Security Module) security checks (NVD).

Technical details

The vulnerability exists in the mm/mmap.c file where the remapfilepages syscall handler bypasses the LSM security check by directly calling dommap(). When a process calls personality(READIMPLIESEXEC) before invoking remapfile_pages() for RW pages, it results in remapping the pages to RWX, effectively bypassing the W^X policy enforced by SELinux. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows an attacker to bypass the W^X (Write XOR Execute) policy enforced by SELinux, potentially enabling the execution of malicious code in memory regions that should be write-only. This bypass is similar to CVE-2016-10044, which achieved the same effect via AIO (Kernel Patch).

Mitigation and workarounds

The vulnerability has been patched by adding a securitymmapfile() LSM hook check in the remapfilepages syscall handler before calling do_mmap(). The fix has been implemented in various kernel versions through patches. Users are advised to upgrade to patched kernel versions (Kernel Patch).

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