Description
In the Linux kernel, the following vulnerability has been resolved:

samples/damon/mtier: error out for zero quota goal target values

Patch series "mm/damon: avoid division by zero from damos_quota_score()".

DAMON_SAMPLE_MTIER and DAMON_LRU_SORT allow the user to trigger division
by zero in damos_quota_score(). Avoid it by adding parameters validation
checks.


This patch (of 2):

damos_quota_score() can trigger division by zero if the target_value is
zero. DAMON_SAMPLE_MTIER lets users set the target_value via
node0_mem_{used,free}_bp parameters. It doesn't guard zero value case,
though. As a result, users can trigger division by zero. Fix the issue
by returning an error when the user tries to start DAMON with zero
node0_mem_{used,free}_bp parameter values.

DAMON_SAMPLE_MTIER is just a sample module, but the consequence is quite
bad. Also the zero node0_mem_free_bp parameter might look like a
reasonable setup to some users. Hence, the issue might really happen in
the real world.

One reliable way to reproduce the issue is like below:

# cd /sys/module/damon_sample_mtier/parameters
# echo 4096 > node0_start_addr
# echo 8192 > node0_end_addr
# echo 8192 > node1_start_addr
# echo 81920 > node1_end_addr
# echo 0 > node0_mem_free_bp
# echo Y > enabled
# dmesg -w
[...]
[18792.235916] Oops: divide error: 0000 [#1] SMP NOPTI
[...]
[18792.242787] RIP: 0010:damos_quota_score+0x6f/0x480
[...]

This issue was discovered [1] by Sashiko.
Published: 2026-08-22
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in the Linux kernel’s DAMON Sample MTIER module, where the function damos_quota_score performs a division with a target value supplied by the user through sysfs parameters. If the target value is zero, a division by zero occurs, resulting in a kernel oops that crashes the operating system. The flaw is a classic division‑by‑zero error (CWE‑369) and can lead to loss of availability and potential data loss if the system is forced to reboot. It does not provide remote code execution or privilege escalation by itself, but any local user with permission to modify the module parameters can trigger the crash.

Affected Systems

The issue affects Linux kernel builds that ship the damon_sample_mtier module, notably the DAMON_SAMPLE_MTIER and DAMON_LRU_SORT variants. Specific version information is not provided; any kernel configuration enabling the damon_sample_mtier module is potentially vulnerable unless the parameters are protected against zero values.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited or unobserved exploitation activity. The CVSS score is unspecified, but the attack vector is local: it requires a user with permissions to write to /sys/module/damon_sample_mtier/parameters. Once that privilege is obtained, the attacker can set a zero value for node0_mem_{used,free}_bp and trigger an immediate kernel crash. Because the impact is a DoS and the exploitation path is straightforward for privileged users, the overall risk is moderate to high for affected systems that use this module without additional safeguards.

Generated by OpenCVE AI on August 22, 2026 at 17:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a revision that includes the damos_quota_score division‑by‑zero fix.
  • If a kernel upgrade cannot be performed, unload or disable the damon_sample_mtier module to prevent the error path.
  • Before enabling DAMON, set node0_mem_free_bp and node0_mem_used_bp to values greater than zero to ensure proper operation.
  • Monitor kernel logs for oops events as an early warning of accidental zero values.

Generated by OpenCVE AI on August 22, 2026 at 17:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-369

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: samples/damon/mtier: error out for zero quota goal target values Patch series "mm/damon: avoid division by zero from damos_quota_score()". DAMON_SAMPLE_MTIER and DAMON_LRU_SORT allow the user to trigger division by zero in damos_quota_score(). Avoid it by adding parameters validation checks. This patch (of 2): damos_quota_score() can trigger division by zero if the target_value is zero. DAMON_SAMPLE_MTIER lets users set the target_value via node0_mem_{used,free}_bp parameters. It doesn't guard zero value case, though. As a result, users can trigger division by zero. Fix the issue by returning an error when the user tries to start DAMON with zero node0_mem_{used,free}_bp parameter values. DAMON_SAMPLE_MTIER is just a sample module, but the consequence is quite bad. Also the zero node0_mem_free_bp parameter might look like a reasonable setup to some users. Hence, the issue might really happen in the real world. One reliable way to reproduce the issue is like below: # cd /sys/module/damon_sample_mtier/parameters # echo 4096 > node0_start_addr # echo 8192 > node0_end_addr # echo 8192 > node1_start_addr # echo 81920 > node1_end_addr # echo 0 > node0_mem_free_bp # echo Y > enabled # dmesg -w [...] [18792.235916] Oops: divide error: 0000 [#1] SMP NOPTI [...] [18792.242787] RIP: 0010:damos_quota_score+0x6f/0x480 [...] This issue was discovered [1] by Sashiko.
Title samples/damon/mtier: error out for zero quota goal target values
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-22T15:32:21.140Z

Reserved: 2026-08-15T05:44:03.922Z

Link: CVE-2026-74643

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:37.617

Modified: 2026-08-22T16:16:37.617

Link: CVE-2026-74643

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T17:15:04Z

Weaknesses