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

CVE-2026-64135
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.12 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-674 — Uncontrolled Recursion

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 15609d1893020436e1e8ccfd9ded774a96dd17a2 < 33251abb9c9dd62943be76f0427c5527ee39188f ; affected 15609d1893020436e1e8ccfd9ded774a96dd17a2 < ba09f4baa5bd96c5d26c942defa546a72dbbe5bf ; affected 15609d1893020436e1e8ccfd9ded774a96dd17a2 < 6ed16a40b162e9d87d9ac8bed4d7f0e3e807700e ; affected 15609d1893020436e1e8ccfd9ded774a96dd17a2 < 0dbf64c502443c08c2e28a77ecbfcc5479d93228 ; affected 15609d1893020436e1e8ccfd9ded774a96dd17a2 < 2b7a698d5093b548c464828d984f05ced5f3fd2a ; affected 15609d1893020436e1e8ccfd9ded774a96dd17a2 < ca560f7566df7e2826c2999e959e6b94eb938f76
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.142 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD