In the Linux kernel, the following vulnerability has been resolved: regmap: set debugfsname to NULL after it is freed There is a upstream commit cffa4b2122f5("regmap:debugfs: Fix a memory leak when calling regmapattachdev") that adds a if condition when create name for debugfsname. With below function invoking logical, debugfsname is freed in regmapdebugfsexit(), but it is not created again because of the if condition introduced by above commit. regmapreinitcache() regmapdebugfsexit() ... regmapdebugfsinit() So, set debugfsname to NULL after it is freed.