can: j1939: j1939_session_new(): fix skb reference counting
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9d71dd0c70099914fcd063135da3c580865e924c · < 68fceb143b635cdc59fed3896d5910aff38f345e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: j1939: j1939_session_new(): fix skb reference counting
Since j1939_session_skb_queue() does an extra skb_get() for each new skb, do the same for the initial one in j1939_session_new() to avoid refcount underflow.
[mkl: clean up commit message]
From the CVE record · Linux
The Linux kernel’s CAN J1939 session creation code can underflow a packet-buffer reference count because it omits a reference increment for the initial buffer. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with CAN J1939 support should check their versions; affected versions are not specified.