llc: do not use skb_get() before dev_queue_xmit()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 0f764208dc24ea043c3e20194d32aebf94f8459c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
llc: do not use skb_get() before dev_queue_xmit()
syzbot is able to crash hosts [1], using llc and devices not supporting IFF_TX_SKB_SHARING.
In this case, e1000 driver calls eth_skb_pad(), while the skb is shared.
Simply replace skb_get() by skb_clone() in net/llc/llc_s_ac.c
Note that e1000 driver might have an issue with pktgen, because it does not clear IFF_TX_SKB_SHARING, this is an orthogonal change.
We need to audit other skb_get() uses in net/llc.
[1]
From the CVE record · Linux
The Linux kernel's LLC networking code can crash a host when transmitting through a device that does not support IFF_TX_SKB_SHARING. The reported crash was triggered using an LLC socket and such a device; the input does not establish whether remote access or authentication is required.
Engineers running Linux kernels with LLC networking on devices that do not support IFF_TX_SKB_SHARING should check their exposure; affected versions are not specified.