iio: frequency: admv1013: fix NULL pointer dereference on str
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: frequency: admv1013: fix NULL pointer dereference on str
When device_property_read_string() fails, str is left uninitialized but the code falls through to strcmp(str, ...), dereferencing a garbage pointer. Replace manual read/strcmp with device_property_match_property_string() and consolidate the SE mode enums into a single sequential enum, mapping to hardware register values via a switch consistent with other bitfields in the driver.
Several cleanup patches have been applied to this driver recently so this will need a manual backport.
From the CVE record · Linux
The Linux kernel admv1013 frequency driver can dereference an uninitialized pointer when reading a device property string fails. The input does not establish whether an attacker can trigger the failure, or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the admv1013 driver should check their versions; affected versions were not provided.