CVE-2025-39877
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2025
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
mm/damon/sysfs: fix use-after-free in state_show()
In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: fix use-after-free in state_show() state_show() reads kdamond->damon_ctx without holding damon_sysfs_lock. This allows a use-after-free race: CPU 0 CPU 1 ----- ----- state_show() damon_sysfs_turn_damon_on() ctx = kdamond->damon_ctx; mutex_lock(&damon_sysfs_lock); damon_destroy_ctx(kdamond->damon_ctx); kdamond->damon_ctx = NULL; mutex_unlock(&damon_sysfs_lock); damon_is_running(ctx); /* ctx is freed */ mutex_lock(&ctx->kdamond_lock); /* UAF */ (The race can also occur with damon_sysfs_kdamonds_rm_dirs() and damon_sysfs_kdamond_release(), which free or replace the context under damon_sysfs_lock.) Fix by taking damon_sysfs_lock before dereferencing the context, mirroring the locking used in pid_show(). The bug has existed since state_show() first accessed kdamond->damon_ctx.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| a61ea561c87139992fe32afdee48a6f6b85d824a | affected | git | 3858c44341ad49dc7544b19cc9f9ecffaa7cc50e | Unavailable | None listed |
| a61ea561c87139992fe32afdee48a6f6b85d824a | affected | git | 60d7a3d2b985a395318faa1d88da6915fad11c19 | Unavailable | None listed |
| a61ea561c87139992fe32afdee48a6f6b85d824a | affected | git | 26d29b2ac87a2989071755f9828ebf839b560d4c | Unavailable | None listed |
| a61ea561c87139992fe32afdee48a6f6b85d824a | affected | git | 4e87f461d61959647464a94d11ae15c011be58ce | Unavailable | None listed |
| a61ea561c87139992fe32afdee48a6f6b85d824a | affected | git | 3260a3f0828e06f5f13fac69fb1999a6d60d9cff | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 5.18 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 5.18 | Unavailable | None listed |
| 6.1.153 | unaffected | semver | Unavailable | 6.1.* | None listed |
| 6.6.107 | unaffected | semver | Unavailable | 6.6.* | None listed |
| 6.12.48 | unaffected | semver | Unavailable | 6.12.* | None listed |
| 6.16.8 | unaffected | semver | Unavailable | 6.16.* | None listed |
| 6.17 | unaffected | original_commit_for_fix | Unavailable | * | None listed |