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

Published Jun 8, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

In docg3release(), the docg3 pointer is obtained from cascade->floors[0]->priv before the loop that calls docreleasedevice() on each floor. docreleasedevice() 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 Software

9 affected componentsFixes available
Linux Linux kernel (mtd/docg3)
Microsoft azl3 kernel 6.6.139.1-1<6.6.141.1-1
6.6.141.1-1
Linux Linux kernel>=5.8<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.140
Linux Linux kernel>=6.7<6.12.86
Linux Linux kernel>=6.13<6.18.27
Linux Linux kernel>=6.19<7.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.141.1-1
  2. Compensating control

    In docg3_release(), access cascade->bch directly instead of dereferencing docg3->cascade->bch after docg3 has been freed; remove the now-unused docg3 local variable.

Event History

Jun 8, 2026
CVE Published
via MITRE·03:41 PM
Data Sourced
via MITRE·03:41 PM
Description
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 10, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-46285?

CVE-2026-46285 has a risk rating of 31, indicating a moderate severity level.

2

How do I fix CVE-2026-46285?

To fix CVE-2026-46285, update the Linux kernel to the latest version that includes the patch for the use-after-free issue.

3

What systems are affected by CVE-2026-46285?

CVE-2026-46285 affects systems running the Linux kernel with mtd/docg3 support.

4

What is the impact of CVE-2026-46285?

The impact of CVE-2026-46285 involves potential exploitation due to a use-after-free vulnerability leading to undefined behavior.

5

When was CVE-2026-46285 published?

CVE-2026-46285 was published on June 8, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203