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.
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The sm501 driver in the Linux kernel contains a reference‑leak flaw that occurs when platform_device_register() fails during sm501_register_device(). The device structure is initialized but the failure path returns without dropping the reference, causing a resource leak that can accumulate over time. This unchecked growth can exhaust kernel memory. The weakness is represented by CWE‑772.

Affected Systems

The sm501 driver resides in the Linux kernel source. Only Linux kernels that include and load the sm501 driver are affected. The exact version range is not specified, so administrators should identify whether their kernel build loads or compiles this driver to assess risk.

Risk and Exploitability

The EPSS score is listed as < 1 %, and the CVSS score is 5.5, indicating a moderate level of severity but a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation would require repeatedly triggering sm501_device registration failures, which typically requires local privilege or the ability to cause such failures.Based on the description, it is inferred that the attack vector involves local privilege or the ability to cause registration failures. No known remote trigger exists, so the risk to externally exposed systems remains low.

Generated by OpenCVE AI on August 22, 2026 at 10:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the sm501 reference‑leak fix, as referenced in the advisory commit URLs.
  • Reboot the system to load the patched kernel and allow all drivers to restart without leaked references.
  • If sm501 hardware is not required, recompile the kernel with the sm501 driver disabled or blacklist the module to prevent registration attempts.
  • Optionally, monitor kernel logs for repeated device registration failures, which may indicate exploitation attempts.

Generated by OpenCVE AI on August 22, 2026 at 10:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-771

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sat, 15 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-771

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title mfd: sm501: Fix reference leak on failed device registration
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:10:58.219Z

Reserved: 2026-08-09T03:40:39.914Z

Link: CVE-2026-72240

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:51.063

Modified: 2026-08-17T06:18:25.593

Link: CVE-2026-72240

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72240 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T11:00:04Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime