First published: Thu Feb 29 2024(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=4.19.168<4.19.191 | |
Linux Kernel | >=5.4.90<5.4.119 | |
Linux Kernel | >=5.10.8<5.10.37 | |
Linux Kernel | >=5.11<5.11.21 | |
Linux Kernel | >=5.12<5.12.4 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-47058 has a severity rating that may vary depending on the specific deployment and context.
To fix CVE-2021-47058, you should update to a patched version of the Linux kernel that addresses this vulnerability.
CVE-2021-47058 affects various versions of the Linux kernel including 4.19.x, 5.4.x, 5.10.x, 5.11.x, and 5.12.x.
CVE-2021-47058 can lead to memory leaks and potential instability in the affected Linux kernel versions.
As of now, there are no publicly known exploits specifically targeting CVE-2021-47058.