Vulnerability in Kernel package: mm/sparsemem

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1000995: mm/sparsemem: fix 'mem_section' will never be NULL gcc 12 warning. Affects Kernel versions >= 3e347261a80b57df792ab9464b5f0ed59add53a8, < 84e2a3bbedf78c5d8fe4fa8dccf34d2b70e7ddd0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel package is a critical component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. The mm/sparsemem module within the Kernel package handles memory management, specifically dealing with sparse memory sections. Sparse memory sections are non-contiguous memory regions that are used to optimize memory allocation and utilization. However, a vulnerability has been identified in the mm/sparsemem module that can lead to potential security risks.

Vulnerability Detail

The vulnerability in the mm/sparsemem module is related to a warning generated by the GCC 12 compiler. The warning indicates that the 'mem_section' variable will never be NULL. This warning can be misleading and may result in incorrect assumptions or code optimizations. Exploiting this vulnerability could potentially lead to memory corruption, privilege escalation, or other security breaches. The vulnerability was introduced in version v2.6.14 of the Linux Kernel and has been fixed in version v5.17.3.

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 specific workaround mentioned for this vulnerability. The recommended approach is to update the Kernel package to the fixed version.

Conclusion

The vulnerability in the Kernel package's mm/sparsemem module can pose significant security risks, including memory corruption and privilege escalation. It is crucial to update the Kernel package to the fixed version (v5.17.3 or later) to mitigate these risks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially be exploited to perform memory corruption, privilege escalation, or other security breaches.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix to mitigate any potential risks.

The specific details of remote exploitation are not mentioned in the vulnerability report. However, as a general best practice, it is recommended to apply security patches and updates promptly to minimize the risk of remote exploitation.

The vulnerability does not mention any specific prerequisites for exploitation. However, it is important to note that successful exploitation may require access to the targeted system or the ability to execute malicious code within the system's context.

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