{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5d4d263e1c6b6b18acb4d67fd3b9af71b7404924"
            },
            {
              "fixed": "ecbde88e544ff016fa08bbf2156dc431bb123e9b"
            },
            {
              "fixed": "d0f98e14c010bcf27898b635a54c1994ac4110a8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58022.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmailbox: th1520: Fix a NULL vs IS_ERR() bug\n\nThe devm_ioremap() function doesn't return error pointers, it returns\nNULL.  Update the error checking to match.",
  "id": "CVE-2024-58022",
  "modified": "2026-04-01T23:08:17.548923698Z",
  "published": "2025-02-27T20:00:51.512Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d0f98e14c010bcf27898b635a54c1994ac4110a8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ecbde88e544ff016fa08bbf2156dc431bb123e9b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58022.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58022"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "mailbox: th1520: Fix a NULL vs IS_ERR() bug"
}