{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-72240",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-72240"
  ],
  "published": "2026-08-15T06:04:33Z",
  "summary": "mfd: sm501: Fix reference leak on failed device registration",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmfd: sm501: Fix reference leak on failed device registration\n\nWhen platform_device_register() fails in sm501_register_device(), the\nembedded struct device in pdev has already been initialized by\ndevice_initialize(), but the failure path only reports the error and\nreturns without dropping the device reference for the current platform\ndevice:\n\n  sm501_register_device()\n    -> platform_device_register(pdev)\n       -> device_initialize(&pdev->dev)\n       -> setup_pdev_dma_masks(pdev)\n       -> platform_device_add(pdev)\n\nThis leads to a reference leak when platform_device_register() fails.\nFix this by calling platform_device_put() before returning the error.\n\nThe issue was identified by a static analysis tool I developed and\nconfirmed by manual review.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.178",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-72240"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bbb1ecaed4ed7680e63d3a0f143f03de32de5d6e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e2dac91380a10e9e8d5883fb73ce9d9b390a629c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0baf9d43a7b7b43df2900bd8656e75b725028b6e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a3e340d506c1036a747fb0972aebf1063f7ef30e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/760a1029692f1d788dc11aa636a3bf432e58b240"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/16a42c88c4667fa0bd944e438a667e059551f1f1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2ff8156fd500d54c61430b6834137fd0a07047ce"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8c2f0b42fc252e1bf1c7746447091a468e784ca1"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-17T05:24:08Z"
  }
}
