CVE-2025-40228

mm/damon/sysfs: catch commit test ctx alloc failure

N/A
Published: December 4, 2025 at 03:31 PM UTC
Updated: October 19, 2026 at 07:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: catch commit test ctx alloc failure Patch series "mm/damon/sysfs: fix commit test damon_ctx [de]allocation". DAMON sysfs interface dynamically allocates and uses a damon_ctx object for testing if given inputs for online DAMON parameters update is valid. The object is being used without an allocation failure check, and leaked when the test succeeds. Fix the two bugs. This patch (of 2): The damon_ctx for testing online DAMON parameters commit inputs is used without its allocation failure check. This could result in an invalid memory access. Fix it by directly returning an error when the allocation failed.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4c9ea539ad59ec60676930dacee02b7adde2e0c06.15
Vendor states this is fixed in 5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc (fixed)
Vendor states this is fixed in f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f (fixed)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.17.6 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card