CVE-2026-143246

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143247In the Linux kernel, the following vulnerability has been resolved: drm/xe/svm: Preserve default PAT index when resetting VMA attributes xCVE-2026-143248In the Linux kernel, the following vulnerability has been resolved: drm/xe: Rebind BOs evicted before the first LR queue A VM bind can eviCVE-2026-143249In the Linux kernel, the following vulnerability has been resolved: drm/xe/gt: Disable GT reset worker before engine teardown During tear-CVE-2026-143253.5The Drag and Drop Multiple File Upload for Contact Form 7 WordPress plugin before 1.3.9.9 does not escape one of its settings before using iCVE-2026-143250In the Linux kernel, the following vulnerability has been resolved: drm/xe/guc: Protect timeout handling from device unplug The GuC scheduCVE-2026-143251In the Linux kernel, the following vulnerability has been resolved: drm/xe: Prevent VF memory IRQ from accessing a torn-down engine The VFCVE-2026-143252In the Linux kernel, the following vulnerability has been resolved: tracing/probes: bound symstr stores to reserved length Traceprobe calcCVE-2026-143253In the Linux kernel, the following vulnerability has been resolved: ipv6: Check the Home Address option again before its address is used iCVE-2026-143254In the Linux kernel, the following vulnerability has been resolved: calipso: do not charge request socket options to the listener calipso_CVE-2026-143255In the Linux kernel, the following vulnerability has been resolved: netlink: Do not call the unbind callback with the table locked When neCVE-2026-143256In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: IPoIB, Fix QPN lookup race The parent RX completion path caCVE-2026-143257In the Linux kernel, the following vulnerability has been resolved: locking/osq: Fix unlink queue corruption Very similar to commit 50972f
CVE-2026-143246: Unscored | Vulnix