CVE-2026-46282: iio: frequency: admv1013: fix NULL pointer dereference on str
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-46282 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.17 with commit da35a7b526d9b258a2cb8b7816f736a41b32176b and fixed in 6.12.86 with commit 3a9d8ec2051c2d80158ed7bded5e158c42870037 Issue introduced in 5.17 with commit da35a7b526d9b258a2cb8b7816f736a41b32176b and fixed in 6.18.27 with commit 5e9f1bad26df3d3afb3cbbfa408b6d6e809708ac Issue introduced in 5.17 with commit da35a7b526d9b258a2cb8b7816f736a41b32176b and fixed in 7.0.4 with commit 2dc8d26690bf4e7226409563221c37bc095c94ff Issue introduced in 5.17 with commit da35a7b526d9b258a2cb8b7816f736a41b32176b and fixed in 7.1-rc1 with commit aac0a51b16700b403a55b67ba495de021db78763
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46282
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/iio/frequency/admv1013.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
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