CVE-2021-47058 - CVE House
Back to Database
Status published High CVE-2021-47058

regmap: set debugfs_name to NULL after it is freed

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-47058

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
5b654b03007917f3f1015b2a5c288c1ea6ae8f65, 480c5e9c7e4c76c01d5f1f7b73832d7b77e6b427, c9698380b01aed3281160d3ab25749b57d6913b8, cffa4b2122f5f3e53cf3d529bbc74651f95856d5, 4.19.168, 5.4.90, 5.10.8, 5.11, 0, 4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4, 5.13

Timeline

Official Publish: February 29th, 2024
Last Modified: May 23rd, 2026
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.