{"id":"CVE-2026-139285","summary":"gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path\n\nA drive-by review by Sashiko reports that, where the line has not been\nconfigured as an output, gpiod_set_array_value_complex() can return\nwithout freeing potentially alloced bitmaps, thus leaking memory.\n\nCleanup the bitmaps before returning.","modified":"2026-12-01T21:02:37.433272899Z","published":"2026-11-30T13:33:20.434Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139285.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/138d7365c20efe47b4caa92c46f086ec39b81f78"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d271dafede0f3ed47827c663feacd47da8234224"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d617afb485c111a15eccb687a724e7fb51898425"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139285.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139285"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"92ac7de3175e3c17cbb76ae752b598cfb9dadf49"},{"fixed":"d617afb485c111a15eccb687a724e7fb51898425"},{"fixed":"d271dafede0f3ed47827c663feacd47da8234224"},{"fixed":"138d7365c20efe47b4caa92c46f086ec39b81f78"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139285.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.16.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139285.json"}}],"schema_version":"1.9.2"}