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

CVE-2026-46285
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected c8ae3f744ddca0da164bcacee42d1d4b6fe7027d < 8408655ec8344511667b61d8257dc59c80ee3391 ; affected c8ae3f744ddca0da164bcacee42d1d4b6fe7027d < f5d2ed4ed47d3906e2495a3537a48b127f497a17 ; affected c8ae3f744ddca0da164bcacee42d1d4b6fe7027d < 2bf706fe7831b319f23a85b9728f961cfed40c3e ; affected c8ae3f744ddca0da164bcacee42d1d4b6fe7027d < d26f8c361f751c188b7ebaf8189aa0258968fd98 ; affected c8ae3f744ddca0da164bcacee42d1d4b6fe7027d < 16f6588a3b7a2a20d10ad9b766be74c60ba347cc ; affected c8ae3f744ddca0da164bcacee42d1d4b6fe7027d < d89044889ecd11b0c2f86663597246e9bdd25679
Linux · Linuxaffected 5.8 ; unaffected 0 < 5.8 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.140 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD