CVE-2025-38258

MEDIUM

Linux Kernel 6.3-6.6.95, 6.7-6.12.35, 6.13-6.15.4 - Use-After-Free in DAMON memcg_path_store

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0014
EPSS Percentile 3.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (15)
linux/Kernel 6.13.0 - 6.15.5linux
linux/Kernel 6.3.0 - 6.6.96linux
linux/Kernel 6.7.0 - 6.12.36linux
Linux/Linux < 6.3
Linux/Linux 6.12.36 - 6.12.*
Linux/Linux 6.15.5 - 6.15.*
Linux/Linux 6.16
Linux/Linux 6.3
Linux/Linux 6.6.96 - 6.6.*
Linux/Linux 7ee161f18b5da5170b5d6a51aace49d312099128 - 490a43d07f1663d827e802720d30cbc0494e4f81
... and 5 more
Published Jul 09, 2025
Tracked Since Feb 18, 2026