Vulnerability in Linux

CVE-2025-38258

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.002, 6.4th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 7ee161f18b5da5170b5d6a51aace49d312099128, 6.3, 0
  • Linux Kernel — versions 6.16

Weakness classification (CWE)

References