iio: frequency: admv1013: fix NULL pointer dereference on str
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.86, 6.18.27, 7.0.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From da35a7b526d9b258a2cb8b7816f736a41b32176b · fixed in ef8b71a0fc692f8cb7f124a8143b540446b1fe9d; From da35a7b526d9b258a2cb8b7816f736a41b32176b · fixed in 3a9d8ec2051c2d80158ed7bded5e158c42870037; From da35a7b526d9b258a2cb8b7816f736a41b32176b · fixed in 5e9f1bad26df3d3afb3cbbfa408b6d6e809708ac; From da35a7b526d9b258a2cb8b7816f736a41b32176b · fixed in 2dc8d26690bf4e7226409563221c37bc095c94ff; From da35a7b526d9b258a2cb8b7816f736a41b32176b · fixed in aac0a51b16700b403a55b67ba495de021db78763
- Linux Linux
5.17
- KernelLinux
From 5.17.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.86; From 6.13.0 · fixed in 6.18.27; From 6.19.0 · fixed in 7.0.4