---
id: CVE-2025-37974
title: 's390/pci: Fix missing check for zpci_create_device() error return'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  s390/pci: Fix missing check for zpci_create_device() error return

  The zpci_create_device() function returns an error pointer that needs to
  be checked before dereferenc…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1f3b309108fd0660ea8614a72328ba866ccd3378 <
    be54b750c333a9db7c3b3686846bb06b07b011fe
  - >-
    Linux >= 0467cdde8c4320bbfdb31a8cff1277b202f677fc <
    2769b718e164df983c20c314b263a71a699be6cd
  - >-
    Linux >= 0467cdde8c4320bbfdb31a8cff1277b202f677fc <
    42420c50c68f3e95e90de2479464f420602229fc
  - Linux >= 6.12.5 < 6.12.29
  - Linux 6.13
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:46:42.986568Z'
published: '2025-05-20'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:52:10.069Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-37974'
references:
  - url: 'https://git.kernel.org/stable/c/be54b750c333a9db7c3b3686846bb06b07b011fe'
  - url: 'https://git.kernel.org/stable/c/2769b718e164df983c20c314b263a71a699be6cd'
  - url: 'https://git.kernel.org/stable/c/42420c50c68f3e95e90de2479464f420602229fc'
tags:
  - cve.org
epss: 0.00187
epssPercentile: 0.08347
ingestedAt: '2026-11-05T22:38:31.899Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

s390/pci: Fix missing check for zpci_create_device() error return

The zpci_create_device() function returns an error pointer that needs to
be checked before dereferencing it as a struct zpci_dev pointer. Add the
missing check in __clp_add() where it was missed when adding the
scan_list in the fixed commit. Simply not adding the device to the scan
list results in the previous behavior.

## Affected

- `Linux >= 1f3b309108fd0660ea8614a72328ba866ccd3378 < be54b750c333a9db7c3b3686846bb06b07b011fe`
- `Linux >= 0467cdde8c4320bbfdb31a8cff1277b202f677fc < 2769b718e164df983c20c314b263a71a699be6cd`
- `Linux >= 0467cdde8c4320bbfdb31a8cff1277b202f677fc < 42420c50c68f3e95e90de2479464f420602229fc`
- `Linux >= 6.12.5 < 6.12.29`
- `Linux 6.13`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
