Skip to content
Heist/ feed
Back to feed
UnratedFix available

iio: light: gp2ap002: fix runtime PM leak on read error

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: iio: light: gp2ap002: fix runtime PM leak on read error gp2ap002_read_raw() calls pm_runtime_get_sync() before reading the lux value, but if gp2ap002_get_lux() fails, it returns directly. This skips the pm_runtime_put_autosuspend() call at the "out" label, permanently leaking a runtime PM reference and preventing the device from autosuspending. Replace the direct return with a "goto out" to ensure the reference is properly dropped on the error path.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.261, 5.15.212, 6.1.178, 6.12.96, 6.18.39, 6.6.145, 7.1.4
CVEs
CVE-2026-64494
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 08:57 UTC · Revision 1

Source evidence

iio: light: gp2ap002: fix runtime PM leak on read error

core-osv · Original source

Published 25 Jul 2026, 08:51 UTC

In the Linux kernel, the following vulnerability has been resolved: iio: light: gp2ap002: fix runtime PM leak on read error gp2ap002_read_raw() calls pm_runtime_get_sync() before reading the lux value, but if gp2ap002_get_lux() fails, it returns directly. This skips the pm_runtime_put_autosuspend() call at the "out" label, permanently leaking a runtime PM reference and preventing the device from autosuspending. Replace the direct return with a "goto out" to ensure the reference is properly dropped on the error path.

osv:CVE-2026-64494

Kernel

Fixed versions: 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4

Complete source record
{
  "id": "e05a1d51e9a827686fa3319fdf3c9529a58f387ebafae063d126d0b5dbd15041",
  "url": "https://osv.dev/vulnerability/CVE-2026-64494",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: light: gp2ap002: fix runtime PM leak on read error",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: iio: light: gp2ap002: fix runtime PM leak on read error gp2ap002_read_raw() calls pm_runtime_get_sync() before reading the lux value, but if gp2ap002_get_lux() fails, it returns directly. This skips the pm_runtime_put_autosuspend() call at the \"out\" label, permanently leaking a runtime PM reference and preventing the device from autosuspending. Replace the direct return with a \"goto out\" to ensure the reference is properly dropped on the error path.",
    "evidence": "osv:CVE-2026-64494",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.261",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.212",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.178",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.145",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.96",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.39",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-64494",
      "aliases": [
        "CVE-2026-64494"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f6dbf83c17cb223ceabd7c42d441414f3e0e8a86"
                },
                {
                  "fixed": "62e0d74821a02f0e0c5c79b99ae64dc83a9a90f5"
                },
                {
                  "fixed": "7110201c6b21455240c63388f30113f3baafacfc"
                },
                {
                  "fixed": "2593f0c6ea37df168975694a3b17e7086f11453e"
                },
                {
                  "fixed": "f350883989ced96d6da7f582f9a6f9c6ffc94e34"
                },
                {
                  "fixed": "29137052c4485c74bc2d1b0717f69ca4de14274f"
                },
                {
                  "fixed": "0c655d067ac69ee24e2e9d706c54179ea58a43db"
                },
                {
                  "fixed": "2ebaea7f3089decb01a8294d89d7e0cf288146c4"
                },
                {
                  "fixed": "38b72267b7e22768a1f26d9935de4e1752a1dc85"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.7.6"
                },
                {
                  "fixed": "5.8"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f3e84bf3f86bb3b7bd50666bb8ef7a203a656ca3"
                }
              ]
            }
          ],
          "versions": [
            "v5.7.19",
            "v5.7.18",
            "v5.7.17",
            "v5.7.16",
            "v5.7.15",
            "v5.7.14",
            "v5.7.13",
            "v5.7.12",
            "v5.7.11",
            "v5.7.10",
            "v5.7.9",
            "v5.7.8",
            "v5.7.7",
            "v5.7.6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64494.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.8.0"
                },
                {
                  "fixed": "5.10.261"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.212"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.178"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.145"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.96"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.39"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64494.json"
          }
        }
      ],
      "modified": "2026-10-08T02:51:30.842859215Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0c655d067ac69ee24e2e9d706c54179ea58a43db",
        "https://git.kernel.org/stable/c/2593f0c6ea37df168975694a3b17e7086f11453e",
        "https://git.kernel.org/stable/c/29137052c4485c74bc2d1b0717f69ca4de14274f",
        "https://git.kernel.org/stable/c/2ebaea7f3089decb01a8294d89d7e0cf288146c4",
        "https://git.kernel.org/stable/c/38b72267b7e22768a1f26d9935de4e1752a1dc85",
        "https://git.kernel.org/stable/c/62e0d74821a02f0e0c5c79b99ae64dc83a9a90f5",
        "https://git.kernel.org/stable/c/7110201c6b21455240c63388f30113f3baafacfc",
        "https://git.kernel.org/stable/c/f350883989ced96d6da7f582f9a6f9c6ffc94e34",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64494.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-64494",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64494.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-64494",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 98317,
  "published_at": "2026-07-25T08:51:51.747+00:00"
}