CVE-2025-39877
publishedmm/damon/sysfs: fix use-after-free in state_show()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa61ea561c87139992fe32afdee48a6f6b85d824a to < 3858c44341ad49dc7544b19cc9f9ecffaa7cc50e · a61ea561c87139992fe32afdee48a6f6b85d824a to < 60d7a3d2b985a395318faa1d88da6915fad11c19 · a61ea561c87139992fe32afdee48a6f6b85d824a to < 26d29b2ac87a2989071755f9828ebf839b560d4c · a61ea561c87139992fe32afdee48a6f6b85d824a to < 4e87f461d61959647464a94d11ae15c011be58ce · a61ea561c87139992fe32afdee48a6f6b85d824a to < 3260a3f0828e06f5f13fac69fb1999a6d60d9cff · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.1.153 through 6.1.* (unaffected · semver) · 6.6.107 through 6.6.* (unaffected · semver) · 6.12.48 through 6.12.* (unaffected · semver) · 6.16.8 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2026-123 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1223 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1227 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.153-1~deb11u1 | DLA-4328-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el9uek | ELSA-2025-25754 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a61ea561c87139992fe32afdee48a6f6b85d824a to < 3858c44341ad49dc7544b19cc9f9ecffaa7cc50e (affected · git)a61ea561c87139992fe32afdee48a6f6b85d824a to < 60d7a3d2b985a395318faa1d88da6915fad11c19 (affected · git)a61ea561c87139992fe32afdee48a6f6b85d824a to < 26d29b2ac87a2989071755f9828ebf839b560d4c (affected · git)a61ea561c87139992fe32afdee48a6f6b85d824a to < 4e87f461d61959647464a94d11ae15c011be58ce (affected · git)a61ea561c87139992fe32afdee48a6f6b85d824a to < 3260a3f0828e06f5f13fac69fb1999a6d60d9cff (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.18 (affected)0 to < 5.18 (unaffected · semver)6.1.153 through 6.1.* (unaffected · semver)6.6.107 through 6.6.* (unaffected · semver)6.12.48 through 6.12.* (unaffected · semver)6.16.8 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/26d29b2ac87a2989071755f9828ebf839b560d4c
- https://git.kernel.org/stable/c/3260a3f0828e06f5f13fac69fb1999a6d60d9cff
- https://git.kernel.org/stable/c/3858c44341ad49dc7544b19cc9f9ecffaa7cc50e
- https://git.kernel.org/stable/c/4e87f461d61959647464a94d11ae15c011be58ce
- https://git.kernel.org/stable/c/60d7a3d2b985a395318faa1d88da6915fad11c19
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Provider assertions
3Linux · cna
mm/damon/sysfs: fix use-after-free in state_show()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 61fcd9af81cc6e61b14afd137f2a0f4b422d9634a1dd8f128b6c378532368a4e
- Ingested
- 07 Nov 2026, 23:35:22 UTC
- Source record
- Official CVE record