In the Linux kernel, the following vulnerability has been resolved:
mm/damon/ops-common: handle extreme intervals in damon_hot_score()
Fix three issues in damon_hot_score() that comes from wrong handling of extreme (zero or too high) monitoring intervals user setup.
When the user sets sampling interval zero, damon_max_nr_accesses(), which is called from damon_hot_score(), causes a divide-by-zero. Needless to say, it is a problem.
When the user sets the aggregation interval zero, the function returns zero. It is wrong, since the real maximum nr_acceses in the setup should be one. Worse yet, it can cause another divide-by-zero from its caller, damon_hot_score(), since it uses damon_max_nr_accesses() return value as a denominator.
When the user sets the aggregation interval very high, damon_hot_score() could return a value out of [0, DAMOS_MAX_SCORE] range. Since the return value is used as an index to the regions_score_histogram array, which is DAMOS_MAX_SCORE+1 size, it causes out of bounds array access.
The issues can be relatively easily reproduced like below. The sysfs write permission is required, though.
# ./damo start --damos_action lru_prio --damos_quota_space 100M \ --damos_quota_interval 1s # cd /sys/kernel/mm/damon/admin/kdamonds/0 # echo 0 > contexts/0/monitoring_attrs/intervals/sample_us # echo 0 > contexts/0/monitoring_attrs/intervals/aggr_us # echo commit > state # dmesg [...] [ 131.329762] Oops: divide error: 0000 [#1] SMP NOPTI [...] [ 131.336089] RIP: 0010:damon_hot_score+0x27/0xd0 [...]
Fix the divide-by-zero intervals problems by explicitly handling the zero intervals in damon_max_nr_accesses(). Fix the out-of-bound array access by applying [0, DAMOS_MAX_SCORE] bounds before returning from damon_hot_score().
The issue was discovered [1] by Sashiko.
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade perf6.18Upgrade kernel-develUpgrade python3-perf6.18Upgrade kernel6.18-develUpgrade kernel-livepatch-6.12.100-125.179Upgrade kernel6.12-tools-debuginfoUpgrade kernel6.12-develUpgrade bpftool6.18Upgrade kernel-livepatch-6.1.180-225.360Upgrade kernel-toolsUpgrade kernelUpgrade bpftoolUpgrade kernel-debuginfo-common-x86_64Upgrade python3-perf6.12-debuginfoUpgrade bpftool-debuginfoUpgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel-modules-extra-commonUpgrade python3-perf-debuginfoUpgrade kernel6.18-tools-develUpgrade kernel6.18-tools-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade python3-perf6.12Upgrade kernel6.12-headersUpgrade kernel6.18Upgrade perf6.12Upgrade kernel6.12-debuginfoUpgrade kernel-modules-extraUpgrade microvm-kernel6.18Upgrade kernel6.12-debuginfo-common-aarch64Upgrade kernel-headersUpgrade bpftool6.18-debuginfoUpgrade kernel6.18-modules-extraUpgrade kernel6.18-debuginfo-common-aarch64Upgrade perf6.12-debuginfoUpgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel6.12-toolsUpgrade kernel-debuginfoUpgrade bpftool6.12Upgrade kernel6.12Upgrade kernel6.18-toolsUpgrade python3-perf6.18-debuginfoUpgrade kernel6.18-debuginfoUpgrade kernel-livepatch-6.18.39-79.141Upgrade kernel6.12-modules-extra-commonUpgrade kernel6.12-tools-develUpgrade kernel-tools-develUpgrade kernel6.18-headersUpgrade perf-debuginfoUpgrade perf6.18-debuginfoUpgrade python3-perfUpgrade perfUpgrade bpftool6.12-debuginfoUpgrade kernel6.12-modules-extra | Aug 18, 2026 | Jul 25, 2026 |
| Debian | — | Upgrade linux-6.1Upgrade linux-6.12Upgrade linux | Jul 28, 2026 | Jul 28, 2026 |
| Redhat_linux | — | No solution exists | Jul 31, 2026 | Jul 25, 2026 |
| Ubuntu | — | Upgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-generic-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-awsUpgrade linux-image-gke-7.0Upgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-realtime-64kUpgrade linux-image-nvidia-7.0Upgrade linux-image-ibm-7.0Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-realtime-7.0Upgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-raspiUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-gke-64k-7.0Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-oem-26.04aUpgrade linux-image-gke-64kUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-genericUpgrade linux-image-oem-26.04Upgrade linux-image-raspi-realtime-7.0Upgrade linux-image-aws-64k-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-nvidia-bosUpgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-generic-64kUpgrade linux-image-realtimeUpgrade linux-image-7.0.0-1013-oemUpgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-virtual-hwe-26.04Upgrade linux-image-aws-64kUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-generic-64k-7.0Upgrade linux-image-ibmUpgrade linux-image-gcp-7.0Upgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-nvidia-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-virtual-7.0Upgrade linux-image-oem-7.0Upgrade linux-image-oem-26.04bUpgrade linux-image-gke-hwe-26.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-raspi-7.0Upgrade linux-image-gkeUpgrade linux-image-raspi-realtimeUpgrade linux-image-virtualUpgrade linux-image-gcpUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-nvidiaUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-7.0.0-31-generic | Sep 14, 2026 | Sep 7, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 31, 2026 | Jul 25, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub