CVE & CISA-KEV Catalog

CVE-2021-46937

MEDIUM
5.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.15.15-1CVE-2021-46937
Fixed in:5.15.15-1CVE-2021-46937
Fixed in:5.15.15-1CVE-2021-46937

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

0.22%probability of exploitation in 30 days
13thpercentile

Low risk: more likely to be exploited than 13% of all known CVEs.

References

Related Vulnerabilities

Other CWE-668 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-39952Critical9.8100%-Fix
CVE-2017-16597Critical9.857%--
CVE-2017-16603High8.854%--
CVE-2024-25153Critical9.842%-Fix
CVE-2017-0215Medium5.336%--
CVE-2022-25236Critical9.834%-Fix
Embed a live status badge for CVE-2021-46937
CVE-2021-46937 severity badge

Markdown

[![CVE-2021-46937](https://tridentstack.com/cve/badge/CVE-2021-46937.svg)](https://tridentstack.com/cve/CVE-2021-46937)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-46937"><img src="https://tridentstack.com/cve/badge/CVE-2021-46937.svg" alt="CVE-2021-46937"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.