Skip to content
Heist/ feed
Back to feed
UnratedFix available

s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs With commit bcb5d6c76903 ("s390/pci: introduce lock to synchronize state of zpci_dev's") the code to ignore power off of a PF that has child VFs was changed from a direct return to a goto to the unlock and pci_dev_put() section. The change however left the existing pci_dev_put() untouched resulting in a doubple put. This can subsequently cause a use after free if the struct pci_dev is released in an unexpected state. Fix this by removing the extra pci_dev_put().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.29, 6.14.7
CVEs
CVE-2025-37946
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:04 UTC · Revision 1

Source evidence

s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs

core-osv · Original source

Published 20 May 2025, 16:01 UTC

In the Linux kernel, the following vulnerability has been resolved: s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs With commit bcb5d6c76903 ("s390/pci: introduce lock to synchronize state of zpci_dev's") the code to ignore power off of a PF that has child VFs was changed from a direct return to a goto to the unlock and pci_dev_put() section. The change however left the existing pci_dev_put() untouched resulting in a doubple put. This can subsequently cause a use after free if the struct pci_dev is released in an unexpected state. Fix this by removing the extra pci_dev_put().

osv:CVE-2025-37946

Kernel

Fixed versions: 6.12.29, 6.14.7

Complete source record
{
  "id": "871acbab5bb725f0b895d7397f3ce21bd4a5cb7540f3b2d6c4641aab848d42da",
  "url": "https://osv.dev/vulnerability/CVE-2025-37946",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs With commit bcb5d6c76903 (\"s390/pci: introduce lock to synchronize state of zpci_dev's\") the code to ignore power off of a PF that has child VFs was changed from a direct return to a goto to the unlock and pci_dev_put() section. The change however left the existing pci_dev_put() untouched resulting in a doubple put. This can subsequently cause a use after free if the struct pci_dev is released in an unexpected state. Fix this by removing the extra pci_dev_put().",
    "evidence": "osv:CVE-2025-37946",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.29",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-37946",
      "aliases": [
        "CVE-2025-37946"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bcb5d6c769039c8358a2359e7c3ea5d97ce93108"
                },
                {
                  "fixed": "c488f8b53e156d6dcc0514ef0afa3a33376b8f9e"
                },
                {
                  "fixed": "957529baef142d95e0d1b1bea786675bd47dbe53"
                },
                {
                  "fixed": "05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37946.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.9.0"
                },
                {
                  "fixed": "6.12.29"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.14.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37946.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.048158895Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1",
        "https://git.kernel.org/stable/c/957529baef142d95e0d1b1bea786675bd47dbe53",
        "https://git.kernel.org/stable/c/c488f8b53e156d6dcc0514ef0afa3a33376b8f9e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37946.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-37946",
        "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/2025/37xxx/CVE-2025-37946.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-37946",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 509321,
  "published_at": "2025-05-20T16:01:43.162+00:00"
}