{"id":"CVE-2026-139285","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:18:52.083","lastModified":"2026-11-30T14:18:52.083","vulnStatus":"Received","cveTags":[],"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() 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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/gpio/gpiolib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"92ac7de3175e3c17cbb76ae752b598cfb9dadf49","lessThan":"d617afb485c111a15eccb687a724e7fb51898425","versionType":"git","status":"affected"},{"version":"92ac7de3175e3c17cbb76ae752b598cfb9dadf49","lessThan":"d271dafede0f3ed47827c663feacd47da8234224","versionType":"git","status":"affected"},{"version":"92ac7de3175e3c17cbb76ae752b598cfb9dadf49","lessThan":"138d7365c20efe47b4caa92c46f086ec39b81f78","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/gpio/gpiolib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.16","status":"affected"},{"version":"0","lessThan":"6.16","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/138d7365c20efe47b4caa92c46f086ec39b81f78","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d271dafede0f3ed47827c663feacd47da8234224","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d617afb485c111a15eccb687a724e7fb51898425","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}