EnvMap GitHub

CVE-2026-143246

gpiolib: fix GPIO descriptor leak in gpiod_get_array()

Not scored yetEPSS 0.17%Received

Description

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from bf9346f5d47b4506aafbc384dfb5796b0adc3f8d before 5e22a760a23ee3298b525b1bc6b; from bf9346f5d47b4506aafbc384dfb5796b0adc3f8d before 233b889db63c316ec558db34ae1; from bf9346f5d47b4506aafbc384dfb5796b0adc3f8d before b2a161687acdc297aa91fec7fa0; 4.20

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.17% chance of exploitation in the next 30 days, higher than 6% of all CVEs (as of 4 December 2026).

References

Record

Published10:18 UTC, 3 December 2026
Last changed10:18 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-143246 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.