CVE-2026-46285

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

No CVSS score yet EPSS 0.17%

Published 8 Jun 2026 Updated 14 Jun 2026 CNA: Linux

Check your servers for CVE-2026-46285

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-46285 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.74% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before 8408655ec8344511667b61d8257dc59c80ee3391
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before f5d2ed4ed47d3906e2495a3537a48b127f497a17
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before 2bf706fe7831b319f23a85b9728f961cfed40c3e
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before d26f8c361f751c188b7ebaf8189aa0258968fd98
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before 16f6588a3b7a2a20d10ad9b766be74c60ba347cc
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before d89044889ecd11b0c2f86663597246e9bdd25679
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before d49628d63d4e6bbc8a1621afb88e5fc901611bee
affected from c8ae3f744ddca0da164bcacee42d1d4b6fe7027d, before ca19808bc6fac7e29420d8508df569b346b3e339
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.10.258 up to and including 5.10.*
unaffected from 5.15.209 up to and including 5.15.*
unaffected from 6.1.175 up to and including 6.1.*
unaffected from 6.6.140 up to and including 6.6.*
unaffected from 6.12.86 up to and including 6.12.*
unaffected from 6.18.27 up to and including 6.18.*
unaffected from 7.0.4 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-46285 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-46285

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-46285
trivy image --scanners vuln IMAGE | grep CVE-2026-46285

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-46285 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.