Linux: hwmon: (ltc4282) Make sure clk_init_data is fully initialized
What fixes it
- 80b46a3d066d4e2c1dd4edb90d4aa3f22ca79f39LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (ltc4282) Make sure clk_init_data is fully initialized
The clk_init_data structure contains several mutually-exclusive members for different methods to specify the possible parents of a clock, prompting drivers to initialize only the members they need. However, not initializing all members may cause subtle issues, which are only exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is enabled.
ltc428_clk_provider_setup() does not fill in any parent clocks, and assumes that init.num_parents is NULL. However, the latter in uninitialized, and thus may cause a crash.
Make sure all members are fully initialized, to fix such bugs, and to avoid future breakage when converting drivers to a different method for specifying the parents.
Text from CVE List
Affected versions 10
- Linuxaffected: cbc29538dbf7d7400f1ffc5dd5713e6a551463a0 before c4a96da5a3f132d80aa971ddbeb86808539ba0e6CVE List
- Linuxaffected: cbc29538dbf7d7400f1ffc5dd5713e6a551463a0 before 80b46a3d066d4e2c1dd4edb90d4aa3f22ca79f39CVE List
- Linuxaffected: cbc29538dbf7d7400f1ffc5dd5713e6a551463a0 before aa08ce1ffaf36c7bdd3edd0ad65f72413639bfadCVE List
- Linuxaffected: cbc29538dbf7d7400f1ffc5dd5713e6a551463a0 before e317326d1755ea054b98e7a4833b929157461c35CVE List
- Linuxaffected: 6.9CVE List
- Linuxunaffected: all versions before 6.9CVE List
- Linuxunaffected: 6.12.111 through 6.12.*CVE List
- Linuxunaffected: 6.18.53 through 6.18.*CVE List
- Linuxunaffected: 7.2.7 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 4
- git.kernel.org/stable/c/c4a96da5a3f132d80aa971ddbeb86808539ba0e6Referencevia CVE List
- git.kernel.org/stable/c/80b46a3d066d4e2c1dd4edb90d4aa3f22ca79f39Referencevia CVE List
- git.kernel.org/stable/c/aa08ce1ffaf36c7bdd3edd0ad65f72413639bfadReferencevia CVE List
- git.kernel.org/stable/c/e317326d1755ea054b98e7a4833b929157461c35Referencevia CVE List