SecurityContext

CVE-2024-57886: Linux Kernel - Memory Leak

  • Cve: CVE-2024-57886
  • Name: Linux Kernel - Memory Leak
  • Description: In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: fix new damon_target objects leaks on damon_commit_targets() Patch series "mm/damon/core: fix memory leaks and ignored inputs from damon_commit_ctx()". Due to two bugs in damon_commit_targets() and damon_commit_schemes(), which are called from damon_commit_ctx(), some user inputs can be ignored, and some mmeory objects can be leaked. Fix those. Note that only DAMON sysfs interface users are affected. Other DAMON core API user modules that more focused more on simple and dedicated production usages, including DAMON_RECLAIM and DAMON_LRU_SORT are not using the buggy function in the way, so not affected. This patch (of 2): When new DAMON targets are added via damon_commit_targets(), the newly created targets are not deallocated when updating the internal data (damon_commit_target()) is failed. Worse yet, even if the setup is successfully done, the new target is not linked to the context. Hence, the new targets are always leaked regardless of the internal data setup failure. Fix the leaks.
  • Impact: Memory leaks can lead to resource exhaustion, potentially causing system instability or denial of service.
  • Remediation: Apply the latest kernel updates that fix the damon_commit_targets() and damon_commit_schemes() functions.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00177
  • Epss percentile: 0.07207
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-01-15T13:15:13Z
  • Age in days: 678
  • Modified at: 2026-06-17T08:14:08Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-57886
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-401Missing Release of Memory after Effective Lifetime

References

UrlSourceTags
https://git.kernel.org/stable/c/3647932d0b3e609c762c55e8f9fe10a09776e0a7nvdPatch
https://git.kernel.org/stable/c/8debfc5b1aa569d3d2ac836af2553da037611c61nvdPatch

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.13 rc1; = 6.13 rc2; = 6.13 rc3; = 6.13 rc4; = 6.13 rc5; >= 6.11, < 6.12.9nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports