# CVE-2025-37974: s390/pci: Fix missing check for zpci_create_device() error return

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-05-20T16:47:19.676Z
- Modified: 2026-11-05T21:18:00.347Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.12.5 before 6.12.29; from 6.13 before 6.14.7; 6.15

## References

- <https://git.kernel.org/stable/c/be54b750c333a9db7c3b3686846bb06b07b011fe> (patch)
- <https://git.kernel.org/stable/c/2769b718e164df983c20c314b263a71a699be6cd> (patch)
- <https://git.kernel.org/stable/c/42420c50c68f3e95e90de2479464f420602229fc> (patch)

## Sources

- CVE List: [CVE-2025-37974](https://www.cve.org/CVERecord?id=CVE-2025-37974), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-37974](https://nvd.nist.gov/vuln/detail/CVE-2025-37974), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-37974 · Whole record: https://cve.day/CVE-2025-37974.json · Rebuilt by cve.day 2026-11-25T22:58:58.316Z
