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 bpftool6.18-debuginfoUpgrade kernel6.12-debuginfo-common-aarch64Upgrade kernel6.12Upgrade kernel6.18-toolsUpgrade kernel6.18-debuginfoUpgrade kernel-debuginfoUpgrade kernel6.12-toolsUpgrade perfUpgrade bpftool6.12-debuginfoUpgrade kernel-tools-develUpgrade bpftool6.12Upgrade kernel6.12-debuginfo-common-x86_64Upgrade perf6.18-debuginfoUpgrade kernel6.18-modules-extraUpgrade python3-perfUpgrade python3-perf6.18-debuginfoUpgrade kernel-livepatch-6.18.39-79.141Upgrade kernel6.18-debuginfo-common-aarch64Upgrade kernel6.18-headersUpgrade kernel6.12-modules-extra-commonUpgrade kernel6.12-modules-extraUpgrade kernel6.12-tools-develUpgrade kernel-headersUpgrade perf6.12-debuginfoUpgrade perf-debuginfoUpgrade kernel6.18-tools-develUpgrade kernel6.18-modules-extra-commonUpgrade bpftoolUpgrade python3-perf6.12Upgrade kernel6.12-develUpgrade perf6.18Upgrade kernel-debuginfo-common-aarch64Upgrade kernel6.18-tools-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-develUpgrade python3-perf-debuginfoUpgrade kernel6.12-debuginfoUpgrade kernel6.12-tools-debuginfoUpgrade kernel6.18Upgrade kernel-livepatch-6.12.100-125.179Upgrade python3-perf6.18Upgrade kernel-livepatch-6.1.180-225.360Upgrade kernelUpgrade kernel6.12-headersUpgrade kernel-modules-extraUpgrade kernel-toolsUpgrade bpftool6.18Upgrade kernel6.18-develUpgrade perf6.12Upgrade microvm-kernel6.18Upgrade bpftool-debuginfoUpgrade python3-perf6.12-debuginfoUpgrade kernel-modules-extra-commonUpgrade kernel-debuginfo-common-x86_64Upgrade kernel6.18-debuginfo-common-x86_64 | 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-oracleUpgrade linux-image-generic-64kUpgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-oracle-7.0Upgrade linux-image-generic-64k-7.0Upgrade linux-image-realtime-hwe-26.04Upgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-31-genericUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-ibmUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-azure-lts-26.04Upgrade linux-image-gcpUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-realtime-64k-7.0Upgrade linux-image-nvidia-64kUpgrade linux-image-nvidiaUpgrade linux-image-virtualUpgrade linux-image-virtual-7.0Upgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-aws-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-7.0.0-1014-azureUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-oem-26.04bUpgrade linux-image-oem-7.0Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-gcp-7.0Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-gkeUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-azure-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-raspi-realtimeUpgrade linux-image-realtimeUpgrade linux-image-virtual-hwe-26.04Upgrade linux-image-7.0.0-1013-oemUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-realtime-7.0Upgrade linux-image-7.0.0-1012-awsUpgrade linux-image-realtime-64kUpgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-gke-7.0Upgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-generic-7.0Upgrade linux-image-gke-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-oem-26.04aUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-aws-7.0Upgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-gcp-64kUpgrade linux-image-aws-64k-7.0Upgrade linux-image-nvidia-bosUpgrade linux-image-generic-hwe-26.04Upgrade linux-image-raspiUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-genericUpgrade linux-image-oem-26.04Upgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-awsUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-azureUpgrade linux-image-gke-64k-7.0Upgrade linux-image-nvidia-7.0Upgrade linux-image-ibm-7.0 | 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