HIGH Introduced in 4.14
rdma EthSpeed Race
CVE-2026-98359
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.9MEDIUM
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 4.14 | 6.1.189 | be4b44c8b47c |
| 6.12 | 4.14 | 6.12.112 | 520cd057f138 |
| 6.18 | 4.14 | 6.18.54 | a219459fbd1b |
| 6.6 | 4.14 | 6.6.158 | 45c60ffc7977 |
| 7.2 | 4.14 | 7.2.8 | 5bd42f74ec3b |
| mainline | 4.14 | 7.3 | ef9fbe1b93f3 |
| cip/6.1 | 4.14 | 6.1.189-cip61 | be4b44c8b47c |
| cip/6.1-rt | 4.14 | 6.1.189-cip61-rt32 | be4b44c8b47c |
| cip/6.12 | 4.14 | 6.12.112-cip33 | 520cd057f138 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |