Kernel Samepage Merging Vulnerability in Linux Packages: CVE-2015-2877

linux Updated 03 Oct 2025

Summary

03/03/2017
N/A
No i
Low
3.3

UBUNTU-CVE-2015-2877: DISPUTED Kernel Samepage Merging (KSM) in the Linux kernel 2.6.32 through 4.x does not prevent use of a write-timing side channel, which allows guest OS users to defeat the ASLR protection mechanism on other guest OS ins... Affects linux versions 3.11.0-12.19 – 3.13.0-98.145. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of the operating system that manages hardware resources and provides essential services for applications. It supports various functionalities, including process management, memory management, and device control. The vulnerability in question affects multiple Linux packages across different Ubuntu LTS versions, specifically those utilizing Kernel Samepage Merging (KSM) for memory optimization. This feature allows multiple virtual machines to share identical memory pages, which can lead to potential security risks if not properly managed.

Vulnerability Detail

The vulnerability, identified as CVE-2015-2877, arises from the Kernel Samepage Merging (KSM) feature in the Linux kernel versions 2.6.32 through 4.x. It does not adequately prevent the exploitation of a write-timing side channel, enabling malicious users in one guest OS to compromise the Address Space Layout Randomization (ASLR) protections of other guest OS instances. This Cross-VM ASL Introspection (CAIN) attack can lead to unauthorized information disclosure, potentially allowing attackers to infer sensitive data from other virtual machines. The vendor has noted that if organizations are concerned about this attack vector, they should consider disabling deduplication.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, if you are concerned about the vulnerability, you can disable the KSM feature by executing the following command:

echo 0 | sudo tee /sys/kernel/mm/ksm/run

This command will stop KSM from running, thereby mitigating the risk of the vulnerability, although it may lead to increased memory usage.

Conclusion

CVE-2015-2877 is a significant vulnerability affecting various Linux packages that utilize Kernel Samepage Merging. Organizations should prioritize updating their systems to patched versions or implement workarounds to mitigate potential risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain security in open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2015-2877 is a vulnerability in the Linux kernel that allows guest OS users to exploit a write-timing side channel, potentially compromising the ASLR protections of other guest OS instances.

The vulnerability affects several packages including linux, linux-aws, linux-azure, and others across Ubuntu LTS versions 14.04, 16.04, and 18.04.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check your application at Vulert Scanner without needing to sign up.

The CVSS score for CVE-2015-2877 is 3.3, indicating a low severity level.

If updating is not possible, consider disabling KSM as a temporary workaround to mitigate the risk associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback