5.5
MEDIUM CVSS 3.1
CVE-2026-31445
mm/damon/core: avoid use of half-online-committed context
Description

In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: avoid use of half-online-committed context One major usage of damon_call() is online DAMON parameters update. It is done by calling damon_commit_ctx() inside the damon_call() callback function. damon_commit_ctx() can fail for two reasons: 1) invalid parameters and 2) internal memory allocation failures. In case of failures, the damon_ctx that attempted to be updated (commit destination) can be partially updated (or, corrupted from a perspective), and therefore shouldn't be used anymore. The function only ensures the damon_ctx object can safely deallocated using damon_destroy_ctx(). The API callers are, however, calling damon_commit_ctx() only after asserting the parameters are valid, to avoid damon_commit_ctx() fails due to invalid input parameters. But it can still theoretically fail if the internal memory allocation fails. In the case, DAMON may run with the partially updated damon_ctx. This can result in unexpected behaviors including even NULL pointer dereference in case of damos_commit_dests() failure [1]. Such allocation failure is arguably too small to fail, so the real world impact would be rare. But, given the bad consequence, this needs to be fixed. Avoid such partially-committed (maybe-corrupted) damon_ctx use by saving the damon_commit_ctx() failure on the damon_ctx object. For this, introduce damon_ctx->maybe_corrupted field. damon_commit_ctx() sets it when it is failed. kdamond_call() checks if the field is set after each damon_call_control->fn() is executed. If it is set, ignore remaining callback requests and return. All kdamond_call() callers including kdamond_fn() also check the maybe_corrupted field right after kdamond_call() invocations. If the field is set, break the kdamond_fn() main loop so that DAMON sill doesn't use the context that might be corrupted. [[email protected]: let kdamond_call() with cancel regardless of maybe_corrupted]

INFO

Published Date :

April 22, 2026, 2:16 p.m.

Last Modified :

Nov. 11, 2026, 11:10 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-31445 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Avoid using partially updated contexts by checking a corruption flag.
  • Save commit failure on the context object.
  • Check the corruption flag after function execution.
  • Ignore further requests on failure.
  • Break loops if context might be corrupted.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-31445.

URL Resource
https://git.kernel.org/stable/c/1b247cd0654a3a306996fa80741d79296c683a56 Patch
https://git.kernel.org/stable/c/26f775a054c3cda86ad465a64141894a90a9e145 Patch
https://git.kernel.org/stable/c/9c495f9d3781cd692bd199531cabd4627155e8cd Patch
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-31445 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-31445 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-31445 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-31445 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Nov. 11, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/damon/core: evitar el uso de contexto medio-online-commitado Un uso principal de damon_call() es la actualización de parámetros DAMON en línea. Se realiza llamando a damon_commit_ctx() dentro de la función de callback damon_call(). damon_commit_ctx() puede fallar por dos razones: 1) parámetros inválidos y 2) fallos de asignación de memoria interna. En caso de fallos, el damon_ctx que intentó ser actualizado (destino de commit) puede ser parcialmente actualizado (o, corrompido desde una perspectiva), y por lo tanto no debería usarse más. La función solo asegura que el objeto damon_ctx puede ser desasignado de forma segura usando damon_destroy_ctx(). Los llamadores de la API están, sin embargo, llamando a damon_commit_ctx() solo después de afirmar que los parámetros son válidos, para evitar que damon_commit_ctx() falle debido a parámetros de entrada inválidos. Pero aún puede fallar teóricamente si la asignación de memoria interna falla. En ese caso, DAMON puede ejecutarse con el damon_ctx parcialmente actualizado. Esto puede resultar en comportamientos inesperados, incluyendo incluso la desreferencia de puntero NULL en caso de fallo de damos_commit_dests() [1]. Tal fallo de asignación es, discutiblemente, demasiado pequeño para fallar, por lo que el impacto en el mundo real sería raro. Pero, dada la mala consecuencia, esto necesita ser arreglado. Evitar el uso de dicho damon_ctx parcialmente-commitado (quizás-corrompido) guardando el fallo de damon_commit_ctx() en el objeto damon_ctx. Para esto, se introduce el campo damon_ctx -> maybe_corrupted. damon_commit_ctx() lo establece cuando falla. kdamond_call() verifica si el campo está establecido después de que se ejecuta cada damon_call_control -> fn(). Si está establecido, ignorar las solicitudes de callback restantes y retornar. Todos los llamadores de kdamond_call(), incluyendo kdamond_fn(), también verifican el campo maybe_corrupted justo después de las invocaciones de kdamond_call(). Si el campo está establecido, romper el bucle principal de kdamond_fn() para que DAMON siga sin usar el contexto que podría estar corrompido. [[email protected]: permitir kdamond_call() con cancelación independientemente de maybe_corrupted]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3301f1861d34f53911a30a8f5f41b9141bd8ed39', 'lessThan': '9c495f9d3781cd692bd199531cabd4627155e8cd', 'versionType': 'git'}, {'status': 'affected', 'version': '3301f1861d34f53911a30a8f5f41b9141bd8ed39', 'lessThan': '1b247cd0654a3a306996fa80741d79296c683a56', 'versionType': 'git'}, {'status': 'affected', 'version': '3301f1861d34f53911a30a8f5f41b9141bd8ed39', 'lessThan': '26f775a054c3cda86ad465a64141894a90a9e145', 'versionType': 'git'}], 'programFiles': ['include/linux/damon.h', 'mm/damon/core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.21', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.11', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['include/linux/damon.h', 'mm/damon/core.c'], 'defaultStatus': 'affected'}]
  • Initial Analysis by [email protected]

    May. 07, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-476
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.15 up to (excluding) 6.18.21
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/1b247cd0654a3a306996fa80741d79296c683a56 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/26f775a054c3cda86ad465a64141894a90a9e145 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/9c495f9d3781cd692bd199531cabd4627155e8cd Types: Patch
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 22, 2026

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: avoid use of half-online-committed context One major usage of damon_call() is online DAMON parameters update. It is done by calling damon_commit_ctx() inside the damon_call() callback function. damon_commit_ctx() can fail for two reasons: 1) invalid parameters and 2) internal memory allocation failures. In case of failures, the damon_ctx that attempted to be updated (commit destination) can be partially updated (or, corrupted from a perspective), and therefore shouldn't be used anymore. The function only ensures the damon_ctx object can safely deallocated using damon_destroy_ctx(). The API callers are, however, calling damon_commit_ctx() only after asserting the parameters are valid, to avoid damon_commit_ctx() fails due to invalid input parameters. But it can still theoretically fail if the internal memory allocation fails. In the case, DAMON may run with the partially updated damon_ctx. This can result in unexpected behaviors including even NULL pointer dereference in case of damos_commit_dests() failure [1]. Such allocation failure is arguably too small to fail, so the real world impact would be rare. But, given the bad consequence, this needs to be fixed. Avoid such partially-committed (maybe-corrupted) damon_ctx use by saving the damon_commit_ctx() failure on the damon_ctx object. For this, introduce damon_ctx->maybe_corrupted field. damon_commit_ctx() sets it when it is failed. kdamond_call() checks if the field is set after each damon_call_control->fn() is executed. If it is set, ignore remaining callback requests and return. All kdamond_call() callers including kdamond_fn() also check the maybe_corrupted field right after kdamond_call() invocations. If the field is set, break the kdamond_fn() main loop so that DAMON sill doesn't use the context that might be corrupted. [[email protected]: let kdamond_call() with cancel regardless of maybe_corrupted]
    Added Reference https://git.kernel.org/stable/c/1b247cd0654a3a306996fa80741d79296c683a56
    Added Reference https://git.kernel.org/stable/c/26f775a054c3cda86ad465a64141894a90a9e145
    Added Reference https://git.kernel.org/stable/c/9c495f9d3781cd692bd199531cabd4627155e8cd
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.