s390/dasd: fix error checks in dasd_copy_pair_store()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel, two calls to dasd_add_busid() in dasd_copy_pair_store() fail to check for an allocation error, potentially causing a NULL pointer dereference. The issue depends on an allocation failure; the input does not specify whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with the s390/dasd component should check their versions; affected versions are not specified.