{"id":"CVE-2025-37974","state":"PUBLISHED","title":"s390/pci: Fix missing check for zpci_create_device() error return","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pci: Fix missing check for zpci_create_device() error return\n\nThe zpci_create_device() function returns an error pointer that needs to\nbe checked before dereferencing it as a struct zpci_dev pointer. Add the\nmissing check in __clp_add() where it was missed when adding the\nscan_list in the fixed commit. Simply not adding the device to the scan\nlist results in the previous behavior.","publishedAt":"2025-05-20T16:47:19.676Z","updatedAt":"2026-05-23T15:58:43.992Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1f3b309108fd0660ea8614a72328ba866ccd3378","status":"affected","lessThan":"be54b750c333a9db7c3b3686846bb06b07b011fe","versionType":"git"},{"version":"0467cdde8c4320bbfdb31a8cff1277b202f677fc","status":"affected","lessThan":"2769b718e164df983c20c314b263a71a699be6cd","versionType":"git"},{"version":"0467cdde8c4320bbfdb31a8cff1277b202f677fc","status":"affected","lessThan":"42420c50c68f3e95e90de2479464f420602229fc","versionType":"git"},{"version":"6.12.5","status":"affected","lessThan":"6.12.29","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_clp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.12.29","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.7","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_clp.c"]}],"references":["https://git.kernel.org/stable/c/be54b750c333a9db7c3b3686846bb06b07b011fe","https://git.kernel.org/stable/c/2769b718e164df983c20c314b263a71a699be6cd","https://git.kernel.org/stable/c/42420c50c68f3e95e90de2479464f420602229fc"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/37xxx/CVE-2025-37974.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-37974","state":"PUBLISHED","datePublished":"2025-05-20T16:47:19.676Z","dateUpdated":"2026-05-23T15:58:43.992Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.975Z"},"containers":{"cna":{"title":"s390/pci: Fix missing check for zpci_create_device() error return","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pci: Fix missing check for zpci_create_device() error return\n\nThe zpci_create_device() function returns an error pointer that needs to\nbe checked before dereferencing it as a struct zpci_dev pointer. Add the\nmissing check in __clp_add() where it was missed when adding the\nscan_list in the fixed commit. Simply not adding the device to the scan\nlist results in the previous behavior."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1f3b309108fd0660ea8614a72328ba866ccd3378","status":"affected","lessThan":"be54b750c333a9db7c3b3686846bb06b07b011fe","versionType":"git"},{"version":"0467cdde8c4320bbfdb31a8cff1277b202f677fc","status":"affected","lessThan":"2769b718e164df983c20c314b263a71a699be6cd","versionType":"git"},{"version":"0467cdde8c4320bbfdb31a8cff1277b202f677fc","status":"affected","lessThan":"42420c50c68f3e95e90de2479464f420602229fc","versionType":"git"},{"version":"6.12.5","status":"affected","lessThan":"6.12.29","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_clp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.12.29","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.7","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/pci/pci_clp.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:58:43.992Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.5","versionEndExcluding":"6.12.29"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.14.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}