UNKNOWN NVD
CVE-2026-72240
In the Linux kernel, the following vulnerability has been resolved: mfd: sm501: Fix reference leak on failed device registration When platform_device_register
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.
References
- https://git.kernel.org/stable/c/0baf9d43a7b7b43df2900bd8656e75b725028b6e
- https://git.kernel.org/stable/c/16a42c88c4667fa0bd944e438a667e059551f1f1
- https://git.kernel.org/stable/c/2ff8156fd500d54c61430b6834137fd0a07047ce
- https://git.kernel.org/stable/c/760a1029692f1d788dc11aa636a3bf432e58b240
- https://git.kernel.org/stable/c/8c2f0b42fc252e1bf1c7746447091a468e784ca1
This unknown severity vulnerability was published on 2026-08-15 via NVD.
vulnfeed aggregates 11655 vulnerabilities from NVD, CISA KEV,
Ubuntu, Debian, Red Hat, Kubernetes, Exploit-DB, OSS-Security, GitHub and OpenStack — updated every 4 hours.