CVE-2026-72240

mfd: sm501: Fix reference leak on failed device registration

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before bbb1ecaed4ed7680e63d3a0f143f03de32de5d6eAffected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before e2dac91380a10e9e8d5883fb73ce9d9b390a629cAffected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before 0baf9d43a7b7b43df2900bd8656e75b725028b6eAffected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before a3e340d506c1036a747fb0972aebf1063f7ef30eAffected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before 760a1029692f1d788dc11aa636a3bf432e58b240Affected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before 16a42c88c4667fa0bd944e438a667e059551f1f1Affected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before 2ff8156fd500d54c61430b6834137fd0a07047ceAffected
  • b6d6454fdb66f3829af8b92ab06825b6060fdf7e to before 8c2f0b42fc252e1bf1c7746447091a468e784ca1Affected
LinuxLinux
  • 2.6.21Affected
  • before 2.6.21Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.