{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "cef9991e04aed3305c61c392e880f6e01a0c2ea4"
            },
            {
              "fixed": "bec21d97c968a4806939eb2946df49ea6c341bde"
            },
            {
              "fixed": "8e28a01b69f7ea8df7ceb15470cfe643b2828f4f"
            },
            {
              "fixed": "b8db9552997924b750e727a625a30eaa4603bbb9"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.17.0"
            },
            {
              "fixed": "6.18.20"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.10"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23431.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: amlogic-spisg: Fix memory leak in aml_spisg_probe()\n\nIn aml_spisg_probe(), ctlr is allocated by\nspi_alloc_target()/spi_alloc_host(), but fails to call\nspi_controller_put() in several error paths. This leads\nto a memory leak whenever the driver fails to probe after\nthe initial allocation.\n\nConvert to use devm_spi_alloc_host()/devm_spi_alloc_target()\nto fix the memory leak.",
  "id": "CVE-2026-23431",
  "modified": "2026-07-27T03:56:22.991051607Z",
  "published": "2026-04-03T15:15:17.355Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8e28a01b69f7ea8df7ceb15470cfe643b2828f4f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b8db9552997924b750e727a625a30eaa4603bbb9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bec21d97c968a4806939eb2946df49ea6c341bde"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23431.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-23431"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()"
}