KernelScan.io

HIGH Introduced in 4.14

rdma EthSpeed Race

CVE-2026-98359

CVSS 7.0 / 10.0 NVD

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.9MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Reject unregistering netdevs in ib_get_eth_speed ib_device_get_netdev() intentionally returns a referenced net_device even when it is unregistering, so matching and cleanup callers can still find the association. The reference keeps struct net_device allocated, but does not guarantee that the device remains operational. ib_get_eth_speed() uses the returned device operationally by invoking its ethtool callback. Although that call is made under RTNL, the function does not verify the registration state first. An asynchronous RDMA port query can therefore call into a netdev after NETDEV_UNREGISTER and ndo_uninit have completed. Check for NETREG_REGISTERED while holding RTNL and return -ENODEV for a device which is being unregistered. Keeping RTNL across the check and the ethtool operation prevents unregister from starting between them. Keep the speed fallback and warning under RTNL as well, so the warning can safely read netdev->name. Drop the netdev reference before releasing RTNL once all accesses to the device are complete.

02

Engine v0.7.0

Risk summary

A local attacker with access to an RDMA device can trigger a port speed query that races with network device unregistration, causing the kernel to invoke ethtool callbacks on a partially torn-down device whose driver private data may have already been freed. This can lead to memory corruption, kernel panic, or potential privilege escalation. The vulnerability requires RDMA support in the kernel and a race window between netdev teardown and an asynchronous RDMA port query.

Affecteddrivers/infiniband/core/verbs.c (RDMA core)

Vulnerability analysis

When querying the link speed of an RDMA port, the kernel retrieves the associated network device and invokes its ethtool callback to read link settings. Although the code holds the internal networking lock during the ethtool call, it never verifies that the network device is still registered before using it operationally. If a network device is being asynchronously unregistered at the same time, the ethtool callback can execute after the device's teardown routine has already freed its driver-private data, resulting in use of freed memory. The fix adds a registration-state check while holding the lock before invoking the ethtool operation, returning an error if the device is unregistering, and keeps the lock held across both the check and the ethtool call so that unregistration cannot begin in between. This vulnerability is reachable locally by any user with access to an RDMA device who can trigger a port query; the race window opens when the associated network device is being unregistered, which can occur during normal system operation or be induced by a user with network administration privileges.

03

BranchIntroducedFixed inPatch commit
6.14.146.1.189be4b44c8b47c
6.124.146.12.112520cd057f138
6.184.146.18.54a219459fbd1b
6.64.146.6.15845c60ffc7977
7.24.147.2.85bd42f74ec3b
mainline4.147.3ef9fbe1b93f3
cip/6.14.146.1.189-cip61be4b44c8b47c
cip/6.1-rt4.146.1.189-cip61-rt32be4b44c8b47c
cip/6.124.146.12.112-cip33520cd057f138

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)