{"id":"CVE-2026-64135","summary":"hwmon: (pmbus/adm1266) widen blackbox-info buffer to I2C_SMBUS_BLOCK_MAX","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (pmbus/adm1266) widen blackbox-info buffer to I2C_SMBUS_BLOCK_MAX\n\nadm1266_nvmem_read_blackbox() declares a 5-byte stack buffer and\npasses it to i2c_smbus_read_block_data() to retrieve the 4-byte\nBLACKBOX_INFO response.  i2c_smbus_read_block_data() does not honour\ncaller buffer sizes -- it memcpy()s data.block[0] bytes from the\nSMBus transaction (where data.block[0] is the length byte returned by\nthe slave device, up to I2C_SMBUS_BLOCK_MAX = 32):\n\n\tmemcpy(values, &data.block[1], data.block[0]);\n\nIf the device returns any block length above 5, the call overflows\nthe caller's 5-byte stack buffer before the post-call\n\n\tif (ret != 4)\n\t\treturn -EIO;\n\ncheck has a chance to reject the response.\n\nWiden the local buffer to I2C_SMBUS_BLOCK_MAX so the helper has room\nfor any well-formed SMBus block response, matching the convention used\nby the other i2c_smbus_read_block_data() callers in this driver.","modified":"2026-07-21T03:47:00.488576569Z","published":"2026-07-19T15:40:29.676Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64135.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0dbf64c502443c08c2e28a77ecbfcc5479d93228"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b7a698d5093b548c464828d984f05ced5f3fd2a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/33251abb9c9dd62943be76f0427c5527ee39188f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6ed16a40b162e9d87d9ac8bed4d7f0e3e807700e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f705e581ef3e6bb308a121a89adf5237d968204"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba09f4baa5bd96c5d26c942defa546a72dbbe5bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca560f7566df7e2826c2999e959e6b94eb938f76"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eee213daa1e1b402eb631bcd1b8c5aa340a6b081"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64135.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64135"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"15609d1893020436e1e8ccfd9ded774a96dd17a2"},{"fixed":"33251abb9c9dd62943be76f0427c5527ee39188f"},{"fixed":"ba09f4baa5bd96c5d26c942defa546a72dbbe5bf"},{"fixed":"6ed16a40b162e9d87d9ac8bed4d7f0e3e807700e"},{"fixed":"0dbf64c502443c08c2e28a77ecbfcc5479d93228"},{"fixed":"2b7a698d5093b548c464828d984f05ced5f3fd2a"},{"fixed":"ca560f7566df7e2826c2999e959e6b94eb938f76"},{"fixed":"7f705e581ef3e6bb308a121a89adf5237d968204"},{"fixed":"eee213daa1e1b402eb631bcd1b8c5aa340a6b081"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64135.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.0"},{"fixed":"5.10.258"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.209"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.175"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.142"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.92"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.34"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64135.json"}}],"schema_version":"1.7.5"}