In the Linux kernel, the following vulnerability has been resolved:
mm/damon/core: validate damos_quota_goal->nid for node_mem_{used,free}_bp
Patch series "mm/damon/core: validate damos_quota_goal->nid".
node_mem[cg]_{used,free}_bp DAMOS quota goals receive the node id. The node id is used for si_meminfo_node() and NODE_DATA() without proper validation. As a result, privileged users can trigger an out of bounds memory access using DAMON_SYSFS. Fix the issues.
The issue was originally reported [1] with a fix by another author. The original author announced [2] that they will stop working including the fix that was still in the review stage. Hence I'm restarting this.
This patch (of 2):
Users can set damos_quota_goal->nid with arbitrary value for node_mem_{used,free}_bp. But DAMON core is using those for si_meminfo_node() without the validation of the value. This can result in out of bounds memory access. The issue can actually triggered using DAMON user-space tool (damo), like below.
$ sudo ./damo start --damos_action stat \ --damos_quota_goal node_mem_used_bp 50% -1 \ --damos_quota_interval 1s $ sudo dmesg [...] [ 65.565986] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000098
Fix this issue by adding the validation of the given node. If an invalid node id is given, it returns 0% for used memory ratio, and 100% for free memory ratio.
CVSS Details
- CVSS 3.1 Base Score: 7.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel6.18-debuginfo-common-aarch64Upgrade bpftool6.18Upgrade kernel6.18-develUpgrade kernel6.18-debuginfo-common-x86_64Upgrade bpftool6.18-debuginfoUpgrade kernel6.18-debuginfoUpgrade kernel6.18-tools-develUpgrade kernel-livepatch-6.18.30-61.116Upgrade python3-perf6.18-debuginfoUpgrade python3-perf6.18Upgrade kernel6.18Upgrade kernel6.18-tools-debuginfoUpgrade kernel6.18-modules-extraUpgrade perf6.18Upgrade kernel6.18-headersUpgrade kernel6.18-modules-extra-commonUpgrade perf6.18-debuginfoUpgrade kernel6.18-tools | Jun 23, 2026 | May 27, 2026 |
| Ubuntu | — | Upgrade linux-image-azure-fdeUpgrade linux-image-oem-24.04dUpgrade linux-image-7.0.0-1013-nvidiaUpgrade linux-image-virtualUpgrade linux-image-7.0.0-1014-raspiUpgrade linux-image-awsUpgrade linux-image-azure-7.0Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-nvidia-64kUpgrade linux-image-oem-24.04cUpgrade linux-image-oem-26.04Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-oem-24.04aUpgrade linux-image-oracle-64kUpgrade linux-image-virtual-7.0Upgrade linux-image-raspi-realtimeUpgrade linux-image-7.0.0-1007-oracle-64kUpgrade linux-image-7.0.0-27-genericUpgrade linux-image-ibmUpgrade linux-image-7.0.0-1007-oracleUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-7.0.0-1008-oemUpgrade linux-image-gcpUpgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-generic-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-realtime-hwe-26.04Upgrade linux-image-aws-64kUpgrade linux-image-realtime-64kUpgrade linux-image-oem-7.0Upgrade linux-image-generic-64k-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-28-generic-64kUpgrade linux-image-7.0.0-27-realtimeUpgrade linux-image-7.0.0-1007-gcp-64kUpgrade linux-image-oracleUpgrade linux-image-7.0.0-1009-ibmUpgrade linux-image-oem-26.04aUpgrade linux-image-generic-64kUpgrade linux-image-7.0.0-1008-aws-64kUpgrade linux-image-7.0.0-1010-azureUpgrade linux-image-7.0.0-1008-awsUpgrade linux-image-7.0.0-1014-raspi-realtimeUpgrade linux-image-7.0.0-1007-gcpUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-7.0.0-27-realtime-64kUpgrade linux-image-realtimeUpgrade linux-image-genericUpgrade linux-image-aws-64k-7.0Upgrade linux-image-azure-fde-7.0Upgrade linux-image-ibm-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-7.0.0-28-genericUpgrade linux-image-7.0.0-27-generic-64kUpgrade linux-image-nvidiaUpgrade linux-image-oem-24.04bUpgrade linux-image-7.0.0-1013-nvidia-64kUpgrade linux-image-oem-24.04Upgrade linux-image-raspiUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-azureUpgrade linux-image-realtime-7.0Upgrade linux-image-realtime-64k-7.0Upgrade linux-image-nvidia-7.0 | Jul 1, 2026 | May 27, 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