Skip to main content
← All vulnerabilities
CVE-2021-47058

regmap: set debugfs_name to NULL after it is freed

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.19.191, 5.4.119, 5.10.37
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 4.19.168 · fixed in 4.19.191; From 5.4.90 · fixed in 5.4.119; From 5.10.8 · fixed in 5.10.37

  • Linux Linux

    5.11

References 6

git.kernel.org