CVE-2021-47058

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedFeb 29, 2024
First seenFeb 29, 2024

How to fix

Update
  • linux linux_kernel4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel4.19.168 ≤ v < 4.19.191, 5.4.90 ≤ v < 5.4.119, 5.10.8 ≤ v < 5.10.37, 5.11 ≤ v < 5.11.21, 5.12 ≤ v < 5.12.44.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.