CVE-2026-31457

In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: check contexts->nr in repeat_call_fn damon_sysfs_repeat_call_fn() calls damon_sysfs_upd_tuned_intervals(), damon_sysfs_upd_schemes_stats(), and damon_sysfs_upd_schemes_effective_quotas() without checking contexts->nr. If nr_contexts is set to 0 via sysfs while DAMON is running, these functions dereference contexts_arr[0] and cause a NULL pointer dereference. Add the missing check. For example, the issue can be reproduced using DAMON sysfs interface and DAMON user-space tool (damo) [1] like below. $ sudo damo start --refresh_interval 1s $ echo 0 | sudo tee \ /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
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:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/damon/sysfs: comprobar contexts -> nr en repeat_call_fn damon_sysfs_repeat_call_fn() llama a damon_sysfs_upd_tuned_intervals(), damon_sysfs_upd_schemes_stats() y damon_sysfs_upd_schemes_effective_quotas() sin comprobar contexts -> nr. Si nr_contexts se establece en 0 a través de sysfs mientras DAMON está en ejecución, estas funciones desreferencian contexts_arr[0] y causan una desreferencia de puntero NULL. Añadir la comprobación que falta. Por ejemplo, el problema puede reproducirse utilizando la interfaz sysfs de DAMON y la herramienta de espacio de usuario de DAMON (damo) [1] como se muestra a continuación. $ sudo damo start - -refresh_interval 1s $ echo 0 | sudo tee \ /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts

05 May 2026, 21:21

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
First Time Linux linux Kernel
Linux
CWE CWE-476
CPE 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:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/3527e9fdc38570cea0f6ddb7a2c9303d4044b217 - () https://git.kernel.org/stable/c/3527e9fdc38570cea0f6ddb7a2c9303d4044b217 - Patch
References () https://git.kernel.org/stable/c/652cd0641a763dd0e846b0d12814977fadb2b7d8 - () https://git.kernel.org/stable/c/652cd0641a763dd0e846b0d12814977fadb2b7d8 - Patch
References () https://git.kernel.org/stable/c/6557004a8b59c7701e695f02be03c7e20ed1cc15 - () https://git.kernel.org/stable/c/6557004a8b59c7701e695f02be03c7e20ed1cc15 - Patch

22 Apr 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-22 14:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31457

Mitre link : CVE-2026-31457

CVE.ORG link : CVE-2026-31457


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-476

NULL Pointer Dereference