CVE-2025-38258

MEDIUM EPSS 3.4%
Published Jul 9, 202511mo ago · Modified Jun 17, 20261w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Jul 9, 2025 11mo ago
Last Modified Jun 17, 2026 1w ago

Description

In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write memcg_path_store() assigns a newly allocated memory buffer to filter->memcg_path, without deallocating the previously allocated and assigned memory buffer. As a result, users can leak kernel memory by continuously writing a data to memcg_path DAMOS sysfs file. Fix the leak by deallocating the previously set memory buffer.

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
3.4% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-401

Affected Products 6

VendorProductVersionRange
linuxlinux_kernel*≥6.3  –  <6.6.96
linuxlinux_kernel*≥6.7  –  <6.12.36
linuxlinux_kernel*≥6.13  –  <6.15.5
linuxlinux_kernel6.16any
linuxlinux_kernel6.16any
linuxlinux_kernel6.16any

References 4

  • git.kernel.org https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413
    Patch