Vulnerability in Kernel package: mm/sparsemem

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001667: mm/sparsemem: fix 'mem_section' will never be NULL gcc 12 warning. Affects Kernel versions >= 3e347261a80b57df792ab9464b5f0ed59add53a8, < 429f413ed83f6b9f81e8c4362bcc19e817a4d208. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel package is a crucial component of the Linux operating system, responsible for managing system resources and providing an interface 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 used to efficiently manage memory in systems with large amounts of physical memory. However, a vulnerability has been discovered in the mm/sparsemem module that can lead to potential security issues.

Vulnerability Detail

The vulnerability in the mm/sparsemem module is related to a warning generated by the GCC 12 compiler. The warning states that the 'mem_section' variable will never be NULL. This warning indicates a potential logic flaw in the code, as it suggests that the 'mem_section' variable is always expected to have a valid value. If an attacker can exploit this vulnerability, they may be able to manipulate the 'mem_section' variable in a way that leads to memory corruption or other security breaches. The impact and attack plausibility of this vulnerability have not been proven yet.

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

No specific workaround has been provided for this vulnerability.

Conclusion

In conclusion, the mm/sparsemem module in the Kernel package has a vulnerability that can potentially lead to memory corruption or other security breaches. It is recommended to update the Kernel package to the fixed version (v5.15.34 or later) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven, but it has the potential to lead to memory corruption 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 to the playground, and it will analyze the dependencies and alert you if any open-source vulnerabilities, including this one, are found.

No known exploit for this vulnerability has been reported at this time.

The recommended mitigation is to update the Kernel package to the fixed version (v5.15.34 or later).

You can find more information about this vulnerability in the GSD-2022-1001667 JSON file available in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001667.json).

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