rust: pwm: Fix potential memory leak on init error
Published May 27, 2026
5.5
MEDIUMCVSS 3.1
EPSS 0.14%
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
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 6.19StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<6.19
- Version 6.19.4StatusunaffectedConstraints<=6.19.*
- Version 7.0StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 6.19 · < 6.19.4
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (7)
- https://access.redhat.com/security/cve/CVE-2026-45926 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2482049 Issue Tracking
- https://git.kernel.org/stable/c/a2633dc243c35754a0c2270131d8a199c987c9bf Patch
- https://git.kernel.org/stable/c/baa8b7097d9cc68ff85819cf683972a58c2ce32b Patch
- https://lore.kernel.org/linux-cve-announce/2026052725-CVE-2026-45926-cc92@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2026-45926
- https://www.cve.org/CVERecord?id=CVE-2026-45926
Change history (0)
No recorded changes yet.