In the Linux kernel, the following vulnerability has been resolved:
mm/damon/sysfs-schemes: free old damonsysfsschemefilter->memcgpath on write
memcgpathstore() assigns a newly allocated memory buffer to filter->memcgpath, without deallocating the previously allocated and assigned memory buffer. As a result, users can leak kernel memory by continuously writing a data to memcgpath DAMOS sysfs file. Fix the leak by deallocating the previously set memory buffer.
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5d5b0047b0c0f304608f3824139f7bd34c48413",
"id": "CVE-2025-38258-03d71f7e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"123211078222684989940028715263960731998",
"249106845621833763556295439619706463321",
"278686046851369708194057619675091641529",
"204643612494895933978554968428269064557"
]
},
"target": {
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@490a43d07f1663d827e802720d30cbc0494e4f81",
"id": "CVE-2025-38258-4f63c10d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"123211078222684989940028715263960731998",
"249106845621833763556295439619706463321",
"278686046851369708194057619675091641529",
"204643612494895933978554968428269064557"
]
},
"target": {
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a158ac0538dd5695eeaa00aa0720d711f3e4ef1",
"id": "CVE-2025-38258-9e861865",
"digest": {
"threshold": 0.9,
"line_hashes": [
"123211078222684989940028715263960731998",
"249106845621833763556295439619706463321",
"278686046851369708194057619675091641529",
"204643612494895933978554968428269064557"
]
},
"target": {
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@490a43d07f1663d827e802720d30cbc0494e4f81",
"id": "CVE-2025-38258-cc86aea1",
"digest": {
"function_hash": "158673873015156412627152384586669352420",
"length": 396.0
},
"target": {
"function": "memcg_path_store",
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5d5b0047b0c0f304608f3824139f7bd34c48413",
"id": "CVE-2025-38258-d3ba68eb",
"digest": {
"function_hash": "158673873015156412627152384586669352420",
"length": 396.0
},
"target": {
"function": "memcg_path_store",
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a158ac0538dd5695eeaa00aa0720d711f3e4ef1",
"id": "CVE-2025-38258-dd5d75fe",
"digest": {
"function_hash": "158673873015156412627152384586669352420",
"length": 396.0
},
"target": {
"function": "memcg_path_store",
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f489fe6afb395dbc79840efa3c05440b760d883",
"id": "CVE-2025-38258-ed14dfe9",
"digest": {
"threshold": 0.9,
"line_hashes": [
"9671763989836035709099419893950869473",
"249106845621833763556295439619706463321",
"278686046851369708194057619675091641529",
"204643612494895933978554968428269064557"
]
},
"target": {
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f489fe6afb395dbc79840efa3c05440b760d883",
"id": "CVE-2025-38258-f005eb97",
"digest": {
"function_hash": "228483408860108416589569377797279107023",
"length": 405.0
},
"target": {
"function": "memcg_path_store",
"file": "mm/damon/sysfs-schemes.c"
},
"signature_type": "Function",
"signature_version": "v1"
}
]