{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b9c3b485593e07ed217cb6970d6c651558e4afb1"
            },
            {
              "fixed": "9be61e41d90ba2776093dbd3d3948a55c287d06a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d6fbfdbc12745ce24bcd348dbf7e652353b3e59c"
            },
            {
              "fixed": "49507f3317ec096f7b1946621854d8f452192d29"
            },
            {
              "fixed": "6a138f4b77a0f2915cb04faacee979a69a597321"
            },
            {
              "fixed": "f99aa28e8aae941d4743c7f7b41e3cb3aa9831cf"
            },
            {
              "fixed": "55b841a90509a1dbc61cf8fc6f72aba3e51c4d84"
            },
            {
              "fixed": "f1f969a1903573128ef2cad84cbcaa8e1fed5c96"
            },
            {
              "fixed": "6cfb1529c5398c8f68ed79f03c3c409436555286"
            },
            {
              "fixed": "7b3cc361b5942ac600f38e5dff7aed009be34964"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d00e609c7903ecaef2c2b7ccb83e3bff6169ce33"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "2f2d7dc088c37ffa857fd83d13ac27eda74b5fc5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.50"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.12.17"
            },
            {
              "fixed": "5.13"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.13.2"
            },
            {
              "fixed": "5.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.14.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138840.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmailbox: qcom-ipcc: Guard against NULL con_priv in send_data()\n\nqcom_ipcc_mbox_shutdown() clears chan-\u003econ_priv with no locking.\nqcom_ipcc_mbox_send_data() dereferences the same field without\nchecking for NULL first, so a send racing a concurrent shutdown can\ncrash:\n\n  mchan = chan-\u003econ_priv;\n  ...\n  hwirq = qcom_ipcc_get_hwirq(mchan-\u003eclient_id, mchan-\u003esignal_id);\n\nAdd the same NULL guard mbox_send_message() already uses for\nchan-\u003ecl, and bail out before dereferencing a cleared con_priv.\n\nTo close the remaining race where send_data() reads con_priv a moment\nbefore a concurrent shutdown clears it, acquire the spinlock in\nqcom_ipcc_mbox_shutdown() using the modern guard(spinlock_irqsave)\nprimitive before setting con_priv to NULL.",
  "id": "CVE-2026-138840",
  "modified": "2026-12-01T20:46:08.937351873Z",
  "published": "2026-11-30T13:25:28.401Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/49507f3317ec096f7b1946621854d8f452192d29"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/55b841a90509a1dbc61cf8fc6f72aba3e51c4d84"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6a138f4b77a0f2915cb04faacee979a69a597321"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6cfb1529c5398c8f68ed79f03c3c409436555286"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7b3cc361b5942ac600f38e5dff7aed009be34964"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9be61e41d90ba2776093dbd3d3948a55c287d06a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f1f969a1903573128ef2cad84cbcaa8e1fed5c96"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f99aa28e8aae941d4743c7f7b41e3cb3aa9831cf"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138840.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138840"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mailbox: qcom-ipcc: Guard against NULL con_priv in send_data()"
}