EN
FREN
CVE-2025-22089, RDMA/core: Don't expose hw_counters outside of init net namespace
7.8High

CVE-2025-22089 : Linux · high

CVE-2025-22089 · published on April 16, 2025 at 14:12 · updated on August 5, 2026 at 11:56 · CVSS 3.1, read on November 25, 2026

7.8CVSS score
588days since publication
linux

The CVSS score measures technical severity, not your exposure. Here: local attack, no particular condition, no action by the victim. A high score on software you don't use doesn't concern you, and a medium score on exposed software still needs fixing.

What this vulnerability allows, plainly. Remote code execution, from the machine itself. The attacker runs their own commands on the server.

In practice, for a business:

  • full takeover of the site, content and customer accounts included
  • a backdoor planted that survives the update
  • hosting bills and brand reputation damaged

This software is not part of the general network we measure: it lives on workstations, internal servers or appliances that are not reachable from the internet, unless their port is publicly exposed. That is exactly when exposure becomes real, and it is what we check as soon as a version is readable from outside.

What is the CVE-2025-22089 vulnerability ?

In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Don't expose hw_counters outside of init net namespace Commit 467f432a521a ("RDMA/core: Split port and device counter sysfs attributes") accidentally almost exposed hw counters to non-init net namespaces. It didn't expose them fully, as an attempt to read any of those counters leads to a crash like this one: [42021.807566] BUG: kernel NULL pointer dereference, address: 0000000000000028 [42021.814463] #PF: supervisor read access in kernel mode [42021.819549] #PF: error_code(0x0000) - not-present page [42021.824636] PGD 0 P4D 0 [42021.827145] Oops: 0000 [#1] SMP PTI [42021.830598] CPU: 82 PID: 2843922 Comm: switchto-defaul Kdump: loaded Tainted: G S W I XXX [42021.841697] Hardware name: XXX [42021.849619] RIP: 0010:hw_stat_device_show+0x1e/0x40 [ib_core] [42021.855362] Code: 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 49 89 d0 4c 8b 5e 20 48 8b 8f b8 04 00 00 48 81 c7 f0 fa ff ff 8b 41 28 48 29 ce 48 83 c6 d0 48 c1 ee 04 69 d6 ab aa aa aa 48 [42021.873931] RSP: 0018:ffff97fe90f03da0 EFLAGS: 00010287 [42021.879108] RAX: ffff9406988a8c60 RBX: ffff940e1072d438 RCX: 0000000000000000 [42021.886169] RDX: ffff94085f1aa000 RSI: ffff93c6cbbdbcb0 RDI: ffff940c7517aef0 [42021.893230] RBP: ffff97fe90f03e70 R08: ffff94085f1aa000 R09: 0000000000000000 [42021.900294] R10: ffff94085f1aa000 R11: ffffffffc0775680 R12: ffffffff87ca2530 [42021.907355] R13: ffff940651602840 R14: ffff93c6cbbdbcb0 R15: ffff94085f1aa000 [42021.914418] FS: 00007fda1a3b9700(0000) GS:ffff94453fb80000(0000) knlGS:0000000000000000 [42021.922423] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [42021.928130] CR2: 0000000000000028 CR3: 00000042dcfb8003 CR4: 00000000003726f0 [42021.935194] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [42021.942257] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [42021.949324] Call Trace: [42021.951756] [42021.953842] [ ] ? show_regs+0x64/0x70 [42021.959030] [ ] ? __die+0x78/0xc0 [42021.963874] [ ] ? page_fault_oops+0x2b5/0x3b0 [42021.969749] [ ] ? exc_page_fault+0x1a2/0x3c0 [42021.975549] [ ] ? asm_exc_page_fault+0x26/0x30 [42021.981517] [ ] ? __pfx_show_hw_stats+0x10/0x10 [ib_core] [42021.988482] [ ] ? hw_stat_device_show+0x1e/0x40 [ib_core] [42021.995438] [ ] dev_attr_show+0x1e/0x50 [42022.000803] [ ] sysfs_kf_seq_show+0x81/0xe0 [42022.006508] [ ] seq_read_iter+0xf4/0x410 [42022.011954] [ ] vfs_read+0x16e/0x2f0 [42022.017058] [ ] ksys_read+0x6e/0xe0 [42022.022073] [ ] do_syscall_64+0x6a/0xa0 [42022.027441] [ ] entry_SYSCALL_64_after_hwframe+0x78/0xe2 The problem can be reproduced using the following steps: ip netns add foo ip netns exec foo bash cat /sys/class/infiniband/mlx4_0/hw_counters/* The panic occurs because of casting the device pointer into an ib_device pointer using container_of() in hw_stat_device_show() is wrong and leads to a memory corruption. However the real problem is that hw counters should never been exposed outside of the non-init net namespace. Fix this by saving the index of the corresponding attribute group (it might be 1 or 2 depending on the presence of driver-specific attributes) and zeroing the pointer to hw_counters group for compat devices during the initialization. With this fix applied hw_counters are not available in a non-init net namespace: find /sys/class/infiniband/mlx4_0/ -name hw_counters /sys/class/infiniband/mlx4_0/ports/1/hw_counters /sys/class/infiniband/mlx4_0/ports/2/hw_counters /sys/class/infiniband/mlx4_0/hw_counters ip netns add foo ip netns exec foo bash find /sys/class/infiniband/mlx4_0/ -name hw_counters

Just before this one, two listings for the same software were published: CVE-2026-99804 (2026-11-20), then CVE-2026-99804 (2026-11-20).

A version range is read like an interval, with the lower bound included and the upper bound excluded, unless the publisher states otherwise. Comparing two version numbers is not comparing two numbers. Each part is read separately, from strongest to weakest, and a maintenance release can fix a vulnerability without changing the major number. This is why a site that announces it is "up to date" can still be vulnerable if its version is earlier than the fix bound. The only way to decide is to read the number actually published by the site, then compare it to the bound. When a site publishes no number, no conclusion is possible, and we record "not assessable" rather than assume a version. A flattering assumption is more dangerous than no answer, because it puts people to sleep. Also beware of branches maintained in parallel. A publisher can fix the same vulnerability on three different branches, with three different numbers, and the published bound applies only to the branch it names.

Which software and version are affected by the CVE-2025-22089 vulnerability ?

  • Linux, jusqu'aux versions 9a5b7f8842a90a5e6eeff37f9f6d814e61ea3529, d5212b99649c5740154f307e9e3d7fee9bf62773, 0cf80f924aecb5b2bebd4f4ad11b2efc676a0b78, df45ae2a4f1cdfda00c032839e12092e1f32c05e, c14d9704f5d77a7c7fa46e2114b64a4f75b64e17, 6682da5d8fd578a5068531d01633c9d2e4c8f12b, a1ecb30f90856b0be4168ad51b8875148e285c1f et 5.14 incluses et à partir de la version 467f432a521a284c418e3d521ee51840a5e23424

The software named above is the one the advisory identifies as vulnerable, along with the affected version range. A range is read as an interval, lower bound included and upper bound excluded, unless the vendor states otherwise. The version published by a site is read from its served files, not from its administration interface, because that is what an attacker sees. A site that declares itself up to date can therefore remain vulnerable if its version is earlier than the fix threshold. Conversely, a backported patch closes the flaw without changing the major number. We therefore never conclude on the sole number displayed by a vendor. When a site publishes no version, we write "not assessable" rather than assume.

Are French sites affected by the CVE-2025-22089 vulnerability ?

No main domain of our estate uses this software, or we have not seen it yet.

The CVE-2025-22089 vulnerability affects Linux up to versions 9a5b7f8842a90a5e6eeff37f9f6d814e61ea3529, d5212b99649c5740154f307e9e3d7fee9bf62773, 0cf80f924aecb5b2bebd4f4ad11b2efc676a0b78, df45ae2a4f1cdfda00c032839e12092e1f32c05e, c14d9704f5d77a7c7fa46e2114b64a4f75b64e17, 6682da5d8fd578a5068531d01633c9d2e4c8f12b et a1ecb30f90856b0be4168ad51b8875148e285c1f inclusive. This software does not appear in the estate we measure: our readings cover websites and their components, not network equipment or firmware, which publish no version number visible from outside. The exposure of this vulnerability therefore cannot be quantified by us, and we do not estimate it. The flaw was published on 16 April 2025. It was updated on 5 August 2026. The version reading is dated 25 November 2026. To fix it, Linux must be updated beyond version 9a5b7f8842a90a5e6eeff37f9f6d814e61ea3529: any later version is not affected by this flaw. A site that stays below that bound keeps the door open, even if the rest of its components is up to date. The catalogue lists 18 924 flaws on this software since the census began, 8 800 of them in 2026, the oldest dating from 10 January 2015. The estate figures come from our own reading of the versions the sites serve, not from an estimate: a domain that hides its version is not counted, which makes the total lower than the number of sites that use Linux.

How to fix the CVE-2025-22089 vulnerability ?

Fixing is done in a specific order, and that order matters as much as the fix itself. First, identify the version in place, without relying on the administration display, because a number is read in the served files and that is what an attacker sees. Then back up, then update to a version later than the threshold indicated by the publisher. If a direct update is not possible, apply the security patch published for your branch, which closes the flaw without changing major version. Finally verify, by re-reading the number after the operation and confirming that the page that caused the problem still responds. An unverified update is a presumed update. If the software is no longer maintained, the only solid answer is replacement, because an isolated patch on an abandoned branch will not hold against the next flaw. Also consider what surrounds the software. Extensions, modules and themes follow their own schedule, and a core update does not fix a faulty module. Finally, note the date of your fix. It will serve later to prove that the flaw was closed before being exploited.

  1. Identify the installed version of the affected software.
  2. Apply the update that goes beyond the fixed limit published above.
  3. If the update is not possible, disable the component or remove the exposed feature.
  4. Check afterwards that the installed version is well beyond the threshold, using the same command that was used to read it.

Where to find the fix and the proofs for the CVE-2025-22089 vulnerability ?

No public evidence recorded to date. Its absence does not mean nobody exploits it: a successful attack is not published. 8 references published for this flaw, 8 of them shown here. The list starts with what fixes it (commit, patched release, affected code), then the vendor advisory, then public evidence. Each link opens the original source in a new tab.

Other vulnerabilities in the same module

Continue