Back

HIGH

hwmon: (tps53679) Fix array access with zero-length block read

Published May 1, 2026

Description

i2c_smbus_read_block_data() can return 0, indicating a zero-length read. When this happens, tps53679_identify_chip() accesses buf[ret - 1] which is buf[-1], reading one byte before the buffer on the stack.

Fix by changing the check from "ret < 0" to "ret <= 0", treating a zero-length read as an error (-EIO), which prevents the out-of-bounds array access.

Also fix a typo in the adjacent comment: "if present" instead of duplicate "if".

Affected products

Remediation

No remediation recorded yet.

References (9)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner Linux
Published May 1, 2026
Updated May 11, 2026
Reserved May 1, 2026

CISA Vulnrichment

No data

NVD

Status Analyzed
Modified Jun 17, 2026

Red Hat

Public date May 1, 2026
Bugzilla 2464498

ENISA EUVD

Assigner Linux
Published May 1, 2026
Updated May 11, 2026

GitHub

No data