Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected da35a7b526d9b258a2cb8b7816f736a41b32176b before ef8b71a0fc692f8cb7f124a8143b540446b1fe9d; affected da35a7b526d9b258a2cb8b7816f736a41b32176b before 3a9d8ec2051c2d80158ed7bded5e158c42870037; affected da35a7b526d9b258a2cb8b7816f736a41b32176b before 5e9f1bad26df3d3afb3cbbfa408b6d6e809708ac; affected da35a7b526d9b258a2cb8b7816f736a41b32176b before 2dc8d26690bf4e7226409563221c37bc095c94ff; affected da35a7b526d9b258a2cb8b7816f736a41b32176b before aac0a51b16700b403a55b67ba495de021db78763 |
| Linux / Linux | affected 5.17; unaffected 0 before 5.17; unaffected 6.6.160 through 6.6.*; unaffected 6.12.86 through 6.12.*; unaffected 6.18.27 through 6.18.*; unaffected 7.0.4 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/ef8b71a0fc692f8cb7f124a8143b540446b1fe9d
- https://git.kernel.org/stable/c/3a9d8ec2051c2d80158ed7bded5e158c42870037
- https://git.kernel.org/stable/c/5e9f1bad26df3d3afb3cbbfa408b6d6e809708ac
- https://git.kernel.org/stable/c/2dc8d26690bf4e7226409563221c37bc095c94ff
- https://git.kernel.org/stable/c/aac0a51b16700b403a55b67ba495de021db78763