CVE-2026-99989: gpiolib: Free chip resources when allocating the label fails

Published Nov 30, 2026
·
Updated

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

gpiolib: Free chip resources when allocating the label fails

If descsetlabel() fails after the chip's request callback succeeds, gpiodrequestcommit() clears GPIODFLAGREQUESTED without calling the free callback. The caller receives an error and has no GPIO to release, leaving resources acquired by the request callback held.

Call the chip's free callback, if present, before clearing the requested bit on label allocation failure. Leave request callback errors on the existing path to avoid freeing a failed request.

Affected Software

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.9.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  6. Compensating control

    On label allocation failure, call the chip’s free callback if present before clearing the requested bit.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:18 PM
Data Sourced
via MITRE·01:18 PM
Description
Data Sourced
via OSV·01:18 PM
DescriptionAffected Software
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

What condition is required for the resource leak to occur?

A GPIO chip request callback must succeed, and allocation of the GPIO label must then fail in desc_set_label(). The issue only applies when the chip provides resources through its request callback and a corresponding free callback is available but was not invoked on this failure path.

2

What is the operational impact of the vulnerable behavior?

The caller receives an error and does not obtain a GPIO handle to release, while resources acquired by the chip request callback remain held. This can leave chip resources unavailable until they are otherwise recovered.

3

How can I determine whether a system is affected?

Review the kernel's gpiod_request_commit() failure handling after desc_set_label() fails. An affected implementation clears GPIOD_FLAG_REQUESTED without first calling the GPIO chip free callback after a successful request callback.

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