CVE-2026-46183: mm/damon/sysfs-schemes: protect path kfree() with damon_sysfs_lock
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/sysfs-schemes: protect path kfree() with damonsysfslock
damonsysfsquotgoal->path can be read and written by users, via DAMON sysfs 'path' file. It can also be indirectly read, for the parameters {on,off}line committing to DAMON. The reads for parameters committing are protected by damonsysfslock to avoid the sysfs files being destroyed while any of the parameters are being read. But the user-driven direct reads and writes are not protected by any lock, while the write is deallocating the path-pointing buffer. As a result, the readers could read the already freed buffer (user-after-free). Note that the user-reads don't race when the same open file is used by the writer, due to kernfs's open file locking. Nonetheless, doing the reads and writes with separate open files would be common. Fix it by protecting both the user-direct reads and writes with damonsysfslock.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch mm/damon/sysfs-schemes: protect path kfree() with damon_sysfs_lock - Configuration
Protect both user-direct reads and writes to the DAMON sysfs 'path' file with damon_sysfs_lock so the path buffer is not freed while being read; apply the mm/damon/sysfs-schemes change that protects the kfree() with damon_sysfs_lock.
Linux kernel (mm/damon/sysfs-schemes) protect path kfree() with damon_sysfs_lock = enabled
Event History
Frequently Asked Questions
What is the severity of CVE-2026-46183?
CVE-2026-46183 has a risk rating of 38, indicating a moderate level of severity.
What types of systems are affected by CVE-2026-46183?
CVE-2026-46183 affects the Linux kernel, specifically the DAMON sysfs 'path' file.
How do I fix CVE-2026-46183?
To fix CVE-2026-46183, ensure that you update to the patched version of the Linux kernel provided by your distribution.
What actions can users take related to CVE-2026-46183?
Users should avoid untrusted access to the DAMON sysfs 'path' file until the vulnerability is patched.
Is CVE-2026-46183 likely to be exploited in the wild?
While there is no specific evidence of active exploitation of CVE-2026-46183, its existence poses a risk to system integrity.