Description
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.
Published: 2026-06-08
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The report identifies a use‑after‑free condition in the Linux kernel’s MTD docg3 subsystem, specifically within the docg3_release() routine. After freeing floor devices with doc_release_device(), the code dereferences a pointer that points to the already-freed docg3 structure, leading to undefined behavior that can corrupt kernel memory or cause a crash. The weakness is a classic use‑after‑free flaw (CWE‑416). While the description does not explicitly state the required privileges, it is inferred that the exploit would need local kernel‑mode execution, such as a privileged user or a kernel module that can trigger the vulnerable function.

Affected Systems

This defect resides in the upstream Linux kernel and therefore applies to any distribution that compiles the kernel with the unpatched docg3_release() code. No specific releases are listed, so any kernel built from the affected source tree prior to the commit series that introduces the fix is at risk. The only vendor explicitly mentioned is the Linux kernel project.

Risk and Exploitability

Because the anomaly occurs in kernel code, it can provide an attacker with the ability to corrupt critical data structures or execute arbitrary code with kernel privileges once a local foothold is achieved. The CVSS score is not published, but the nature of a kernel use‑after‑free bug implies a high severity. The EPSS score is not available, and the vulnerability is not catalogued in the CISA KEV list. Even without an advertised remote exploit, the combination of a kernel bug and the ability to gain local kernel execution is sufficient for an attacker to abuse this flaw if the system lacks other mitigation layers.

Generated by OpenCVE AI on June 8, 2026 at 19:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel patch that includes the commit series fixing the use‑after‑free in docg3_release(); the relevant patches are referenced in the advisory commit logs (e.g., https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc).
  • If an immediate kernel upgrade is not feasible, disable the MTD docg3 subsystem during kernel configuration or replace the buggy implementation with the corrected code that accesses cascade->bch directly rather than dereferencing a freed pointer.
  • After applying the patch or disabling the subsystem, monitor the kernel logs (dmesg, /var/log/kern.log) for indications of memory corruption, panics, or abnormal behavior in the MTD subsystem and ensure the kernel reports no further use‑after‑free attempts.

Generated by OpenCVE AI on June 8, 2026 at 19:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 09 Jun 2026 00:15:00 +0000


Mon, 08 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 08 Jun 2026 17:00:00 +0000

Type Values Removed Values Added
Description 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.
Title mtd: docg3: fix use-after-free in docg3_release()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-08T15:41:28.566Z

Reserved: 2026-05-13T15:03:33.110Z

Link: CVE-2026-46285

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-08T17:16:46.347

Modified: 2026-06-08T17:16:46.347

Link: CVE-2026-46285

cve-icon Redhat

Severity :

Publid Date: 2026-06-08T00:00:00Z

Links: CVE-2026-46285 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-08T19:45:31Z

Weaknesses