{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "cb8ea62e6402067ba092d4c1d66a9440513a572b"
            },
            {
              "fixed": "095d692e5997ece300c89f10d903d5230090e6a0"
            },
            {
              "fixed": "a1cccbd19676fc36854535a7118ba2c27d0b84b3"
            },
            {
              "fixed": "5726b68473f7153a7f6294185e5998b7e2a230a2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.12.0"
            },
            {
              "fixed": "6.12.55"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.17.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40162.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails\n\ndevm_kasprintf() may return NULL on memory allocation failure,\nbut the debug message prints cpus-\u003edai_name before checking it.\nMove the dev_dbg() call after the NULL check to prevent potential\nNULL pointer dereference.",
  "id": "CVE-2025-40162",
  "modified": "2026-10-28T02:30:58.551796250Z",
  "published": "2025-11-12T10:26:22.883Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40162.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-40162"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails"
}