Linux
can: softing: fw_parse(): validate firmware record spans
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < f6d9a6a9512430b395a1940d7b216394fd02d30b
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < 84c850b08fc0d671c245144b619683129b55690a
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < ae588e5b9cc268de1aabf30f939f0870717ca164
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < ad331e26fd213a19fee0de18cdacd67b7ff5b478
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < 2ee477e541a6d5e434d6a4041c6b677ab42e1d82
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < 808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1
- >= 03fd3cf5a179da12e6bee5e9d74b648aff68dc4c, < 856d6cb04e5407523566b075841dcd6423757d1c
Fixed in f6d9a6a9512430b395a1940d7b216394fd02d30b, 84c850b08fc0d671c245144b619683129b55690a, d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50, ae588e5b9cc268de1aabf30f939f0870717ca164, ad331e26fd213a19fee0de18cdacd67b7ff5b478, 2ee477e541a6d5e434d6a4041c6b677ab42e1d82, 808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1, 856d6cb04e5407523566b075841dcd6423757d1c
- 2.6.38
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.151, 6.12.103, 6.18.44, 7.1.8, 7.2
Mitigation
Upgrade Linux to f6d9a6a9512430b395a1940d7b216394fd02d30b or 84c850b08fc0d671c245144b619683129b55690a or d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50 or ae588e5b9cc268de1aabf30f939f0870717ca164 or ad331e26fd213a19fee0de18cdacd67b7ff5b478 or 2ee477e541a6d5e434d6a4041c6b677ab42e1d82 or 808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1 or 856d6cb04e5407523566b075841dcd6423757d1c or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.151 or 6.12.103 or 6.18.44 or 7.1.8 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.