CVE-2026-31732
publishedgpio: Fix resource leaks on errors in gpiochip_add_data_with_key()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxaab5c6f200238ac45001bec3d5494fff8438a8dc to < a500e1837c4266ddb05b39b3e1cc71f49a43ffa5 · aab5c6f200238ac45001bec3d5494fff8438a8dc to < f0cf9c7b7c281956cc0dec163132cd96f76e1d60 · aab5c6f200238ac45001bec3d5494fff8438a8dc to < fb4584d2b324c522404c733c65840a1a6519ada8 · aab5c6f200238ac45001bec3d5494fff8438a8dc to < 16fdabe143fce2cbf89139677728e17e21b46c28 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.12.95 through 6.12.* (unaffected · semver) · 6.18.22 through 6.18.* (unaffected · semver) · 6.19.12 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1746 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2014 | Fixed | Not stated | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.95-1 | DSA-6381-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-docaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-206.104.3.3.el9uek | ELSA-2026-500248 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: gpio: Fix resource leaks on errors in gpiochip_add_data_with_key() Since commit aab5c6f20023 ("gpio: set device type for GPIO chips"), `gdev->dev.release` is unset. As a result, the reference count to `gdev->dev` isn't dropped on the error handling paths. Drop the reference on errors. Also reorder the instructions to make the error handling simpler. Now gpiochip_add_data_with_key() roughly looks like: >>> Some memory allocation. Go to ERR ZONE 1 on errors. >>> device_initialize(). gpiodev_release() takes over the responsibility for freeing the resources of `gdev->dev`. The subsequent error handling paths shouldn't go through ERR ZONE 1 again which leads to double free. >>> Some initialization mainly on `gdev`. >>> The rest of initialization. Go to ERR ZONE 2 on errors. >>> Chip registration success and exit. >>> ERR ZONE 2. gpio_device_put() and exit. >>> ERR ZONE 1.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | aab5c6f200238ac45001bec3d5494fff8438a8dc to < a500e1837c4266ddb05b39b3e1cc71f49a43ffa5 (affected · git)aab5c6f200238ac45001bec3d5494fff8438a8dc to < f0cf9c7b7c281956cc0dec163132cd96f76e1d60 (affected · git)aab5c6f200238ac45001bec3d5494fff8438a8dc to < fb4584d2b324c522404c733c65840a1a6519ada8 (affected · git)aab5c6f200238ac45001bec3d5494fff8438a8dc to < 16fdabe143fce2cbf89139677728e17e21b46c28 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.12.95 through 6.12.* (unaffected · semver)6.18.22 through 6.18.* (unaffected · semver)6.19.12 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
gpio: Fix resource leaks on errors in gpiochip_add_data_with_key()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b559e0b8fd1e611cb999b3e6faf7a3759084dc42500ee3f29c0f22ae7626b35a
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record