serial: sifive: fix off-by-one in console port bounds check
- CVE-2026-143453
- EUVD-2026-145082
Summary
A fix in the Linux kernel's SiFive serial driver corrects an off-by-one error in the console port bounds check during probe. The console port array holds eight entries, so valid indices run from 0 to 7, but the check allowed an index of 8 through. That permitted an out-of-bounds write when the console port was registered. The patch changes the comparison so that indices equal to the maximum are rejected, matching the check already used in the console setup path. The record lists no CVSS score and states the issue is not in the CISA known exploited list.
AI summary · verify against the vendor advisory
Description
In the Linux kernel, the following vulnerability has been resolved: serial: sifive: fix off-by-one in console port bounds check sifive_serial_console_ports[] is sized SIFIVE_SERIAL_MAX_PORTS (8), so valid indices are 0..7. The bounds check in sifive_serial_probe() uses "id > SIFIVE_SERIAL_MAX_PORTS", which lets id == 8 pass and causes an out-of-bounds write in __ssp_add_console_port() through sifive_serial_console_ports[ssp->port.line]. Fix the check to use >= instead, matching the check already used in sifive_serial_console_setup().
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 5.2 none stated before 5.2: not affected none stated from 5.10.275 up to 5.10.*: not affected none stated from 5.15.226 up to 5.15.*: not affected none stated from 6.1.193 up to 6.1.*: not affected none stated from 6.6.163 up to 6.6.*: not affected none stated from 6.12.119 up to 6.12.*: not affected none stated from 6.18.65 up to 6.18.*: not affected none stated and 2 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.