CVE-2026-143246

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.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-03
Patch available
Yes

Affected versions

Linux kernel versions 4.20 and later are affected. Fixed in 6.18.66, 7.3.7, 7.4-rc3 and their respective stable series.

Affected from
≥ 4.20
Fixed in
✓ 6.18.66 6.18.x ✓ 7.3.7 7.3.x ✓ 7.4-rc3

Frequently asked questions

  • What is CVE-2026-143246?

    CVE-2026-143246 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.20 onward and has been patched in 6.18.66, 7.3.7 and 7.4-rc3. CVE-2026-143246 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-143246?

    Yes. CVE-2026-143246 has been patched. Fixed versions include 6.18.66, 7.3.7 and 7.4-rc3. If you are running Linux kernel 4.20 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-143246 actively exploited?

    No. CVE-2026-143246 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.