Double-Free Vulnerability in regmap Package

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002068: regmap: Fix possible double-free in regcache_rbtree_exit(). Affects Kernel versions >= 3f4ff561bc88b074d5e868dde4012d89cbb06c87, < 36e911a16b377bde0ad91a8c679069d0d310b1a6. 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 regmap package is a part of the Linux Kernel ecosystem and is responsible for managing register maps for various hardware devices. It provides an abstraction layer for accessing and manipulating device registers. The vulnerability in question, identified as GSD-2021-1002068, affects the regmap package and can lead to a double-free condition in the regcache_rbtree_exit() function.

Vulnerability Detail

The double-free vulnerability in regcache_rbtree_exit() can be exploited by an attacker to potentially execute arbitrary code or cause a denial-of-service (DoS) condition. The vulnerability arises due to improper handling of memory deallocation, which can result in freeing the same memory region multiple times. This can lead to memory corruption and subsequent unpredictable behavior. 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 →

Conclusion

The double-free vulnerability in the regmap package of the Linux Kernel can potentially lead to arbitrary code execution or a denial-of-service condition. It is crucial to update the Linux Kernel to the fixed version or any subsequent version that includes the fix. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Regmap is a component of the Linux Kernel that manages register maps for hardware devices. It provides an abstraction layer for accessing and manipulating device registers, making it easier for drivers to interact with hardware.

A double-free vulnerability occurs when a program attempts to free the same memory region more than once. This can lead to memory corruption and unpredictable behavior, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.

The double-free vulnerability in regmap can be exploited by an attacker to potentially execute arbitrary code or cause a DoS condition. By triggering the improper memory deallocation, an attacker can manipulate the memory state and exploit the resulting memory corruption to their advantage.

No, the impact and attack plausibility of this vulnerability have not been proven yet. However, it is still important to apply the fix to ensure the security and stability of the system.

You can find more information about this vulnerability, including its technical details and the fix, in the vulnerability report available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002068.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