Skip to main content
VulnerabilityPublished

CVE-2026-143246: Linux kernel · gpiolib: fix GPIO descriptor leak in gpiod_get_array()

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in b2a161687acdc297aa91fec7fa0966b5aecf0d16 : update Linux kernel when convenient.

Data as of 3 Dec 2026, 09:45 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in b2a161687acdc297aa91fec7fa0966b5aecf0d16, 233b889db63c316ec558db34ae15dcb4784dc39f, 5e22a760a23ee3298b525b1bc6b0647272d6bf4b

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade Linux kernel to b2a161687acdc297aa91fec7fa0966b5aecf0d16, 233b889db63c316ec558db34ae15dcb4784dc39f or 5e22a760a23ee3298b525b1bc6b0647272d6bf4b.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ bf9346f5d47b4506aafbc384dfb5796b0adc3f8d, < b2a161687acdc297aa91fec7fa0966b5aecf0d16
Fixed in
  • b2a161687acdc297aa91fec7fa0966b5aecf0d16
LinuxLinuxAffected
  • ≥ bf9346f5d47b4506aafbc384dfb5796b0adc3f8d, < 233b889db63c316ec558db34ae15dcb4784dc39f
Fixed in
  • 233b889db63c316ec558db34ae15dcb4784dc39f
LinuxLinuxAffected
  • ≥ bf9346f5d47b4506aafbc384dfb5796b0adc3f8d, < 5e22a760a23ee3298b525b1bc6b0647272d6bf4b
Fixed in
  • 5e22a760a23ee3298b525b1bc6b0647272d6bf4b
LinuxLinuxAffected
  • =4.20
Fixed in–

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.

References

Community reviews

Loading reviews…