hwmon: (pmbus/adm1266) reject implausible blackbox record_count
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: hwmon: (pmbus/adm1266) reject implausible blackbox record_count adm1266_nvmem_read_blackbox() loops over a record_count that comes straight from byte 3 of the BLACKBOX_INFO response. The destination buffer is data->dev_mem, sized for the nvmem cell's declared 2048 bytes (ADM1266_BLACKBOX_MAX_RECORDS * ADM1266_BLACKBOX_SIZE = 32 * 64). A device that reports a record_count greater than 32 -- whether due to firmware bugs, bus corruption, or a non-responsive slave returning 0xff -- would walk read_buff past the end of the dev_mem allocation on the trailing iterations. Cap record_count at ADM1266_BLACKBOX_MAX_RECORDS (introduced here) before entering the loop and return -EIO on any larger value, so a malformed BLACKBOX_INFO response cannot drive the loop out of bounds.
Timeline
- CVE published
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
5.10
References 8
git.kernel.org
- stable/c/adcb163ad7cacca317872fc62bd8885e842e45e3
- stable/c/c2c56092710fe8a893b67b5a3d7e62808d02d84d
- stable/c/5469e1e7c411acc15fdd8262c99c3ebd9defd594
- stable/c/f85c81e93dbd6915970bd5f3bffcf62633c4c54c
- stable/c/0e791cd0140fb136083565aadfbe0f705aa260d0
- stable/c/75c862adf3d3caab4f49bb3530723c215376e37c
- stable/c/231db52a5b64d0a9769e298dadc148e1f79b26a6
- stable/c/4afca954622d672ea65ed961bed01cf91caa034e