CVE-2021-47058

regmap: set debugfs_name to NULL after it is freed

published February 29, 2024

CVSS
—
EPSS
0%
Percentile
14.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00246 · 14.9th percentile
Published
2024-02-29T22:37Z
EPSS history
Timeline
  • 29 FEB 22:37Z
    regmap: set debugfs_name to NULL after it is freed
    cvelistv5