CVE-2026-45926Published May 27, 2026 · May 27Updated Oct 28
rust: pwm: Fix potential memory leak on init error
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rust: pwm: Fix potential memory leak on init error
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().
From the CVE record · Linux
The Linux kernel can leak an allocated PWM chip if __pinned_init() fails during initialization. The input does not describe an attacker-controlled trigger, access requirements, or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.