can: softing: fw_parse(): validate firmware record spans
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f6d9a6a9512430b395a1940d7b216394fd02d30b, Kernel 2ee477e541a6d5e434d6a4041c6b677ab42e1d82, Kernel 808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <f6d9a6a9512430b395a1940d7b216394fd02d30b, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <2ee477e541a6d5e434d6a4041c6b677ab42e1d82, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <84c850b08fc0d671c245144b619683129b55690a, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <856d6cb04e5407523566b075841dcd6423757d1c, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <ad331e26fd213a19fee0de18cdacd67b7ff5b478, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <ae588e5b9cc268de1aabf30f939f0870717ca164, >=03fd3cf5a179da12e6bee5e9d74b648aff68dc4c <d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50, =2.6.38 | f6d9a6a9512430b395a1940d7b216394fd02d30b, 2ee477e541a6d5e434d6a4041c6b677ab42e1d82, 808ed899dcf8bdef66894fda5eb7ee4bb0eb8dc1, 84c850b08fc0d671c245144b619683129b55690a, 856d6cb04e5407523566b075841dcd6423757d1c, ad331e26fd213a19fee0de18cdacd67b7ff5b478, ae588e5b9cc268de1aabf30f939f0870717ca164, d0eac0ea7cf493e787fd7b4a556e43ef03cb4b50 |
| linux-kernel: Kernel | >=5.11.0 <5.15.216, >=5.16.0 <6.1.183, >=6.13.0 <6.18.44, >=6.19.0 <7.1.8, >=6.2.0 <6.6.151, >=6.7.0 <6.12.103, >=2.6.38 <5.10.265 | 5.15.216, 6.1.183, 6.18.44, 7.1.8, 6.6.151, 6.12.103, 5.10.265 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket