CVE-2026-143246
Last modified
CVE-2026-143246 is a vulnerability of currently unknown severity. 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.
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= bf9346f5d47b4506aafbc384dfb5796b0adc3f8d, < 5e22a760a23ee3298b525b1bc6b0647272d6bf4b; >= bf9346f5d47b4506aafbc384dfb5796b0adc3f8d, < 233b889db63c316ec558db34ae15dcb4784dc39f; >= bf9346f5d47b4506aafbc384dfb5796b0adc3f8d, < b2a161687acdc297aa91fec7fa0966b5aecf0d16 |
| Linux | Linux | 4.20 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-143246?
How severe is CVE-2026-143246?
How do I fix CVE-2026-143246?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-143240In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-143241In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143242In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143243In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143244In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143245In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143247In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143248In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-143249In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14325The Drag and Drop Multiple File Upload for Contact Form 7 Wo…3.5
- CVE-2026-143250In the Linux kernel, the following vulnerability has been re…
- CVE-2026-143251In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-143246?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
