CVE-2026-46285 (GCVE-0-2026-46285)

Vulnerability from cvelistv5 – Published: 2026-06-08 15:41 – Updated: 2026-06-14 18:06
VLAI
Title
mtd: docg3: fix use-after-free in docg3_release()
Summary
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.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < 8408655ec8344511667b61d8257dc59c80ee3391 (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < f5d2ed4ed47d3906e2495a3537a48b127f497a17 (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < 2bf706fe7831b319f23a85b9728f961cfed40c3e (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < d26f8c361f751c188b7ebaf8189aa0258968fd98 (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < 16f6588a3b7a2a20d10ad9b766be74c60ba347cc (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < d89044889ecd11b0c2f86663597246e9bdd25679 (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < d49628d63d4e6bbc8a1621afb88e5fc901611bee (git)
Affected: c8ae3f744ddca0da164bcacee42d1d4b6fe7027d , < ca19808bc6fac7e29420d8508df569b346b3e339 (git)
Create a notification for this product.
Linux Linux Affected: 5.8
Unaffected: 0 , < 5.8 (semver)
Unaffected: 5.10.258 , ≤ 5.10.* (semver)
Unaffected: 5.15.209 , ≤ 5.15.* (semver)
Unaffected: 6.1.175 , ≤ 6.1.* (semver)
Unaffected: 6.6.140 , ≤ 6.6.* (semver)
Unaffected: 6.12.86 , ≤ 6.12.* (semver)
Unaffected: 6.18.27 , ≤ 6.18.* (semver)
Unaffected: 7.0.4 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/mtd/devices/docg3.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8408655ec8344511667b61d8257dc59c80ee3391",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "f5d2ed4ed47d3906e2495a3537a48b127f497a17",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "2bf706fe7831b319f23a85b9728f961cfed40c3e",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "d26f8c361f751c188b7ebaf8189aa0258968fd98",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "16f6588a3b7a2a20d10ad9b766be74c60ba347cc",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "d89044889ecd11b0c2f86663597246e9bdd25679",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "d49628d63d4e6bbc8a1621afb88e5fc901611bee",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            },
            {
              "lessThan": "ca19808bc6fac7e29420d8508df569b346b3e339",
              "status": "affected",
              "version": "c8ae3f744ddca0da164bcacee42d1d4b6fe7027d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/mtd/devices/docg3.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.8"
            },
            {
              "lessThan": "5.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.258",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.175",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.140",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.27",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.258",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.209",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.175",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.140",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.86",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.27",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.4",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: docg3: fix use-after-free in docg3_release()\n\nIn docg3_release(), the docg3 pointer is obtained from\ncascade-\u003efloors[0]-\u003epriv before the loop that calls\ndoc_release_device() on each floor. doc_release_device() frees the\ndocg3 struct via kfree(docg3) at line 1881. After the loop,\ndocg3-\u003ecascade-\u003ebch dereferences the already-freed pointer.\n\nFix this by accessing cascade-\u003ebch directly, which is equivalent\nsince docg3-\u003ecascade points back to the same cascade struct, and\nis already available as a local variable. This also removes the\nnow-unused docg3 local variable."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-14T18:06:23.744Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8408655ec8344511667b61d8257dc59c80ee3391"
        },
        {
          "url": "https://git.kernel.org/stable/c/f5d2ed4ed47d3906e2495a3537a48b127f497a17"
        },
        {
          "url": "https://git.kernel.org/stable/c/2bf706fe7831b319f23a85b9728f961cfed40c3e"
        },
        {
          "url": "https://git.kernel.org/stable/c/d26f8c361f751c188b7ebaf8189aa0258968fd98"
        },
        {
          "url": "https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc"
        },
        {
          "url": "https://git.kernel.org/stable/c/d89044889ecd11b0c2f86663597246e9bdd25679"
        },
        {
          "url": "https://git.kernel.org/stable/c/d49628d63d4e6bbc8a1621afb88e5fc901611bee"
        },
        {
          "url": "https://git.kernel.org/stable/c/ca19808bc6fac7e29420d8508df569b346b3e339"
        }
      ],
      "title": "mtd: docg3: fix use-after-free in docg3_release()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-46285",
    "datePublished": "2026-06-08T15:41:28.566Z",
    "dateReserved": "2026-05-13T15:03:33.110Z",
    "dateUpdated": "2026-06-14T18:06:23.744Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-46285",
      "date": "2026-06-17",
      "epss": "0.00177",
      "percentile": "0.07384"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-46285\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-08T17:16:46.347\",\"lastModified\":\"2026-06-08T17:16:46.347\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmtd: docg3: fix use-after-free in docg3_release()\\n\\nIn docg3_release(), the docg3 pointer is obtained from\\ncascade-\u003efloors[0]-\u003epriv before the loop that calls\\ndoc_release_device() on each floor. doc_release_device() frees the\\ndocg3 struct via kfree(docg3) at line 1881. After the loop,\\ndocg3-\u003ecascade-\u003ebch dereferences the already-freed pointer.\\n\\nFix this by accessing cascade-\u003ebch directly, which is equivalent\\nsince docg3-\u003ecascade points back to the same cascade struct, and\\nis already available as a local variable. This also removes the\\nnow-unused docg3 local variable.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/16f6588a3b7a2a20d10ad9b766be74c60ba347cc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2bf706fe7831b319f23a85b9728f961cfed40c3e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8408655ec8344511667b61d8257dc59c80ee3391\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ca19808bc6fac7e29420d8508df569b346b3e339\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d26f8c361f751c188b7ebaf8189aa0258968fd98\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d49628d63d4e6bbc8a1621afb88e5fc901611bee\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d89044889ecd11b0c2f86663597246e9bdd25679\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f5d2ed4ed47d3906e2495a3537a48b127f497a17\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…