CVE-2026-46285 mtd: docg3: fix use-after-free in docg3_release()

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's docg3 driver allows attackers to potentially execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-46285?

CVE-2026-46285 is a high-severity use after free vulnerability in Linux kernel, published on 8 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2026-46285?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-46285?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-46285 being exploited?

There is no known exploitation of CVE-2026-46285 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-46285, DEBIAN-CVE-2026-46285, GHSA-42x9-78r4-7gj5, ROOT-OS-DEBIAN-11-CVE-2026-46285, ROOT-OS-DEBIAN-12-CVE-2026-46285, UBUNTU-CVE-2026-46285.

Is CVE-2026-46285 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free