Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
High

Out-of-bounds heap access in Linux kernel CAN gateway cgw_csum_crc8_rel()

IdentifiersCVE-2026-31570CWE-787

CVE-2026-31570 is a Linux kernel vulnerability in the CAN gateway subsystem, specifically in cgw_csum_crc8_rel(). The function correctly computes bounds-safe indices for from_idx, to_idx, and result_idx via calc_idx(), but then mistakenly uses the raw signed s8 fields crc8->from_idx and crc8->result_idx in the checksum loop and result write instead of the validated local variables from, to, and res. As a result, negative indices can bypass the guard logic: for example, with from_idx = to_idx = result_idx = -64 on a 64-byte CAN FD frame, calc_idx(-64, 64) resolves to 0 so validation succeeds, but the loop still starts at i = -64 and reads cf->data[-64], and the result write targets cf->data[-64]. This causes slab out-of-bounds heap access before the start of the canfd_frame object. The issue was confirmed with KASAN on linux-7.0-rc2. The fix updates cgw_csum_crc8_rel() to consistently use the validated indices, matching the safe behavior already present in the companion function cgw_csum_xor_rel().

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can trigger out-of-bounds heap reads and writes in kernel memory. The write may land approximately 56 bytes before the start of the canfd_frame object on linux 7.0-rc, or about 40 bytes before the object on kernels up to 6.19. Because this occurs in kernel context, impact can include kernel memory corruption, denial of service via crash, and potentially compromise of confidentiality, integrity, and availability depending on adjacent heap layout and exploitability.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by restricting the ability to configure CAN gateway CRC8 checksum handling, since configuring these checksums requires CAP_NET_ADMIN. Limit access to CAN gateway configuration to trusted administrators only, minimize use of affected CAN gateway checksum features where feasible, and monitor for abnormal CAN gateway rule changes until patched.

Remediation

Patch, then assume compromise.

Apply a Linux kernel version containing the fix for CVE-2026-31570. The upstream remediation is to modify cgw_csum_crc8_rel() so that it uses the validated indices returned by calc_idx() for iteration and result storage, rather than the raw signed index fields. Vendor kernel updates from SUSE and other distributors that include this patch should be installed.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

4 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

No news coverage yet. Advisories and community discussion only.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.