NULL page->mapping dereference in mm/secretmem

Kernel Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001880: mm/secretmem: fix NULL page->mapping dereference in page_is_secretmem(). Affects Kernel versions >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < b77ba1e02345bafd703f0d407bdbd88c3be1f767. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux Kernel is a widely used open-source operating system that serves as the foundation for various Linux distributions. It provides essential functionality and manages system resources. One of its components is the mm/secretmem module, which is responsible for handling secret memory pages. Secret memory pages are used to store sensitive data that should not be paged out to disk. These pages are typically used by security-sensitive applications or modules. However, a vulnerability has been discovered in the mm/secretmem module that can lead to a NULL page->mapping dereference.

Vulnerability Detail

The vulnerability in the mm/secretmem module arises from a NULL page->mapping dereference in the page_is_secretmem() function. This function is used to determine if a given page is a secret memory page. However, due to a coding error, it does not properly handle the case where the page->mapping pointer is NULL. This can result in a NULL pointer dereference, leading to a kernel crash or potential privilege escalation. An attacker with local access to the system may be able to exploit this vulnerability to gain elevated privileges or disrupt the system's stability.

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

There is no known workaround for this vulnerability. It is necessary to apply the provided fix by updating the Linux Kernel to a version that includes the patch.

Conclusion

The NULL page->mapping dereference vulnerability in the mm/secretmem module of the Linux Kernel can potentially lead to a kernel crash or privilege escalation. It is crucial to update the Linux Kernel to version v5.14.15 or later to mitigate this vulnerability. No known workarounds exist, and it is recommended to apply the provided fix as soon as possible. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a NULL pointer dereference, resulting in a kernel crash or potential privilege escalation. An attacker with local access to the system may be able to exploit this vulnerability to gain elevated privileges or disrupt the system's stability.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

No, this vulnerability requires local access to the system to be exploited.

There are no known instances of this vulnerability being exploited in the wild at this time.

The vulnerability was discovered by an automated security analysis tool.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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