CVE-2025-40228
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 4c9ea539ad59ec60676930dacee02b7adde2e0c0 before 5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc, from 4c9ea539ad59ec60676930dacee02b7adde2e0c0 before f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f, 6.15
Not affected: before 6.15, from 6.17.6 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/damon/sysfs: detectar fallo de asignación de ctx de prueba de commit Serie de parches “mm/damon/sysfs: corregir la [des]asignación de damon_ctx de prueba de commit”. La interfaz sysfs de DAMON asigna y utiliza dinámicamente un objeto damon_ctx para probar si las entradas dadas para la actualización de parámetros DAMON en línea son válidas. El objeto se está utilizando sin una comprobación de fallo de asignación, y se produce una fuga cuando la prueba tiene éxito. Corregir los dos errores. Este parche (de 2): El damon_ctx para probar las entradas de commit de los parámetros DAMON en línea se utiliza sin su comprobación de fallo de asignación. Esto podría resultar en un acceso a memoria no válido. Corregirlo devolviendo directamente un error cuando la asignación falló.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40228 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-40228 changed 2026-10-19Public domain