gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| LinuxLinux | — | 記載なし |
| LinuxKernel |
6.12.114 以上 6.12.115 未満→ 6.12.115 6.15.0 以上 6.18.59 未満→ 6.18.59 6.19.0 以上 7.2.13 未満→ 7.2.13 |
6.12.115 6.18.59 7.2.13 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- BellSoft Alpaquita BELL-CVE-2026-99190 linux-lts 修正版あり
- Debian DEBIAN-CVE-2026-99190 linux 修正版あり
- Ubuntu UBUNTU-CVE-2026-99190 linux-vmware, linux-riscv, linux-realtime ほか 13 件 修正版あり
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
In the Linux kernel, the following vulnerability has been resolved:
gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
A drive-by review by Sashiko reports that, after a failed call to
gpiochip_set_multiple(), gpiod_set_array_value() returns abruptly,
bypassing the freeing of possibly alloced bitmaps, potentially leaking
memory. It is an unlikely error path, but is possible.
Defer the return code check until after the bitmap_free() block.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com
- web git.kernel.org