CVE-2025-38519

Source
https://cve.org/CVERecord?id=CVE-2025-38519
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38519.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-38519
Downstream
Published
2025-08-16T10:55:06.083Z
Modified
2026-04-02T12:48:00.774595Z
Summary
mm/damon: fix divide by zero in damon_get_intervals_score()
Details

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

mm/damon: fix divide by zero in damongetintervals_score()

The current implementation allows having zero size regions with no special reasons, but damongetintervals_score() gets crashed by divide by zero when the region size is zero.

[ 29.403950] Oops: divide error: 0000 [#1] SMP NOPTI

This patch fixes the bug, but does not disallow zero size regions to keep the backward compatibility since disallowing zero size regions might be a breaking change for some users.

In addition, the same crash can happen when intervalsgoal.accessbp is zero so this should be fixed in stable trees as well.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38519.json",
    "cna_assigner": "Linux"
}
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
f04b0fedbe714f822bd066b319a60faa39a985a1
Fixed
ca4bb9ac706f05ead8ac1cce7b8245fc0645a687
Fixed
bd225b9591442065beb876da72656f4a2d627d03

Database specific

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