CVE-2026-31457
publishedmm/damon/sysfs: check contexts->nr in repeat_call_fn
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd809a7c64ba8229286b333c0cba03b1cdfb50238 to < 3527e9fdc38570cea0f6ddb7a2c9303d4044b217 · d809a7c64ba8229286b333c0cba03b1cdfb50238 to < 652cd0641a763dd0e846b0d12814977fadb2b7d8 · d809a7c64ba8229286b333c0cba03b1cdfb50238 to < 6557004a8b59c7701e695f02be03c7e20ed1cc15 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.17 (affected) · 0 to < 6.17 (unaffected · semver) · 6.18.21 through 6.18.* (unaffected · semver) · 6.19.11 through 6.19.* (unaffected · semver) · 7.0 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 | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1746 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-1746 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-1746 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-1746 |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: check contexts->nr in repeat_call_fn damon_sysfs_repeat_call_fn() calls damon_sysfs_upd_tuned_intervals(), damon_sysfs_upd_schemes_stats(), and damon_sysfs_upd_schemes_effective_quotas() without checking contexts->nr. If nr_contexts is set to 0 via sysfs while DAMON is running, these functions dereference contexts_arr[0] and cause a NULL pointer dereference. Add the missing check. For example, the issue can be reproduced using DAMON sysfs interface and DAMON user-space tool (damo) [1] like below. $ sudo damo start --refresh_interval 1s $ echo 0 | sudo tee \ /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts
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 | d809a7c64ba8229286b333c0cba03b1cdfb50238 to < 3527e9fdc38570cea0f6ddb7a2c9303d4044b217 (affected · git)d809a7c64ba8229286b333c0cba03b1cdfb50238 to < 652cd0641a763dd0e846b0d12814977fadb2b7d8 (affected · git)d809a7c64ba8229286b333c0cba03b1cdfb50238 to < 6557004a8b59c7701e695f02be03c7e20ed1cc15 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.17 (affected)0 to < 6.17 (unaffected · semver)6.18.21 through 6.18.* (unaffected · semver)6.19.11 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
mm/damon/sysfs: check contexts->nr in repeat_call_fn
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ba5dcf09078439a33abc2edd362723a2c8a17c5a7f2d9742c506087741357402
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record