CVE-2025-37974
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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

Product or packageVersionsReported by
Linux Linuxfrom 1f3b309108fd0660ea8614a72328ba866ccd3378 before be54b750c333a9db7c3b3686846bb06b07b011fe, from 0467cdde8c4320bbfdb31a8cff1277b202f677fc before 2769b718e164df983c20c314b263a71a699be6cd, from 0467cdde8c4320bbfdb31a8cff1277b202f677fc before 42420c50c68f3e95e90de2479464f420602229fc, from 6.12.5 before 6.12.29, 6.13
Not affected: before 6.13, from 6.12.29 up to 6.12.*, from 6.14.7 up to 6.14.*, from 6.15 up to *
CVE List
linux linux_kernelfrom 6.12.5 before 6.12.29, from 6.13 before 6.14.7, 6.15NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: s390/pci: Se corrige la falta de comprobación para el retorno del error zpci_create_device(). La función zpci_create_device() devuelve un puntero de error que debe comprobarse antes de desreferenciarlo como puntero struct zpci_dev. Se añade la comprobación faltante en __clp_add(), donde se omitió al añadir la lista de escaneo en el commit corregida. Simplemente no añadir el dispositivo a la lista de escaneo provoca el comportamiento anterior.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-37974 changed 2026-11-05CVE Terms of Use
NVDCVE-2025-37974 changed 2026-11-05Public domain