CVE-2026-46285

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

HIGH
7.8
CVSS Score
Published: June 8, 2026 at 03:41 PM UTC
Updated: July 23, 2026 at 07:32 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.2095.16 ≤ v < 6.1.1755.8 ≤ v < 5.10.2585.8 ≤ v < 5.15.2095.8 ≤ v < 6.1.1755.8 ≤ v < 6.12.865.8 ≤ v < 6.18.275.8 ≤ v < 6.6.1405.8 ≤ v < 7.0.45.8 ≤ v < 7.16.13 ≤ v < 6.18.276.19 ≤ v < 7.0.46.2 ≤ v < 6.6.1406.7 ≤ v < 6.12.865.8c8ae3f744ddca0da164bcacee42d1d4b6fe7027d
Vendor states this is fixed in 16f6588a3b7a2a20d10ad9b766be74c60ba347cc (fixed)
Vendor states this is fixed in 2bf706fe7831b319f23a85b9728f961cfed40c3e (fixed)
Vendor states this is fixed in 8408655ec8344511667b61d8257dc59c80ee3391 (fixed)
Vendor states this is fixed in ca19808bc6fac7e29420d8508df569b346b3e339 (fixed)
Vendor states this is fixed in d26f8c361f751c188b7ebaf8189aa0258968fd98 (fixed)
Vendor states this is fixed in d49628d63d4e6bbc8a1621afb88e5fc901611bee (fixed)
Vendor states this is fixed in d89044889ecd11b0c2f86663597246e9bdd25679 (fixed)
Vendor states this is fixed in f5d2ed4ed47d3906e2495a3537a48b127f497a17 (fixed)
Vendor states this is fixed in 5.10.258 (unaffected)
Vendor states this is fixed in 5.15.209 (unaffected)
Vendor states this is fixed in 5.8 (unaffected)
Vendor states this is fixed in 6.1.175 (unaffected)
Vendor states this is fixed in 6.12.86 (unaffected)
Vendor states this is fixed in 6.18.27 (unaffected)
Vendor states this is fixed in 6.6.140 (unaffected)
Vendor states this is fixed in 7.0.4 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card