Linux
net: ioam6: fix OOB and missing lock
In the Linux kernel, the following vulnerability has been resolved: net: ioam6: fix OOB and missing lock When trace->type.bit6 is set: if (trace->type.bit6) { ... queue = skb_get_tx_queue(dev, skb); qdisc = rcu_dereference(queue->qdisc); This code can lead to an out-of-bounds access of the dev->_tx[] array when is_input is true. In such a case, the packet is on the RX path and skb->queue_mapping contains the RX queue index of the ingress device. If the ingress device has more RX queues than the egress device (dev) has TX queues, skb_get_queue_mapping(skb) will exceed dev->num_tx_queues. Add a check to avoid this situation since skb_get_tx_queue() does not clamp the index. This issue has also revealed that per queue visibility cannot be accurate and will be replaced later as a new feature. While at it, add missing lock around qdisc_qstats_qlen_backlog(). The function __ioam6_fill_trace_data() is called from both softirq and process contexts, hence the use of spin_lock_bh() here.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b63c5478e9cb1d1504eb02d9dac827ad24612b32, < d8fa972c543e6a41f9a0873a725fd1d8d4d9dbfc
- >= b63c5478e9cb1d1504eb02d9dac827ad24612b32, < a05a85779c2574b6534abb8cdc6d65fbc2e91208
- >= b63c5478e9cb1d1504eb02d9dac827ad24612b32, < f1af9d19503b73011dae5051c354fd39b03e240d
- >= b63c5478e9cb1d1504eb02d9dac827ad24612b32, < 6d1d9ed9b409e0662241e3d245d574a18f643494
- >= b63c5478e9cb1d1504eb02d9dac827ad24612b32, < 95a1334748c95dd15546056280ade0c4b8dd7b78
- >= b63c5478e9cb1d1504eb02d9dac827ad24612b32, < b30b1675aa2bcf0491fd3830b051df4e08a7c8ca
Fixed in d8fa972c543e6a41f9a0873a725fd1d8d4d9dbfc, a05a85779c2574b6534abb8cdc6d65fbc2e91208, f1af9d19503b73011dae5051c354fd39b03e240d, 6d1d9ed9b409e0662241e3d245d574a18f643494, 95a1334748c95dd15546056280ade0c4b8dd7b78, b30b1675aa2bcf0491fd3830b051df4e08a7c8ca
- 5.17
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.24, 6.19.14, 7.0
Mitigation
Upgrade Linux to d8fa972c543e6a41f9a0873a725fd1d8d4d9dbfc or a05a85779c2574b6534abb8cdc6d65fbc2e91208 or f1af9d19503b73011dae5051c354fd39b03e240d or 6d1d9ed9b409e0662241e3d245d574a18f643494 or 95a1334748c95dd15546056280ade0c4b8dd7b78 or b30b1675aa2bcf0491fd3830b051df4e08a7c8ca or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.24 or 6.19.14 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.