CVE-2026-99719: hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()

Published Nov 20, 2026
·
Updated

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.

Affected Software

7 affected componentsFixes available
linux/kernel>=4.10.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1, <=7.3.4-1
7.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.5-1

Event History

Nov 20, 2026
CVE Published
via MITRE·05:50 AM
Data Sourced
via MITRE·05:50 AM
Description
Data Sourced
via OSV·05:50 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux lm87 hwmon driver for an LM87 or ADM1024 device are affected when the device is probed with VID support enabled. The issue is reached through the driver's vrm sysfs attribute.

2

What access is needed to trigger the vulnerability?

An attacker needs the ability to read from or write to the vrm sysfs attribute. Reading it leaks an unrelated byte from the I2C client structure, while writing it corrupts a byte in that structure and does not update the real VRM value.

3

What can be done before the fix is deployed?

Prevent untrusted users or processes from accessing the vrm sysfs attribute. Avoid both reads and writes to that attribute on affected LM87 or ADM1024 devices with VID support enabled.

4

How can administrators determine whether a system is affected?

Check whether the lm87 driver has probed an LM87 or ADM1024 device with VID support enabled and exposes the vrm sysfs attribute. On such a device, accessing that attribute triggers the flawed driver-data handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203