Vulnerability in mm/mempolicy package: mpol_new leak in shared_policy_replace

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002177: mm/mempolicy: fix mpol_new leak in shared_policy_replace. Affects Kernel versions >= 42288fe366c4f1ce7522bc9f27d0bc2a81c55264, < 25f506273b6ae806fd46bfcb6fdaa5b9ec81a05b. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The mm/mempolicy package is a component of the Linux Kernel that handles memory policies for processes. It provides a mechanism for controlling the NUMA (Non-Uniform Memory Access) behavior of processes, allowing them to be bound to specific memory nodes. The shared_policy_replace function in this package is responsible for replacing the shared memory policy of a process. However, a vulnerability has been discovered in this function that can lead to a memory leak.

Vulnerability Detail

The vulnerability in the mm/mempolicy package arises from a memory leak in the shared_policy_replace function. When replacing the shared memory policy of a process, the function fails to release the memory allocated for the new policy, resulting in a memory leak. This can lead to resource exhaustion and potential denial-of-service attacks. The vulnerability was introduced in version v3.8 of the Linux Kernel and has been fixed in version v5.4.189.

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 mm/mempolicy package in the Linux Kernel is vulnerable to a memory leak in the shared_policy_replace function. This can lead to resource exhaustion and potential denial-of-service attacks. It is recommended to update the Linux Kernel to version v5.4.189 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 mm/mempolicy package is a component of the Linux Kernel that handles memory policies for processes, allowing control over NUMA behavior.

The shared_policy_replace function is responsible for replacing the shared memory policy of a process in the mm/mempolicy package.

A memory leak occurs when memory is allocated but not properly released, leading to a gradual depletion of available memory resources.

The vulnerability can result in resource exhaustion and potential denial-of-service attacks due to the memory leak.

To fix this vulnerability, update the Linux Kernel to version v5.4.189 or later.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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