CVE catalog

CVE-2026-31732

In the Linux kernel, the following vulnerability has…

[CVE catalog]

In the Linux kernel, the following vulnerability has been resolved: gpio: Fix resource leaks on errors in gpiochip_add_data_with_key() Since commit aab5c6f20023 ("gpio: set device type for GPIO chips"), `gdev->dev.release` is unset. As a result, the reference count to `gdev->dev` isn't dropped on the error handling paths. Drop the reference on errors. Also reorder the instructions to make the error handling simpler. Now gpiochip_add_data_with_key() roughly looks like: >>> Some memory allocation. Go to ERR ZONE 1 on errors. >>> device_initialize(). gpiodev_release() takes over the responsibility for freeing the resources of `gdev->dev`. The subsequent error handling paths shouldn't go through ERR ZONE 1 again which leads to double free. >>> Some initialization mainly on `gdev`. >>> The rest of initialization. Go to ERR ZONE 2 on errors. >>> Chip registration success and exit. >>> ERR ZONE 2. gpio_device_put() and exit. >>> ERR ZONE 1.

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.12% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "linux",
      "status": "fixed",
      "release": "sid",
      "version": "7.2.13-1"
    },
    {
      "name": "linux",
      "status": "fixed",
      "release": "forky",
      "version": "7.2.12-1"
    },
    {
      "name": "linux",
      "status": "fixed",
      "release": "trixie",
      "version": "6.12.107-1"
    },
    {
      "name": "linux",
      "status": "fixed",
      "release": "trixie-security",
      "version": "6.12.113-1"
    },
    {
      "name": "linux",
      "status": "not affected",
      "release": "bookworm",
      "version": "6.1.176-1"
    },
    {
      "name": "linux",
      "status": "not affected",
      "release": "bookworm-security",
      "version": "6.1.190-1"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "linux",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "6.19.12-1"
    },
    {
      "bug": null,
      "name": "linux",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "6.19.12-1"
    },
    {
      "bug": null,
      "name": "linux",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "6.12.95-1"
    },
    {
      "bug": null,
      "name": "linux",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "unimportant",
      "fixed_version": "0"
    }
  ],
  "distribution_packages": [
    {
      "name": "linux_kernel",
      "ecosystem": "cpe",
      "fixed_version": "6.18.22"
    },
    {
      "name": "linux_kernel",
      "ecosystem": "cpe",
      "fixed_version": "6.19.12"
    },
    {
      "name": "linux_kernel",
      "ecosystem": "cpe",
      "fixed_version": ""
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [bpftool]Unknown

    Source package: [linux]

    Details (6)
    • 7.1.0+6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 7.1.0+6.1.176-1 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 7.5.0+6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 7.5.0+6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 7.1.0+6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 7.1.0+6.1.180-1 · arm64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • [intel-sdsi]Unknown

    Source package: [linux]

    Details (1)
    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

  • [libcpupower1]Unknown

    Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • [linux-bpf-dev]Unknown

    Source package: [linux]

    Details (2)
    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (2)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (4)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • [linux-doc]Unknown

    Source package: [linux]

    Details (32)
    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.43-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.43-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.57-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.57-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.63-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.63-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.69-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.69-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.73-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.73-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.74-2~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.74-2~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.85-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.85-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.86-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.86-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.88-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.88-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.90-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.90-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.90-2~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.90-2~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.94-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.94-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • [linux-doc-6.1]Unknown

    Source package: [linux]

    Details (6)
    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (2)
    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (2)
    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.176-1 · amd64 · bookworm

      Not affected

      nvd · linux · debian · bookworm

Next results

Observed:

References