{"id":"CVE-2026-99190","state":"PUBLISHED","title":"gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths\n\nA drive-by review by Sashiko reports that, after a failed call to\ngpiochip_set_multiple(), gpiod_set_array_value() returns abruptly,\nbypassing the freeing of possibly alloced bitmaps, potentially leaking\nmemory. It is an unlikely error path, but is possible.\n\nDefer the return code check until after the bitmap_free() block.","publishedAt":"2026-10-28T10:35:47.107Z","updatedAt":"2026-10-30T12:42:47.929Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d73d2a569e6212f58d89efc6e66ffbb2386a47b1","status":"affected","lessThan":"68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f","versionType":"git"},{"version":"9b407312755fd5db012413ca005f0f3a661db8dd","status":"affected","lessThan":"78189c0e35abbcdab3b8ab0b764d578c02900734","versionType":"git"},{"version":"9b407312755fd5db012413ca005f0f3a661db8dd","status":"affected","lessThan":"890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d","versionType":"git"},{"version":"9b407312755fd5db012413ca005f0f3a661db8dd","status":"affected","lessThan":"c28846ca1ac6134881114d272314623c8433e372","versionType":"git"},{"version":"6.12.114","status":"affected","lessThan":"6.12.115","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.12.115","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.59","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]}],"references":["https://git.kernel.org/stable/c/68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f","https://git.kernel.org/stable/c/78189c0e35abbcdab3b8ab0b764d578c02900734","https://git.kernel.org/stable/c/890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d","https://git.kernel.org/stable/c/c28846ca1ac6134881114d272314623c8433e372"],"weaknesses":[],"ingestedAt":"2026-10-30T13:02:04.640Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99190.json","commit":"cb14bf1b43b0c9f05f7f40eae2246263fd430780","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99190","state":"PUBLISHED","datePublished":"2026-10-28T10:35:47.107Z","dateUpdated":"2026-10-30T12:42:47.929Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.400Z"},"containers":{"cna":{"title":"gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths\n\nA drive-by review by Sashiko reports that, after a failed call to\ngpiochip_set_multiple(), gpiod_set_array_value() returns abruptly,\nbypassing the freeing of possibly alloced bitmaps, potentially leaking\nmemory. It is an unlikely error path, but is possible.\n\nDefer the return code check until after the bitmap_free() block."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d73d2a569e6212f58d89efc6e66ffbb2386a47b1","status":"affected","lessThan":"68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f","versionType":"git"},{"version":"9b407312755fd5db012413ca005f0f3a661db8dd","status":"affected","lessThan":"78189c0e35abbcdab3b8ab0b764d578c02900734","versionType":"git"},{"version":"9b407312755fd5db012413ca005f0f3a661db8dd","status":"affected","lessThan":"890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d","versionType":"git"},{"version":"9b407312755fd5db012413ca005f0f3a661db8dd","status":"affected","lessThan":"c28846ca1ac6134881114d272314623c8433e372","versionType":"git"},{"version":"6.12.114","status":"affected","lessThan":"6.12.115","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.12.115","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.59","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f"},{"url":"https://git.kernel.org/stable/c/78189c0e35abbcdab3b8ab0b764d578c02900734"},{"url":"https://git.kernel.org/stable/c/890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d"},{"url":"https://git.kernel.org/stable/c/c28846ca1ac6134881114d272314623c8433e372"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:42:47.929Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.114","versionEndExcluding":"6.12.115"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.2.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}