net: can: j1939: enhanced error handling for tightly received RTS messages in xtp_rx_rts_session_new
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9d71dd0c70099914fcd063135da3c580865e924c · < 0bc0a7416ea73f79f915c9a05ac0858dff65cfed| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: can: j1939: enhanced error handling for tightly received RTS messages in xtp_rx_rts_session_new
This patch enhances error handling in scenarios with RTS (Request to Send) messages arriving closely. It replaces the less informative WARN_ON_ONCE backtraces with a new error handling method. This provides clearer error messages and allows for the early termination of problematic sessions. Previously, sessions were only released at the end of j1939_xtp_rx_rts().
Potentially this could be reproduced with something like: testj1939 -r vcan0:0x80 & while true; do # send first RTS cansend vcan0 18EC8090#1014000303002301; # send second RTS cansend vcan0 18EC8090#1014000303002301; # send abort cansend vcan0 18EC8090#ff00000000002301; done
From the CVE record · Linux
The Linux kernel’s J1939 RTS session handling does not properly handle closely arriving Request to Send messages. Sending such messages on a CAN interface can trigger warning backtraces; the input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels that use J1939 should check whether their kernel includes the fix; affected versions are not specified.