ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction
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 |
|
|
6.12.286.14.66.15In the Linux kernel, the following vulnerability has been resolved:
ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction
Actually check if the passed pointers are valid, before writing to them. This also fixes a USBAN warning: UBSAN: invalid-load in ../sound/soc/fsl/imx-card.c:687:25 load of value 255 is not a valid value for type '_Bool'
This is because playback_only is uninitialized and is not written to, as the playback-only property is absent.
From the CVE record · Linux
The Linux kernel’s ASoC simple-card-utils code does not validate pointers before writing to them. When the playback-only property is absent, an uninitialized value can cause an invalid load; the input does not establish what an attacker can do or whether access or user interaction is required.
Engineers running Linux kernels with ASoC simple-card-utils should check their systems; affected versions are not specified.