CVE-2026-31570

Severity CVSS v4.0:
Pending analysis
Type:
CWE-125 Out-of-bounds Read
Publication date:
24/04/2026
Last modified:
27/04/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> can: gw: fix OOB heap access in cgw_csum_crc8_rel()<br /> <br /> cgw_csum_crc8_rel() correctly computes bounds-safe indices via calc_idx():<br /> <br /> int from = calc_idx(crc8-&gt;from_idx, cf-&gt;len);<br /> int to = calc_idx(crc8-&gt;to_idx, cf-&gt;len);<br /> int res = calc_idx(crc8-&gt;result_idx, cf-&gt;len);<br /> <br /> if (from result_idx] = ...; /* BUG: raw negative index */<br /> <br /> With from_idx = to_idx = result_idx = -64 on a 64-byte CAN FD frame,<br /> calc_idx(-64, 64) = 0 so the guard passes, but the loop iterates with<br /> i = -64, reading cf-&gt;data[-64], and the write goes to cf-&gt;data[-64].<br /> This write might end up to 56 (7.0-rc) or 40 (

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.4.1 (including) 5.10.253 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.203 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.168 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.131 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.80 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.13 (including) 6.18.21 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.19 (including) 6.19.11 (excluding)
cpe:2.3:o:linux:linux_kernel:5.4:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*