PT-2026-167104

CVE-2026-143246

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
gpiolib: fix GPIO descriptor leak in gpiod get array()
In gpiod get array(), descs->ndescs is used as the loop induction variable and is only incremented at the end of each iteration. When krealloc() fails on the first iteration (when index is 0), descs->desc[0] has already been acquired via gpiod get index(), but descs->ndescs is still 0. Consequently, gpiod put array() frees descs without releasing descs->desc[0], leaking the descriptor.
Fix this by using a dedicated loop induction variable and incrementing descs->ndescs immediately upon storing the retrieved descriptor. Additionally, since the fast-path array info setup only executes for the first element (index 0), simplify the bitmap set() calls to start at bit 0 for count bits instead of calculating offsets from the loop index.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾