{"id":"CVE-2021-47058","aliases":["CVE-2021-47058"],"related":[],"kind":"vulnerability","state":"published","title":"regmap: set debugfs_name to NULL after it is freed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nregmap: set debugfs_name to NULL after it is freed\n\nThere is a upstream commit cffa4b2122f5(\"regmap:debugfs:\nFix a memory leak when calling regmap_attach_dev\") that\nadds a if condition when create name for debugfs_name.\nWith below function invoking logical, debugfs_name is\nfreed in regmap_debugfs_exit(), but it is not created again\nbecause of the if condition introduced by above commit.\nregmap_reinit_cache()\n\tregmap_debugfs_exit()\n\t...\n\tregmap_debugfs_init()\nSo, set debugfs_name to NULL after it is freed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nregmap: set debugfs_name to NULL after it is freed\n\nThere is a upstream commit cffa4b2122f5(\"regmap:debugfs:\nFix a memory leak when calling regmap_attach_dev\") that\nadds a if condition when create name for debugfs_name.\nWith below function invoking logical, debugfs_name is\nfreed in regmap_debugfs_exit(), but it is not created again\nbecause of the if condition introduced by above commit.\nregmap_reinit_cache()\n\tregmap_debugfs_exit()\n\t...\n\tregmap_debugfs_init()\nSo, set debugfs_name to NULL after it is freed.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: regmap: establece debugfs_name en NULL después de liberarlo. Hay una confirmación ascendente cffa4b2122f5(\"regmap:debugfs: corrige una pérdida de memoria al llamar a regmap_attach_dev\") que agrega una condición if al crear nombre para debugfs_name. Con la siguiente función que invoca lógica, debugfs_name se libera en regmap_debugfs_exit(), pero no se vuelve a crear debido a la condición if introducida por la confirmación anterior. regmap_reinit_cache() regmap_debugfs_exit() ... regmap_debugfs_init() Entonces, establezca debugfs_name en NULL después de liberarlo.","source":"nvd"}],"published":"2024-02-29T22:37:33.232Z","modified":"2026-06-17T04:16:20.450Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"5b654b03007917f3f1015b2a5c288c1ea6ae8f65","fixed":"2dc1554d5f0fdaf47cc5bea442b84b9226fea867","status":"affected"},{"type":"git","introduced":"480c5e9c7e4c76c01d5f1f7b73832d7b77e6b427","fixed":"d8897f7b2283a500666c85ef06e820df38ed7b52","status":"affected"},{"type":"git","introduced":"c9698380b01aed3281160d3ab25749b57d6913b8","fixed":"eb949f891226c012138ffd9df90d1e509f428ae6","status":"affected"},{"type":"git","introduced":"cffa4b2122f5f3e53cf3d529bbc74651f95856d5","fixed":"c764e375ae647832de1ee73d43a4bb3ef8a8f43d","status":"affected"},{"type":"git","introduced":"cffa4b2122f5f3e53cf3d529bbc74651f95856d5","fixed":"b9e569ae1da3a113b3acee8703c94777fd20938a","status":"affected"},{"type":"git","introduced":"cffa4b2122f5f3e53cf3d529bbc74651f95856d5","fixed":"e41a962f82e7afb5b1ee644f48ad0b3aee656268","status":"affected"},{"type":"semver","introduced":"4.19.168","fixed":"4.19.191","status":"affected"},{"type":"semver","introduced":"5.4.90","fixed":"5.4.119","status":"affected"},{"type":"semver","introduced":"5.10.8","fixed":"5.10.37","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"4.19.191","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.119","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.37","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.11.21","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.4","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19.168","fixed":"4.19.191"},{"status":"affected","introduced":"5.4.90","fixed":"5.4.119"},{"status":"affected","introduced":"5.10.8","fixed":"5.10.37"},{"status":"affected","introduced":"5.11","fixed":"5.11.21"},{"status":"affected","introduced":"5.12","fixed":"5.12.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2dc1554d5f0fdaf47cc5bea442b84b9226fea867","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8897f7b2283a500666c85ef06e820df38ed7b52","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb949f891226c012138ffd9df90d1e509f428ae6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c764e375ae647832de1ee73d43a4bb3ef8a8f43d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9e569ae1da3a113b3acee8703c94777fd20938a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e41a962f82e7afb5b1ee644f48ad0b3aee656268","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-01T15:52:46.074Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47058","url":"https://www.cve.org/CVERecord?id=CVE-2021-47058","licence":"CVE Terms of Use","modified":"2026-05-23T15:19:11.297Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47058","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47058","licence":"Public domain","modified":"2026-06-17T04:16:20.450Z"}],"updatedAt":"2026-11-25T22:58:08.640Z","epss":{"score":0.00246,"percentile":0.16929,"date":"2026-12-01T12:00:22.000Z"}}