Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70496365A0F for ; Sat, 15 Aug 2026 06:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774692; cv=none; b=lSA9x6LZ4i3I0cvq47xH+XBwd/ZMomSaVtgRvQFfdWlvhEpEkQHUUbQhdjISPciehcJRGO7V21rSFYnGJhvoLcbPWxZGF95rSFGcwhzGCt5QQ/ptqZlj9Q5xGcyTXNxuF9V5H8SvZ3M510jX6Ce4L3fJ6yDOlh+OIwXPbTOai4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774692; c=relaxed/simple; bh=v0PYwCO0RG1YhqR1BTBr6b4Je5oruaqeqhSm89nIsrA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=taij7bYWN8qbGFTC3ZrUnWxi7RAMvF7HBp4LYbTM9cmqsJ8l5RXU6vrQpR5UKXFwWrP39WZlS3D7uDOkcFg3VSgTbenCx/zSsJWCGhOmGs6XIb6ODj62MqXNVxsZUFT/Kc+4vy9AC8fpUdd3CIRUo0C8D55ljI2pXk6VLQng7X8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q0LNdFcT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q0LNdFcT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C74721F000E9; Sat, 15 Aug 2026 06:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774691; bh=s6jhtdyNlSKnvoxNt+7BuIEjPt5tUyXrJblbYqu+eVU=; h=From:To:Cc:Subject:Date:Reply-To; b=Q0LNdFcTnXMFAYYuOMPSCNYr9H+0rCcKw2fxuVVfDsHjcDdLAOLNRii7tHFgx+q9f o7r1ktSXZzqPcw6f7RgYIaVemqHHcMs4G4/4Dztdf3R4NGgBLUTgzNtPu5HWojtHcE ikIDfRY//1oFmqVLCNc2Vd6dFIzdGiPHKamLdxk4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72240: mfd: sm501: Fix reference leak on failed device registration Date: Sat, 15 Aug 2026 15:05:19 +0900 Message-ID: <2026081551-CVE-2026-72240-d986@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3868; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0wjLfG84tukny3BHQKQZQPOnbS3TOf0+fGuxRk3JacI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDOcT7Q06Tif5dCmr1H869tpaqYs/v7H54+77k1lum at4PZPqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImc28uw4BD3ksWlc69K9jm8 4yhfcvV17ZkEU4Z5elZXLObMeFo2K3xq/q4nEomiwvIxAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mfd: sm501: Fix reference leak on failed device registration When platform_device_register() fails in sm501_register_device(), the embedded struct device in pdev has already been initialized by device_initialize(), but the failure path only reports the error and returns without dropping the device reference for the current platform device: sm501_register_device() -> platform_device_register(pdev) -> device_initialize(&pdev->dev) -> setup_pdev_dma_masks(pdev) -> platform_device_add(pdev) This leads to a reference leak when platform_device_register() fails. Fix this by calling platform_device_put() before returning the error. The issue was identified by a static analysis tool I developed and confirmed by manual review. The Linux kernel CVE team has assigned CVE-2026-72240 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 5.10.261 with commit bbb1ecaed4ed7680e63d3a0f143f03de32de5d6e Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 5.15.212 with commit e2dac91380a10e9e8d5883fb73ce9d9b390a629c Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 6.1.178 with commit 0baf9d43a7b7b43df2900bd8656e75b725028b6e Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 6.6.145 with commit a3e340d506c1036a747fb0972aebf1063f7ef30e Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 6.12.97 with commit 760a1029692f1d788dc11aa636a3bf432e58b240 Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 6.18.40 with commit 16a42c88c4667fa0bd944e438a667e059551f1f1 Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 7.1.5 with commit 2ff8156fd500d54c61430b6834137fd0a07047ce Issue introduced in 2.6.21 with commit b6d6454fdb66f3829af8b92ab06825b6060fdf7e and fixed in 7.2-rc1 with commit 8c2f0b42fc252e1bf1c7746447091a468e784ca1 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-72240 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/mfd/sm501.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/bbb1ecaed4ed7680e63d3a0f143f03de32de5d6e https://git.kernel.org/stable/c/e2dac91380a10e9e8d5883fb73ce9d9b390a629c https://git.kernel.org/stable/c/0baf9d43a7b7b43df2900bd8656e75b725028b6e https://git.kernel.org/stable/c/a3e340d506c1036a747fb0972aebf1063f7ef30e https://git.kernel.org/stable/c/760a1029692f1d788dc11aa636a3bf432e58b240 https://git.kernel.org/stable/c/16a42c88c4667fa0bd944e438a667e059551f1f1 https://git.kernel.org/stable/c/2ff8156fd500d54c61430b6834137fd0a07047ce https://git.kernel.org/stable/c/8c2f0b42fc252e1bf1c7746447091a468e784ca1