CVE-2026-80706: can: softing: fw_parse(): validate firmware record spans
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
can: softing: fw_parse(): validate firmware record spans
fw_parse() reads a fixed record header, a firmware-provided payload, and a trailing checksum without knowing the end of the firmware blob. A truncated record can therefore make those reads exceed the blob.
The same record also supplies addresses and lengths for writes into DPRAM. The generic loader uses wrap-prone mixed signed arithmetic for its bounds check, while the application loader does not bound the staging copy at all.
Pass the firmware end to the parser and validate the full source record. Use a signed wide offset for generic DPRAM records and validate the application staging span against the mapped DPRAM before copying.
The Linux kernel CVE team has assigned CVE-2026-80706 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 5.10.265 with commit f6d9a6a9512430b395a1940d7b216394fd02d30b Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 5.15.216 with commit 84c850b08fc0d671c245144b619683129b55690a Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 6.1.183 with commit d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50 Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 6.6.151 with commit ae588e5b9cc268de1aabf30f939f0870717ca164 Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 6.12.103 with commit ad331e26fd213a19fee0de18cdacd67b7ff5b478 Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 6.18.44 with commit 2ee477e541a6d5e434d6a4041c6b677ab42e1d82 Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 7.1.8 with commit 808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1 Issue introduced in 2.6.38 with commit 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c and fixed in 7.2 with commit 856d6cb04e5407523566b075841dcd6423757d1c
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80706
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/can/softing/softing_fw.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f6d9a6a9512430b395a1940d7b216394fd02d30b https://git.kernel.org/stable/c/84c850b08fc0d671c245144b619683129b55690a https://git.kernel.org/stable/c/d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50 https://git.kernel.org/stable/c/ae588e5b9cc268de1aabf30f939f0870717ca164 https://git.kernel.org/stable/c/ad331e26fd213a19fee0de18cdacd67b7ff5b478 https://git.kernel.org/stable/c/2ee477e541a6d5e434d6a4041c6b677ab42e1d82 https://git.kernel.org/stable/c/808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1 https://git.kernel.org/stable/c/856d6cb04e5407523566b075841dcd6423757d1c