AZL-115588: CVE-2026-99719 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (lm87) Fix drvdata type confusion in vrmshow() and vrmstore()
When an LM87 or ADM1024 device is probed with VID support enabled, reading from or writing to the vrm sysfs attribute triggers a driver data type confusion in vrmshow() and vrmstore() in drivers/hwmon/lm87.c.
In lm87probe(), the driver stores the struct lm87data pointer on the I2C client via i2csetclientdata() and passes the struct i2cclient pointer as the drvdata argument to devmhwmondeviceregisterwithgroups(), which attaches the attribute groups to the registered hwmon device with client as its driverdata. Unlike the other sysfs callbacks that retrieve client via devgetdrvdata() and then obtain data via i2cgetclientdata(), vrmshow() and vrmstore() assign devgetdrvdata(dev) directly to struct lm87data . Dereferencing data->vrm therefore accesses the struct i2cclient instance at offsetof(struct lm87data, vrm), causing vrmshow() to leak an unrelated byte from struct i2cclient to userspace and vrmstore() to corrupt a byte within struct i2cclient while failing to update the actual VRM value.
Fix the problem by assigning the return value from devgetdrvdata(dev) to struct i2cclient client and using i2cgetclientdata() to get the actual client data.