Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139285

gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path

Description

In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path A drive-by review by Sashiko reports that, where the line has not been configured as an output, gpiod_set_array_value_complex() can return without freeing potentially alloced bitmaps, thus leaking memory. Cleanup the bitmaps before returning.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < d617afb485c111a15eccb687a724e7fb51898425affected
  • 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < d271dafede0f3ed47827c663feacd47da8234224affected
  • 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < 138d7365c20efe47b4caa92c46f086ec39b81f78affected

Linux Linux

Default version status: affected

  • 6.16affected
  • 0 to < 6.16unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References