Vulnerability in Kernel: mm: Consider __GFP_NOWARN flag for oversized kvmalloc() calls

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000776: mm: Consider __GFP_NOWARN flag for oversized kvmalloc() calls. Affects Kernel versions >= 7661809d493b426e979f39ab512e3adf41fbcc69, < 261eff11ade981b23dbbfc73c0ecae3966352974. 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 is a critical component of the Linux operating system that provides core functionality and acts as an interface between hardware and software. It manages system resources, including memory, processes, and device drivers. The mm subsystem within the Kernel is responsible for memory management. One of its functions is allocating memory using the kvmalloc() call. However, oversized kvmalloc() calls can lead to potential security vulnerabilities.

Vulnerability Detail

The vulnerability arises from the lack of consideration for the __GFP_NOWARN flag in oversized kvmalloc() calls. This flag suppresses allocation warnings, which can be useful in scenarios where oversized allocations are expected. Without this flag, warnings are generated, potentially leading to unnecessary noise and confusion. While the impact and attack plausibility of this vulnerability have not been proven, it is essential to address it to maintain code clarity and minimize false positives.

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.

Conclusion

In conclusion, the vulnerability in Kernel's mm subsystem regarding oversized kvmalloc() calls can lead to unnecessary warnings and confusion in the codebase. It is recommended to address this vulnerability by adding the __GFP_NOWARN flag to appropriate calls. The fix has been implemented in Linux Kernel version v5.15.27. 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. However, it can lead to unnecessary warnings and confusion in the codebase.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

The __GFP_NOWARN flag suppresses allocation warnings in oversized kvmalloc() calls, reducing noise and improving code readability.

This vulnerability was fixed in Linux Kernel version v5.15.27 by commit 261eff11ade981b23dbbfc73c0ecae3966352974.

You can find more information about this vulnerability in the GSD-2022-1000776 entry on the Cloud Security Alliance's GSD database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000776.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