CVE-2026-46121
Gravedad CVSS v3.1:
ALTA
Tipo:
CWE-416
Utilización después de liberación
Fecha de publicación:
28/05/2026
Última modificación:
24/06/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lock<br />
<br />
Patch series "mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path".<br />
<br />
Reads of &#39;memcg_path&#39; and &#39;path&#39; files in DAMON sysfs interface could race<br />
with their writes, results in use-after-free. Fix those.<br />
<br />
<br />
This patch (of 2):<br />
<br />
damon_sysfs_scheme_filter->mmecg_path can be read and written by users,<br />
via DAMON sysfs memcg_path file. It can also be indirectly read, for the<br />
parameters {on,off}line committing to DAMON. The reads for parameters<br />
committing are protected by damon_sysfs_lock to avoid the sysfs files<br />
being destroyed while any of the parameters are being read. But the<br />
user-driven direct reads and writes are not protected by any lock, while<br />
the write is deallocating the memcg_path-pointing buffer. As a result,<br />
the readers could read the already freed buffer (user-after-free). Note<br />
that the user-reads don&#39;t race when the same open file is used by the<br />
writer, due to kernfs&#39;s open file locking. Nonetheless, doing the reads<br />
and writes with separate open files would be common. Fix it by protecting<br />
both the user-direct reads and writes with damon_sysfs_lock.
Impacto
Puntuación base 3.x
7.80
Gravedad 3.x
ALTA
Productos y versiones vulnerables
| CPE | Desde | Hasta |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.96 (incluyendo) | 6.6.140 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.12.36 (incluyendo) | 6.12.88 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.15.5 (incluyendo) | 6.16 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.16.1 (incluyendo) | 6.18.30 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (incluyendo) | 7.0.7 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:6.16:-:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.16:rc6:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.16:rc7:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* |
Para consultar la lista completa de nombres de CPE con productos y versiones, ver esta página
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/1e68eb96e8beb1abefd12dd22c5637795d8a877e
- https://git.kernel.org/stable/c/b1e9f2d5870776347edef927f9bb3ea19b8e3abb
- https://git.kernel.org/stable/c/baecc45ad60e621ef14d6c1e7f41ef36bbfdf910
- https://git.kernel.org/stable/c/c88802d0e8edd14b6cd2daf3000f99adbc4c85c5
- https://git.kernel.org/stable/c/eafd6f5372d29b0dd213799b92c2c9c7ad31d7da



