CVE-2026-74643

Source
https://cve.org/CVERecord?id=CVE-2026-74643
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74643.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74643
Downstream
Published
2026-08-22T15:32:21.140Z
Modified
2026-08-24T11:47:20.368296216Z
Summary
samples/damon/mtier: error out for zero quota goal target values
Details

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 damosquotascore()".

DAMONSAMPLEMTIER and DAMONLRUSORT allow the user to trigger division by zero in damosquotascore(). Avoid it by adding parameters validation checks.

This patch (of 2):

damosquotascore() can trigger division by zero if the targetvalue is zero. DAMONSAMPLEMTIER lets users set the targetvalue via node0mem{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 node0mem_{used,free}_bp parameter values.

DAMONSAMPLEMTIER is just a sample module, but the consequence is quite bad. Also the zero node0memfree_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74643.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c5e67d40a10234541e220750297304df79aaedd0
Fixed
e16b8d640ec99b28bc827560edcf9706e610c3aa
Fixed
684f271210becd7b8c4088f06c442499e48a43a0
Fixed
a16fd3ad9d89b05475864da97327870464611736

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74643.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.45
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74643.json"