ASoC: loongson: Fix error handling in ACPI property parsing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: loongson: Fix error handling in ACPI property parsing
In loongson_card_parse_acpi(), the return value of device_property_read_string() for the `codec-dai-name` property was ignored. If the property is missing or invalid, an uninitialized pointer would be used later, potentially leading to undefined behavior.
Fix this by checking the return value and propagating the error appropriately.
From the CVE record · Linux
The Loongson ASoC driver in the Linux kernel did not check whether the `codec-dai-name` ACPI property was read successfully. If the property is missing or invalid, an uninitialized pointer may be used, potentially causing undefined behavior. The input does not establish an attacker action or access requirements.
Engineers running the Linux kernel with the Loongson ASoC driver should check their systems; affected versions are not specified.