Skip to contentSkip to conversation

CVE-2026-43083: net: ioam6: fix OOB and missing lock

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-43083 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.17 with commit b63c5478e9cb1d1504eb02d9dac827ad24612b32 and fixed in 6.18.24 with commit 6d1d9ed9b409e0662241e3d245d574a18f643494
	Issue introduced in 5.17 with commit b63c5478e9cb1d1504eb02d9dac827ad24612b32 and fixed in 6.19.14 with commit 95a1334748c95dd15546056280ade0c4b8dd7b78
	Issue introduced in 5.17 with commit b63c5478e9cb1d1504eb02d9dac827ad24612b32 and fixed in 7.0 with commit b30b1675aa2bcf0491fd3830b051df4e08a7c8ca

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-43083

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	net/ipv6/ioam6.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/6d1d9ed9b409e0662241e3d245d574a18f643494
	https://git.kernel.org/stable/c/95a1334748c95dd15546056280ade0c4b8dd7b78
	https://git.kernel.org/stable/c/b30b1675aa2bcf0491fd3830b051df4e08a7c8ca