CVE-2023-52690Published May 17, 2024 · May 17Updated Oct 28
powerpc/powernv: Add a null pointer check to scom_debug_init_one()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bfd2f0d49aef8abfe6bf58f12719f39912993cc6 · < a9c05cbb6644a2103c75b6906e9dafb9981ebd13| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
powerpc/powernv: Add a null pointer check to scom_debug_init_one()
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Add a null pointer check, and release 'ent' to avoid memory leaks.
From the CVE record · Linux
In the Linux kernel's powerpc/powernv code, scom_debug_init_one() did not check whether kasprintf() returned NULL after an allocation failure. This could cause a null pointer dereference; the input does not describe an attacker path or specify network, authentication, or user-interaction conditions.
Engineers running Linux kernels with powerpc/powernv should check their installations; affected versions are not specified.