CVE-2026-64135

hwmon: (pmbus/adm1266) widen blackbox-info buffer to I2C_SMBUS_BLOCK_MAX

State
Published
Severity
Not scored
Published
Jul 19, 2026
Updated
Jul 19, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (pmbus/adm1266) widen blackbox-info buffer to I2C_SMBUS_BLOCK_MAX

adm1266_nvmem_read_blackbox() declares a 5-byte stack buffer and passes it to i2c_smbus_read_block_data() to retrieve the 4-byte BLACKBOX_INFO response. i2c_smbus_read_block_data() does not honour caller buffer sizes -- it memcpy()s data.block[0] bytes from the SMBus transaction (where data.block[0] is the length byte returned by the slave device, up to I2C_SMBUS_BLOCK_MAX = 32):

memcpy(values, &data.block[1], data.block[0]);

If the device returns any block length above 5, the call overflows the caller's 5-byte stack buffer before the post-call

if (ret != 4) return -EIO;

check has a chance to reject the response.

Widen the local buffer to I2C_SMBUS_BLOCK_MAX so the helper has room for any well-formed SMBus block response, matching the convention used by the other i2c_smbus_read_block_data() callers in this driver.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before 33251abb9c9dd62943be76f0427c5527ee39188fAffected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before ba09f4baa5bd96c5d26c942defa546a72dbbe5bfAffected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before 6ed16a40b162e9d87d9ac8bed4d7f0e3e807700eAffected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before 0dbf64c502443c08c2e28a77ecbfcc5479d93228Affected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before 2b7a698d5093b548c464828d984f05ced5f3fd2aAffected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before ca560f7566df7e2826c2999e959e6b94eb938f76Affected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before 7f705e581ef3e6bb308a121a89adf5237d968204Affected
  • 15609d1893020436e1e8ccfd9ded774a96dd17a2 to before eee213daa1e1b402eb631bcd1b8c5aa340a6b081Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.142 through 6.6.*Not affected
  • 6.12.92 through 6.12.*Not affected
  • 6.18.34 through 6.18.*Not affected
  • 7.0.11 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.