CVE-2024-42320
JSON

5.5medium

s390/dasd: fix error checks in dasd_copy_pair_store()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.1 before 6.1.103, from 6.2 before 6.6.44, from 6.7 before 6.10.3NVD

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/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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: s390/dasd: corrige comprobaciones de errores en dasd_copy_pair_store() dasd_add_busid() puede devolver un error a través de ERR_PTR() si falla una asignación. Sin embargo, dos sitios de llamada en dasd_copy_pair_store() no verifican el resultado, lo que podría provocar una desreferencia del puntero NULL. Solucione este problema verificando el resultado con IS_ERR() y devolviendo el error en la pila.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42320 changed 2026-05-23CVE Terms of Use
NVDCVE-2024-42320 changed 2026-06-17Public domain