mm/damon/core: initialize damo_filter->list from damos_new_filter()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/core: initialize damo_filter->list from damos_new_filter()
damos_new_filter() is not initializing the list field of newly allocated filter object. However, DAMON sysfs interface and DAMON_RECLAIM are not initializing it after calling damos_new_filter(). As a result, accessing uninitialized memory is possible. Actually, adding multiple DAMOS filters via DAMON sysfs interface caused NULL pointer dereferencing. Initialize the field just after the allocation from damos_new_filter().
From the CVE record · Linux
The Linux kernel does not initialize a list field in newly allocated DAMON filters, allowing access to uninitialized memory. Adding multiple DAMOS filters through the DAMON sysfs interface has caused a NULL pointer dereference; the input does not specify authentication requirements or other access conditions.
Engineers running the Linux kernel with DAMON sysfs or DAMON_RECLAIM should check their installations; affected versions are not specified.