In the Linux kernel, the following vulnerability has been resolved:
mm/damon/dbgfs: fix 'struct pid' leaks in 'dbgfs_target_ids_write()'
DAMON debugfs interface increases the reference counts of 'struct pid's
for targets from the 'target_ids' file write callback
('dbgfs_target_ids_write()'), but decreases the counts only in DAMON
monitoring termination callback ('dbgfs_before_terminate()').
Therefore, when 'target_ids' file is repeatedly written without DAMON
monitoring start/termination, the reference count is not decreased and
therefore memory for the 'struct pid' cannot be freed. This commit
fixes this issue by decreasing the reference counts when 'target_ids' is
written.
Metrics
Affected Vendors & Products
References
History
Mon, 04 Nov 2024 12:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
MITRE
Status: PUBLISHED
Assigner: Linux
Published: 2024-02-27T09:44:03.421Z
Updated: 2024-12-19T07:32:09.723Z
Reserved: 2024-02-25T13:45:52.721Z
Link: CVE-2021-46937
Vulnrichment
Updated: 2024-08-04T05:17:43.028Z
NVD
Status : Modified
Published: 2024-02-27T10:15:08.067
Modified: 2024-11-21T06:34:58.507
Link: CVE-2021-46937
Redhat