AZL-118409: CVE-2026-143246 affecting package kernel 6.6.161.1-1

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

gpiolib: fix GPIO descriptor leak in gpiodgetarray()

In gpiodgetarray(), 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 gpiodgetindex(), but descs->ndescs is still 0. Consequently, gpiodputarray() 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 arrayinfo setup only executes for the first element (index 0), simplify the bitmapset() calls to start at bit 0 for count bits instead of calculating offsets from the loop index.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In gpiod_get_array(), use a dedicated loop induction variable instead of descs->ndescs, and update descs->ndescs immediately after storing each retrieved descriptor so cleanup includes it if a later operation fails. For the first-element fast path, simplify bitmap_set() calls to start at bit 0 for the count bits.

Event History

Dec 3, 2026
Advisory Published
via OSV·10:18 AM
Data Sourced
via OSV·10:18 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What conditions are required to trigger the descriptor leak?

The failure path requires gpiod_get_array() to acquire the first GPIO descriptor and then have krealloc() fail during that first iteration. In that case, the descriptor is stored but not counted, so cleanup does not release it.

2

What is the practical impact of the flaw?

The affected error path leaks a GPIO descriptor. The provided information describes a resource leak and does not establish code execution, privilege escalation, or data exposure.

3

How can I determine whether my system is affected?

The supplied package information identifies kernel version 6.6.161.1-1. Systems using that package should be evaluated for exposure to the gpiod_get_array() allocation-failure path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203