# CVE-2026-46285: mtd: docg3: fix use-after-free in docg3\_release()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-06-08T15:41:28.566Z
- **Modified:** 2026-07-23T08:10:00.137Z

## Who should check

- Anyone running Linux \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 8408655ec8344511667b61d8257dc59c80ee3391; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< f5d2ed4ed47d3906e2495a3537a48b127f497a17; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 2bf706fe7831b319f23a85b9728f961cfed40c3e; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d26f8c361f751c188b7ebaf8189aa0258968fd98; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 16f6588a3b7a2a20d10ad9b766be74c60ba347cc; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d89044889ecd11b0c2f86663597246e9bdd25679; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d49628d63d4e6bbc8a1621afb88e5fc901611bee; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< ca19808bc6fac7e29420d8508df569b346b3e339
- Anyone running Linux 5.8

## 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 and fixed versions

- Linux: \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 8408655ec8344511667b61d8257dc59c80ee3391; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< f5d2ed4ed47d3906e2495a3537a48b127f497a17; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 2bf706fe7831b319f23a85b9728f961cfed40c3e; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d26f8c361f751c188b7ebaf8189aa0258968fd98; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 16f6588a3b7a2a20d10ad9b766be74c60ba347cc; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d89044889ecd11b0c2f86663597246e9bdd25679; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d49628d63d4e6bbc8a1621afb88e5fc901611bee; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< ca19808bc6fac7e29420d8508df569b346b3e339 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46285. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46285.md
Affected: Linux >= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, < 8408655ec8344511667b61d8257dc59c80ee3391; >= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, < f5d2ed4ed47d3906e2495a3537a48b127f497a17; >= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, < 2bf706fe7831b319f23a85b9728f961cfed40c3e; >= c8ae3f744ddca0da164bcac…
Fixed in: Linux 8408655ec8344511667b61d8257dc59c80ee3391, Linux 2bf706fe7831b319f23a85b9728f961cfed40c3e, Linux 16f6588a3b7a2a20d10ad9b766be74c60ba347cc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46285 being exploited?

There is no confirmed exploitation: CVE-2026-46285 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46285?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-46285?

Linux \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 8408655ec8344511667b61d8257dc59c80ee3391; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< f5d2ed4ed47d3906e2495a3537a48b127f497a17; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 2bf706fe7831b319f23a85b9728f961cfed40c3e; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d26f8c361f751c188b7ebaf8189aa0258968fd98; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< 16f6588a3b7a2a20d10ad9b766be74c60ba347cc; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d89044889ecd11b0c2f86663597246e9bdd25679; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< d49628d63d4e6bbc8a1621afb88e5fc901611bee; \>= c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, \< ca19808bc6fac7e29420d8508df569b346b3e339; Linux 5.8.

### Is there a fix for CVE-2026-46285?

Yes. Fixed in Linux 8408655ec8344511667b61d8257dc59c80ee3391, Linux 2bf706fe7831b319f23a85b9728f961cfed40c3e, Linux 16f6588a3b7a2a20d10ad9b766be74c60ba347cc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-46285?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8408655ec8344511667b61d8257dc59c80ee3391>
- patch: <https://git.kernel.org/stable/c/f5d2ed4ed47d3906e2495a3537a48b127f497a17>
- patch: <https://git.kernel.org/stable/c/2bf706fe7831b319f23a85b9728f961cfed40c3e>
- patch: <https://git.kernel.org/stable/c/d26f8c361f751c188b7ebaf8189aa0258968fd98>
- patch: <https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc>
- patch: <https://git.kernel.org/stable/c/d89044889ecd11b0c2f86663597246e9bdd25679>
- patch: <https://git.kernel.org/stable/c/d49628d63d4e6bbc8a1621afb88e5fc901611bee>
- patch: <https://git.kernel.org/stable/c/ca19808bc6fac7e29420d8508df569b346b3e339>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46285>

HTML: <https://flawdb.com/CVE-2026-46285> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46285>
