# CVE-2024-42320: s390/dasd: fix error checks in dasd_copy_pair_store()

- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-08-17T09:09:32.695Z
- Modified: 2026-06-17T07:49:15.280Z
- 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/dasd: fix error checks in dasd_copy_pair_store()

dasd_add_busid() can return an error via ERR_PTR() if an allocation
fails. However, two callsites in dasd_copy_pair_store() do not check
the result, potentially resulting in a NULL pointer dereference. Fix
this by checking the result with IS_ERR() and returning the error up
the stack.

(As written by CVE List.)

## Affected

- Linux Linux: from a91ff09d39f9b6545254839ac91f1ff7bd21d39e before cc8b7284d5076722e0b8062373b68d8e47c3bace; from a91ff09d39f9b6545254839ac91f1ff7bd21d39e before e511167e65d332d07b3c7a3d5a741ee9c19a8c27; from a91ff09d39f9b6545254839ac91f1ff7bd21d39e before 68d4c3722290ad300c295fb3435e835d200d5cb2; from a91ff09d39f9b6545254839ac91f1ff7bd21d39e before 8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8; 932600a295cc299d470ca7f5d6491bd0dfc99ea7; from 5.15.153 before 5.16; 6.1 (not affected: before 6.1; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.1 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/cc8b7284d5076722e0b8062373b68d8e47c3bace> (patch)
- <https://git.kernel.org/stable/c/e511167e65d332d07b3c7a3d5a741ee9c19a8c27> (patch)
- <https://git.kernel.org/stable/c/68d4c3722290ad300c295fb3435e835d200d5cb2> (patch)
- <https://git.kernel.org/stable/c/8e64d2356cbc800b4cd0e3e614797f76bcf0cdb8> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-42320 · Whole record: https://cve.day/CVE-2024-42320.json · Rebuilt by cve.day 2026-11-25T22:58:44.484Z
