{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "7467147ef9bf42d1ea5b3314c7a05cd542b3518e"
            },
            {
              "fixed": "38d80307decc1132626a30e2a62af734630ecca5"
            },
            {
              "fixed": "4869d0e4e48a5301b267d359b2561c4080791a55"
            },
            {
              "fixed": "5f2c964a058581e1557c32d5de651c67a80438a7"
            },
            {
              "fixed": "ccb679fdae2e62ed92fd9acb25ed809c0226fcc6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.10.0"
            },
            {
              "fixed": "6.12.75"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45950.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()\n\nThe starfive_aes_aead_do_one_req() function allocates rctx-\u003eadata with\nkzalloc() but fails to free it if sg_copy_to_buffer() or\nstarfive_aes_hw_init() fails, which lead to memory leaks.\n\nSince rctx-\u003eadata is unconditionally freed after the write_adata\noperations, ensure consistent cleanup by freeing the allocation in these\nearlier error paths as well.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.",
  "id": "CVE-2026-45950",
  "modified": "2026-07-08T05:38:05.509131223Z",
  "published": "2026-05-27T12:18:06.482Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/38d80307decc1132626a30e2a62af734630ecca5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4869d0e4e48a5301b267d359b2561c4080791a55"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5f2c964a058581e1557c32d5de651c67a80438a7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ccb679fdae2e62ed92fd9acb25ed809c0226fcc6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45950.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45950"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()"
}