Skip to main content
Vulnerability Database/CVE-2024-50112

CVE-2024-50112: Linux Kernel LAM Privilege Escalation

CVE-2024-50112 is a privilege escalation vulnerability in Linux Kernel's Linear Address Masking feature that may be exploitable without LASS enabled. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-50112 Overview

CVE-2024-50112 affects the Linux kernel's x86 Linear Address Masking (LAM) feature. The vulnerability relates to transient execution behavior described in the SLAM research paper. Without Linear Address Space Separation (LASS) enabled, LAM introduces an exploitable speculative execution weakness. The kernel maintainers responded by disabling ADDRESS_MASKING in most build configurations, allowing it only for COMPILE_TEST or when CPU mitigations are disabled at compile time. No shipping processors currently implement LAM, so the practical attack surface is limited to future hardware. The flaw is tracked under [CWE-noinfo] and affects Linux kernel versions through 6.12-rc4.

Critical Impact

Local attackers on systems with future LAM-capable CPUs could leverage transient execution to leak kernel memory contents when LASS is not available.

Affected Products

  • Linux Kernel versions prior to the fix in stable branches
  • Linux Kernel 6.12-rc1 through 6.12-rc4
  • Builds enabling CONFIG_ADDRESS_MASKING without CONFIG_CPU_MITIGATIONS disabled

Discovery Timeline

  • 2024-11-05 - CVE-2024-50112 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-50112

Vulnerability Analysis

Linear Address Masking (LAM) is an x86 feature that allows software to store metadata in the upper bits of 64-bit pointers. The CPU ignores these masked bits during address translation, enabling applications to tag pointers for use cases such as sanitizers and memory tagging.

The SLAM (Spectre based on Linear Address Masking) research demonstrated that LAM expands the attack surface of transient execution. Speculative loads using masked, non-canonical addresses can bypass canonicality checks and reach gadgets that leak secrets through microarchitectural side channels. Linear Address Space Separation (LASS) was designed to block this behavior by enforcing strict separation between user and kernel address ranges during speculation.

Because the mainline Linux kernel does not yet implement LASS support, enabling LAM leaves the system exposed. The patch restricts LAM activation to development and testing paths only.

Root Cause

The root cause is architectural: LAM relaxes canonicality enforcement on pointer bits, which the CPU front-end can speculatively use to construct addresses that reference secret kernel data. Without LASS, there is no hardware boundary preventing these transient accesses from being used as Spectre-style gadgets.

Attack Vector

Exploitation requires local code execution on a LAM-capable system with LAM enabled in the kernel. An attacker crafts user-space code that trains branch predictors and issues loads with crafted tagged pointers. Secrets are then recovered through cache-timing analysis of transiently executed instructions. No LAM-capable processors are currently shipping, so the window for live exploitation remains theoretical.

Technical details on the speculative execution mechanics are documented in the SLAM research paper and the LASS kernel patch series.

Detection Methods for CVE-2024-50112

Indicators of Compromise

  • No file-based or network IOCs exist for this vulnerability since exploitation occurs entirely through CPU microarchitectural state
  • Unusual high-frequency cache-timing measurement patterns from unprivileged processes may indicate speculative side-channel probing
  • Processes repeatedly issuing loads with non-canonical tagged pointers on LAM-enabled kernels warrant inspection

Detection Strategies

  • Inventory Linux kernel builds and check whether CONFIG_ADDRESS_MASKING is enabled alongside CONFIG_CPU_MITIGATIONS=y
  • Verify kernel version against patched commits 3267cb6d, 60a5ba56, and 69059906 in the stable tree
  • Audit systems running kernel 6.12-rc1 through 6.12-rc4 for upgrade priority

Monitoring Recommendations

  • Track kernel package updates across Linux fleets to confirm the x86/lam patch is applied
  • Monitor dmesg and boot logs for LAM initialization messages on x86_64 hosts
  • Correlate kernel build configurations with hardware inventory to flag systems that could enable LAM in the future

How to Mitigate CVE-2024-50112

Immediate Actions Required

  • Update the Linux kernel to a version containing the three upstream fix commits listed in the kernel.org advisories
  • Confirm CONFIG_ADDRESS_MASKING is disabled in production kernel builds unless LASS support is also present
  • Rebuild any custom kernels that enabled LAM for performance or development purposes

Patch Information

The fix is distributed across three stable kernel commits: Linux Kernel Commit 3267cb6, Linux Kernel Commit 60a5ba5, and Linux Kernel Commit 6905990. The patch gates ADDRESS_MASKING on COMPILE_TEST or disabled CPU_MITIGATIONS, preventing accidental activation on hardened production systems.

Workarounds

  • Disable CONFIG_ADDRESS_MASKING at kernel build time until LASS support lands in mainline
  • Keep CONFIG_CPU_MITIGATIONS=y enabled to retain speculative execution protections
  • Avoid deploying kernel 6.12-rc1 through 6.12-rc4 in production environments

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.