CVE-2026-31570: can: gw: fix OOB heap access in cgw_csum_crc8_rel()

Published Apr 24, 2026
·
Updated

can: gw: fix OOB heap access in cgwcsumcrc8rel()

Affected Software

17 affected componentsFixes available
Linux Linux kernel<=6.19, =7.0-rc2
Linux Linux kernel>=5.4.1<5.10.253
Linux Linux kernel>=5.11<5.15.203
Linux Linux kernel>=5.16<6.1.168
Linux Linux kernel>=6.2<6.6.131
Linux Linux kernel>=6.7<6.12.80
Linux Linux kernel>=6.13<6.18.21
Linux Linux kernel>=6.19<6.19.11
Linux Linux kernel=5.4
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6
Linux Linux kernel=7.0-rc7
Microsoft azl3 kernel 6.6.130.1-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel can-gw CRC8 cgw_csum_crc8_rel() to a version that resolves this vulnerability.

    Fixed in linux-7.0-rc2
  2. Configuration

    Ensure the system has CAP_NET_ADMIN configured as needed for can-gw crc8 checksum functionality.

    can-gw CRC8 checksums CAP_NET_ADMIN requirement = required
  3. Configuration

    Fix cgw_csum_crc8_rel() to use bounds-safe computed indices (from = calc_idx(...), to = calc_idx(...), res = calc_idx(...)) instead of raw from_idx/to_idx/result_idx (e.g., avoid using i = crc8->from_idx directly, which can be negative like -64).

    cgw_csum_crc8_rel() index variables = use calc_idx() results

Event History

Apr 24, 2026
CVE Published
via MITRE·02:35 PM
Data Sourced
via MITRE·02:35 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-31570?

CVE-2026-31570 is classified as a medium severity vulnerability due to its potential for out-of-bounds heap access.

2

How do I fix CVE-2026-31570?

To mitigate CVE-2026-31570, upgrade the Linux kernel to a version that does not contain this vulnerability.

3

Which Linux kernel versions are affected by CVE-2026-31570?

CVE-2026-31570 affects Linux kernel versions from 5.4.1 up to 6.19 and the 7.0-rc series.

4

What are the potential impacts of CVE-2026-31570?

Exploitation of CVE-2026-31570 could lead to arbitrary code execution or denial of service due to out-of-bounds memory access.

5

How can I determine if I am vulnerable to CVE-2026-31570?

You can check your Linux kernel version against the affected versions listed for CVE-2026-31570 to assess vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203