can: etas_es58x: allow partial RX URB allocation to succeed
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8537257874e949a59c834cecfd5a063e11b64b0b · < b1979778e98569c1e78c2c7f16bb24d76541ab00| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: etas_es58x: allow partial RX URB allocation to succeed
When es58x_alloc_rx_urbs() fails to allocate the requested number of URBs but succeeds in allocating some, it returns an error code. This causes es58x_open() to return early, skipping the cleanup label 'free_urbs', which leads to the anchored URBs being leaked.
As pointed out by maintainer Vincent Mailhol, the driver is designed to handle partial URB allocation gracefully. Therefore, partial allocation should not be treated as a fatal error.
Modify es58x_alloc_rx_urbs() to return 0 if at least one URB has been allocated, restoring the intended behavior and preventing the leak in es58x_open().
From the CVE record · Linux
The Linux kernel's etas_es58x CAN driver can leak anchored receive URBs when it allocates some, but not all, of the requested URBs. The resulting error causes device opening to return before cleanup. The input does not describe an attacker path or specify authentication, network access, or user-interaction requirements.
Teams running Linux kernels with the etas_es58x driver should check their affected versions; no version range was provided.