{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "92ac7de3175e3c17cbb76ae752b598cfb9dadf49"
            },
            {
              "fixed": "d617afb485c111a15eccb687a724e7fb51898425"
            },
            {
              "fixed": "d271dafede0f3ed47827c663feacd47da8234224"
            },
            {
              "fixed": "138d7365c20efe47b4caa92c46f086ec39b81f78"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139285.json"
  },
  "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.",
  "id": "CVE-2026-139285",
  "modified": "2026-12-01T20:45:26.611832499Z",
  "published": "2026-11-30T13:33:20.434Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path"
}