CVE-2024-41088
"Canoo MCP251xfd Stackable Transmission Loop Hang"
Description
In the Linux kernel, the following vulnerability has been resolved: can: mcp251xfd: fix infinite loop when xmit fails When the mcp251xfd_start_xmit() function fails, the driver stops processing messages, and the interrupt routine does not return, running indefinitely even after killing the running application. Error messages: [ 441.298819] mcp251xfd spi2.0 can0: ERROR in mcp251xfd_start_xmit: -16 [ 441.306498] mcp251xfd spi2.0 can0: Transmit Event FIFO buffer not empty. (seq=0x000017c7, tef_tail=0x000017cf, tef_head=0x000017d0, tx_head=0x000017d3). ... and repeat forever. The issue can be triggered when multiple devices share the same SPI interface. And there is concurrent access to the bus. The problem occurs because tx_ring->head increments even if mcp251xfd_start_xmit() fails. Consequently, the driver skips one TX package while still expecting a response in mcp251xfd_handle_tefif_one(). Resolve the issue by starting a workqueue to write the tx obj synchronously if err = -EBUSY. In case of another error, decrement tx_ring->head, remove skb from the echo stack, and drop the message. [mkl: use more imperative wording in patch description]
INFO
Published Date :
July 29, 2024, 4:15 p.m.
Last Modified :
Nov. 21, 2024, 9:32 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-41088
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-41088
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-41088
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/3e72558c1711d524e3150103739ddd06650e291b Added Reference https://git.kernel.org/stable/c/6c6b4afa59c2fb4d1759235f866d8caed2aa4729 Added Reference https://git.kernel.org/stable/c/d8fb63e46c884c898a38f061c2330f7729e75510 Added Reference https://git.kernel.org/stable/c/f926c022ebaabf7963bebf89a97201d66978a025 -
Initial Analysis by [email protected]
Aug. 22, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://git.kernel.org/stable/c/3e72558c1711d524e3150103739ddd06650e291b No Types Assigned https://git.kernel.org/stable/c/3e72558c1711d524e3150103739ddd06650e291b Patch Changed Reference Type https://git.kernel.org/stable/c/6c6b4afa59c2fb4d1759235f866d8caed2aa4729 No Types Assigned https://git.kernel.org/stable/c/6c6b4afa59c2fb4d1759235f866d8caed2aa4729 Patch Changed Reference Type https://git.kernel.org/stable/c/d8fb63e46c884c898a38f061c2330f7729e75510 No Types Assigned https://git.kernel.org/stable/c/d8fb63e46c884c898a38f061c2330f7729e75510 Patch Changed Reference Type https://git.kernel.org/stable/c/f926c022ebaabf7963bebf89a97201d66978a025 No Types Assigned https://git.kernel.org/stable/c/f926c022ebaabf7963bebf89a97201d66978a025 Patch Added CWE NIST CWE-835 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10 up to (excluding) 6.1.97 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.37 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.9.8 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 29, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: can: mcp251xfd: fix infinite loop when xmit fails When the mcp251xfd_start_xmit() function fails, the driver stops processing messages, and the interrupt routine does not return, running indefinitely even after killing the running application. Error messages: [ 441.298819] mcp251xfd spi2.0 can0: ERROR in mcp251xfd_start_xmit: -16 [ 441.306498] mcp251xfd spi2.0 can0: Transmit Event FIFO buffer not empty. (seq=0x000017c7, tef_tail=0x000017cf, tef_head=0x000017d0, tx_head=0x000017d3). ... and repeat forever. The issue can be triggered when multiple devices share the same SPI interface. And there is concurrent access to the bus. The problem occurs because tx_ring->head increments even if mcp251xfd_start_xmit() fails. Consequently, the driver skips one TX package while still expecting a response in mcp251xfd_handle_tefif_one(). Resolve the issue by starting a workqueue to write the tx obj synchronously if err = -EBUSY. In case of another error, decrement tx_ring->head, remove skb from the echo stack, and drop the message. [mkl: use more imperative wording in patch description] Added Reference kernel.org https://git.kernel.org/stable/c/f926c022ebaabf7963bebf89a97201d66978a025 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3e72558c1711d524e3150103739ddd06650e291b [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/6c6b4afa59c2fb4d1759235f866d8caed2aa4729 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/d8fb63e46c884c898a38f061c2330f7729e75510 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-41088
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-41088
weaknesses.