AZL-116956: CVE-2026-139207 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys
mlx5eipsecneteventevent() keeps the L2 headers of offloaded tunnel mode SAs up to date: on every neighbour change it looks for SAs whose endpoint matches the neighbour's address. The compare width, 4 bytes for IPv4 or 16 for IPv6, is chosen from the SA's address family, with no check that the neighbour is of the same family.
An ARP entry only stores a 4-byte key, so with an IPv6 tunnel mode SA offloaded, any IPv4 neighbour update in the system is compared as if it were a 16-byte IPv6 address, reading past the end of the object:
BUG: KASAN: slab-out-of-bounds in mlx5eipsecneteventevent+0x736/0x8d0 [mlx5core] Read of size 4 at addr ff110001260a4ad8 by task swapper/8/0 Call Trace: <IRQ> mlx5eipsecneteventevent+0x736/0x8d0 [mlx5core] notifiercallchain+0x97/0x2b0 atomicnotifiercallchain+0x5d/0x130 neightimerhandler+0x35c/0x1140 calltimerfn+0x164/0x490 runtimers+0x5b9/0x960 runtimersoftirq+0xf0/0x1d0 handlesoftirqs+0x189/0x8a0 irqexitrcu+0x10d/0x250 ...
Allocated by task 1015: kmallocnoprof+0x2e6/0x8b0 neighcreate+0xcc9/0x24c0 ipfinishoutput2+0xfc7/0x1e80 ipoutput+0x172/0x3b0 ipsendskb+0xa5/0x1b0 udpsendskb+0x852/0x10f0 udpsendmsg+0x1333/0x2150 ...
The opposite mix (IPv4 SA with IPv6 neighbour) stays in bounds, but only the first 32 bits of the IPv6 address are compared, so an unrelated neighbour can match.
Skip neighbours whose address family doesn't match the SA.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mlx5e_ipsec_netevent_event(), skip neighbours whose address family does not match the SA.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Systems using mlx5e IPsec with an offloaded IPv6 tunnel-mode security association are exposed when IPv4 neighbour updates occur on the system. The problematic path compares the IPv4 ARP neighbour key using the IPv6 address width.
What triggers the out-of-bounds read?
An IPv4 neighbour or ARP entry update can trigger the issue while an IPv6 tunnel-mode SA is offloaded. The handler reads beyond the 4-byte ARP key as though it were a 16-byte IPv6 address.
How might an affected system present this problem?
The supplied report shows KASAN reporting a slab-out-of-bounds read in mlx5e_ipsec_netevent_event in the mlx5_core module. The call trace runs through neighbour timer handling and timer softirq processing.