{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4670db6f32e9379f5ab6c9bb2a6787cd9b9230a9"
            },
            {
              "fixed": "ee4c064e37d4d0ddc5a7580933dbe79a2c6acafc"
            },
            {
              "fixed": "5e11741aec3b242a197250b473c37b58f53a16b6"
            },
            {
              "fixed": "b0dc7e7c56573e7a52080f25f3179a45f3dd7e6f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.0"
            },
            {
              "fixed": "6.18.22"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31783.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback\n\naml_sfc_probe() registers the on-host NAND ECC engine, but teardown was\nmissing from both probe unwind and remove-time cleanup. Add a devm cleanup\naction after successful registration so\nnand_ecc_unregister_on_host_hw_engine() runs automatically on probe\nfailures and during device removal.",
  "id": "CVE-2026-31783",
  "modified": "2026-07-08T05:38:47.123340789Z",
  "published": "2026-05-01T14:15:09.279Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5e11741aec3b242a197250b473c37b58f53a16b6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b0dc7e7c56573e7a52080f25f3179a45f3dd7e6f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ee4c064e37d4d0ddc5a7580933dbe79a2c6acafc"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31783.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31783"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback"
}