Back

MEDIUM

rust: pwm: Fix potential memory leak on init error

Published May 27, 2026

Description

When initializing a PWM chip using pwmchip_alloc(), the allocated device owns an initial reference that must be released on all error paths.

If __pinned_init() were to fail, the allocated pwm_chip would currently leak because the error path returns without calling pwmchip_put().

Affected products

Remediation

No remediation recorded yet.

Weaknesses (2)

References (7)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published May 27, 2026
Updated May 27, 2026
Reserved May 13, 2026
NVD
Status Undergoing Analysis
Modified Jun 25, 2026
Red Hat
Severity n/a
Public date May 27, 2026