CVE-2026-46285

In the Linux kernel, the following vulnerability has been resolved: mtd: docg3: fix use-after-free in docg3_release() In docg3_release(), the docg3 pointer is obtained from cascade->floors[0]->priv before the loop that calls doc_release_device() on each floor. doc_release_device() frees the docg3 struct via kfree(docg3) at line 1881. After the loop, docg3->cascade->bch dereferences the already-freed pointer. Fix this by accessing cascade->bch directly, which is equivalent since docg3->cascade points back to the same cascade struct, and is already available as a local variable. This also removes the now-unused docg3 local variable.
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:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

23 Jul 2026, 08:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mtd: docg3: corregir uso después de liberación en docg3_release() En docg3_release(), el puntero docg3 se obtiene de cascade->floors[0]->priv antes del bucle que llama a doc_release_device() en cada floor. doc_release_device() libera la estructura docg3 a través de kfree(docg3) en la línea 1881. Después del bucle, docg3->cascade->bch desreferencia el puntero ya liberado. Solucione esto al acceder a cascade->bch directamente, lo cual es equivalente ya que docg3->cascade apunta de nuevo a la misma estructura cascade, y ya está disponible como una variable local. Esto también elimina la variable local docg3 ahora no utilizada.

08 Jul 2026, 21:29

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CWE CWE-416
References () https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc - () https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc - Patch
References () https://git.kernel.org/stable/c/2bf706fe7831b319f23a85b9728f961cfed40c3e - () https://git.kernel.org/stable/c/2bf706fe7831b319f23a85b9728f961cfed40c3e - Patch
References () https://git.kernel.org/stable/c/8408655ec8344511667b61d8257dc59c80ee3391 - () https://git.kernel.org/stable/c/8408655ec8344511667b61d8257dc59c80ee3391 - Patch
References () https://git.kernel.org/stable/c/ca19808bc6fac7e29420d8508df569b346b3e339 - () https://git.kernel.org/stable/c/ca19808bc6fac7e29420d8508df569b346b3e339 - Patch
References () https://git.kernel.org/stable/c/d26f8c361f751c188b7ebaf8189aa0258968fd98 - () https://git.kernel.org/stable/c/d26f8c361f751c188b7ebaf8189aa0258968fd98 - Patch
References () https://git.kernel.org/stable/c/d49628d63d4e6bbc8a1621afb88e5fc901611bee - () https://git.kernel.org/stable/c/d49628d63d4e6bbc8a1621afb88e5fc901611bee - Patch
References () https://git.kernel.org/stable/c/d89044889ecd11b0c2f86663597246e9bdd25679 - () https://git.kernel.org/stable/c/d89044889ecd11b0c2f86663597246e9bdd25679 - Patch
References () https://git.kernel.org/stable/c/f5d2ed4ed47d3906e2495a3537a48b127f497a17 - () https://git.kernel.org/stable/c/f5d2ed4ed47d3906e2495a3537a48b127f497a17 - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
First Time Linux linux Kernel
Linux

08 Jun 2026, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-08 17:16

Updated : 2026-07-23 08:10


NVD link : CVE-2026-46285

Mitre link : CVE-2026-46285

CVE.ORG link : CVE-2026-46285


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free