CVE-2026-45926 PUBLISHED

rust: pwm: Fix potential memory leak on init error

Assigner: Linux
Reserved: 13.05.2026 Published: 27.05.2026 Updated: 27.05.2026

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

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 7b3dce814a15bc5d9fb6124cd945291012c4ebb9 to baa8b7097d9cc68ff85819cf683972a58c2ce32b (excl.)
  • affected from 7b3dce814a15bc5d9fb6124cd945291012c4ebb9 to a2633dc243c35754a0c2270131d8a199c987c9bf (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.19 is affected
  • unaffected from 0 to 6.19 (excl.)
  • unaffected from 6.19.4 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References