{"id":"CVE-2026-46285","aliases":["CVE-2026-46285"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: docg3: fix use-after-free in docg3_release()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: docg3: fix use-after-free in docg3_release()\n\nIn docg3_release(), the docg3 pointer is obtained from\ncascade->floors[0]->priv before the loop that calls\ndoc_release_device() on each floor. doc_release_device() frees the\ndocg3 struct via kfree(docg3) at line 1881. After the loop,\ndocg3->cascade->bch dereferences the already-freed pointer.\n\nFix this by accessing cascade->bch directly, which is equivalent\nsince docg3->cascade points back to the same cascade struct, and\nis already available as a local variable. This also removes the\nnow-unused docg3 local variable.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: docg3: fix use-after-free in docg3_release()\n\nIn docg3_release(), the docg3 pointer is obtained from\ncascade->floors[0]->priv before the loop that calls\ndoc_release_device() on each floor. doc_release_device() frees the\ndocg3 struct via kfree(docg3) at line 1881. After the loop,\ndocg3->cascade->bch dereferences the already-freed pointer.\n\nFix this by accessing cascade->bch directly, which is equivalent\nsince docg3->cascade points back to the same cascade struct, and\nis already available as a local variable. This also removes the\nnow-unused docg3 local variable.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmtd: docg3: corregir uso después de liberación en docg3_release()\n\nEn 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.\n\nSolucione 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.","source":"nvd"}],"published":"2026-06-08T15:41:28.566Z","modified":"2026-07-23T08:10:00.137Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"8408655ec8344511667b61d8257dc59c80ee3391","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"f5d2ed4ed47d3906e2495a3537a48b127f497a17","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"2bf706fe7831b319f23a85b9728f961cfed40c3e","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"d26f8c361f751c188b7ebaf8189aa0258968fd98","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"16f6588a3b7a2a20d10ad9b766be74c60ba347cc","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"d89044889ecd11b0c2f86663597246e9bdd25679","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"d49628d63d4e6bbc8a1621afb88e5fc901611bee","status":"affected"},{"type":"git","introduced":"c8ae3f744ddca0da164bcacee42d1d4b6fe7027d","fixed":"ca19808bc6fac7e29420d8508df569b346b3e339","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.27","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.140"},{"status":"affected","introduced":"6.7","fixed":"6.12.86"},{"status":"affected","introduced":"6.13","fixed":"6.18.27"},{"status":"affected","introduced":"6.19","fixed":"7.0.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8408655ec8344511667b61d8257dc59c80ee3391","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5d2ed4ed47d3906e2495a3537a48b127f497a17","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bf706fe7831b319f23a85b9728f961cfed40c3e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d26f8c361f751c188b7ebaf8189aa0258968fd98","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d89044889ecd11b0c2f86663597246e9bdd25679","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d49628d63d4e6bbc8a1621afb88e5fc901611bee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca19808bc6fac7e29420d8508df569b346b3e339","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46285","url":"https://www.cve.org/CVERecord?id=CVE-2026-46285","licence":"CVE Terms of Use","modified":"2026-06-14T18:06:23.744Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46285","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46285","licence":"Public domain","modified":"2026-07-23T08:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:24.004Z","epss":{"score":0.00126,"percentile":0.02435,"date":"2026-12-01T12:00:22.000Z"}}