CVE-2021-47058
Last modified
CVE-2021-47058 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: regmap: set debugfs_name to NULL after it is freed There is a upstream commit cffa4b2122f5("regmap:debugfs: Fix a memory leak when calling regmap_attach_dev") that adds a if condition when create name for debugfs_name. With below function invoking logical, debugfs_name is freed in regmap_debugfs_exit(), but it is not created again because of the if condition introduced by above commit. regmap_reinit_cache() regmap_debugfs_exit() ... regmap_debugfs_init() So, set debugfs_name to NULL after it is freed.. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: regmap: set debugfs_name to NULL after it is freed There is a upstream commit cffa4b2122f5("regmap:debugfs: Fix a memory leak when calling regmap_attach_dev") that adds a if condition when create name for debugfs_name. With below function invoking logical, debugfs_name is freed in regmap_debugfs_exit(), but it is not created again because of the if condition introduced by above commit. regmap_reinit_cache() regmap_debugfs_exit() ... regmap_debugfs_init() So, set debugfs_name to NULL after it is freed.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 4.19.168, < 4.19.191 |
| Linux | Linux Kernel | >= 5.4.90, < 5.4.119 |
| Linux | Linux Kernel | >= 5.10.8, < 5.10.37 |
| Linux | Linux Kernel | >= 5.11, < 5.11.21 |
| Linux | Linux Kernel | >= 5.12, < 5.12.4 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47058?
How severe is CVE-2021-47058?
How do I fix CVE-2021-47058?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47052In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47053In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47054In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47055In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47056In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47057In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47059In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47060In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47061In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47062In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47063In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47064In the Linux kernel, the following vulnerability has been re…5.3
Are you affected by CVE-2021-47058?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
