lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 29 Feb 2024 23:37:55 +0100
From: Greg Kroah-Hartman <>
Cc: Greg Kroah-Hartman <>
Subject: CVE-2021-47058: regmap: set debugfs_name to NULL after it is freed


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.
So, set debugfs_name to NULL after it is freed.

The Linux kernel CVE team has assigned CVE-2021-47058 to this issue.

Affected and fixed versions

	Issue introduced in 4.19.168 with commit 1b8dd2d64ea9 and fixed in 4.19.191 with commit 2dc1554d5f0f
	Issue introduced in 5.4.90 with commit 6f484096196b and fixed in 5.4.119 with commit d8897f7b2283
	Issue introduced in 5.10.8 with commit 75e5e51acf59 and fixed in 5.10.37 with commit eb949f891226
	Issue introduced in 5.11 with commit cffa4b2122f5 and fixed in 5.11.21 with commit c764e375ae64
	Issue introduced in 5.11 with commit cffa4b2122f5 and fixed in 5.12.4 with commit b9e569ae1da3
	Issue introduced in 5.11 with commit cffa4b2122f5 and fixed in 5.13 with commit e41a962f82e7

Please see or a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
will be updated if fixes are backported, please check that for the most
up to date information about this issue.

Affected files

The file(s) affected by this issue are:


The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:

Powered by blists - more mailing lists