CVE-2026-139207

net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys

mlx5e_ipsec_netevent_event() 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 mlx5e_ipsec_netevent_event+0x736/0x8d0 [mlx5_core]
Read of size 4 at addr ff110001260a4ad8 by task swapper/8/0
Call Trace:
<IRQ>
mlx5e_ipsec_netevent_event+0x736/0x8d0 [mlx5_core]
notifier_call_chain+0x97/0x2b0
atomic_notifier_call_chain+0x5d/0x130
neigh_timer_handler+0x35c/0x1140
call_timer_fn+0x164/0x490
__run_timers+0x5b9/0x960
run_timer_softirq+0xf0/0x1d0
handle_softirqs+0x189/0x8a0
__irq_exit_rcu+0x10d/0x250
...

Allocated by task 1015:
__kmalloc_noprof+0x2e6/0x8b0
___neigh_create+0xcc9/0x24c0
ip_finish_output2+0xfc7/0x1e80
ip_output+0x172/0x3b0
ip_send_skb+0xa5/0x1b0
udp_send_skb+0x852/0x10f0
udp_sendmsg+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.

Analysis

AI-generated

Technical impact

The mlx5e IPsec driver in the Linux kernel compares neighbour entries with offloaded IPsec security associations by reading a number of bytes based on the SA’s address family. When an IPv6 tunnel‑mode SA is present, an IPv4 neighbour update triggers a 16‑byte read from a 4‑byte ARP entry, causing a kernel out‑of‑bounds read. This memory corruption can expose kernel data and, if leveraged, could lead to a crash or arbitrary code execution.

Affected Systems

All Linux kernel builds that include the Mellanox mlx5e driver with IPsec offload are affected. The specific kernel series or patch level are not detailed in the advisory, so any deployment running a kernel that supports mlx5e IPsec offload is potentially vulnerable.

Risk and Exploitability

The vulnerability has not been assigned a CVSS score in the provided data, and EPSS is not available, leaving the exact likelihood of exploitation indeterminate. It is not currently listed in CISA’s KEV catalog. The flaw is triggered by local neighbour table updates, so an attacker with local access could force the vulnerability. No publicly known remote exploits exist, but the kernel memory corruption could still be catastrophic if an attacker is able to control the attacker’s environment. Therefore, the risk is considered high for systems that enable mlx5e IPsec offload.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the commit adding the address‑family check for mlx5e IPsec offload.
  • If an immediate kernel update is not possible, disable the IPsec offload feature on Mellanox 5xx devices by configuring the driver or unloading it.
  • Add monitoring for KASAN or kernel panic messages and alert administrators when such events occur.

Generated by OpenCVE AI on November 30, 2026 at 20:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys mlx5e_ipsec_netevent_event() 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 mlx5e_ipsec_netevent_event+0x736/0x8d0 [mlx5_core] Read of size 4 at addr ff110001260a4ad8 by task swapper/8/0 Call Trace: <IRQ> mlx5e_ipsec_netevent_event+0x736/0x8d0 [mlx5_core] notifier_call_chain+0x97/0x2b0 atomic_notifier_call_chain+0x5d/0x130 neigh_timer_handler+0x35c/0x1140 call_timer_fn+0x164/0x490 __run_timers+0x5b9/0x960 run_timer_softirq+0xf0/0x1d0 handle_softirqs+0x189/0x8a0 __irq_exit_rcu+0x10d/0x250 ... Allocated by task 1015: __kmalloc_noprof+0x2e6/0x8b0 ___neigh_create+0xcc9/0x24c0 ip_finish_output2+0xfc7/0x1e80 ip_output+0x172/0x3b0 ip_send_skb+0xa5/0x1b0 udp_send_skb+0x852/0x10f0 udp_sendmsg+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.
Title net/mlx5e: IPsec, Fix out-of-bounds comparison of neighbour keys
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM