{"id":"CVE-2021-46937","published":"2024-02-27T09:44:03Z","modified":"2026-05-11T13:44:47Z","title":"mm/damon/dbgfs: fix 'struct pid' leaks in 'dbgfs_target_ids_write()'","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/dbgfs: fix 'struct pid' leaks in 'dbgfs_target_ids_write()'\n\nDAMON debugfs interface increases the reference counts of 'struct pid's\nfor targets from the 'target_ids' file write callback\n('dbgfs_target_ids_write()'), but decreases the counts only in DAMON\nmonitoring termination callback ('dbgfs_before_terminate()').\n\nTherefore, when 'target_ids' file is repeatedly written without DAMON\nmonitoring start/termination, the reference count is not decreased and\ntherefore memory for the 'struct pid' cannot be freed.  This commit\nfixes this issue by decreasing the reference counts when 'target_ids' is\nwritten.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00222,"percentile":0.07554,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ffe4a1ba1a82c416a6b3a09d46594f6a885ae141","tags":[]},{"url":"https://git.kernel.org/stable/c/ebb3f994dd92f8fb4d70c7541091216c1e10cb71","tags":[]}],"priority":{"score":1.5,"factors":[{"name":"EPSS percentile","points":1.51}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4bc05954d0076655cfaf6f0135585bdc20cd6b11, < ffe4a1ba1a82c416a6b3a09d46594f6a885ae141",">= 4bc05954d0076655cfaf6f0135585bdc20cd6b11, < ebb3f994dd92f8fb4d70c7541091216c1e10cb71"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-27T15:48:08.860920Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33585","exploited":false,"provenance":"source"}}