CVE-2026-45926

rust: pwm: Fix potential memory leak on init error

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
May 27, 2026
Reserved
May 13, 2026

Read the record on cve.org

Description

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().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7b3dce814a15bc5d9fb6124cd945291012c4ebb9 to before baa8b7097d9cc68ff85819cf683972a58c2ce32bAffected
  • 7b3dce814a15bc5d9fb6124cd945291012c4ebb9 to before a2633dc243c35754a0c2270131d8a199c987c9bfAffected
LinuxLinux
  • 6.19Affected
  • before 6.19Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 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.