# CVE-2026-98360: RDMA/rxe: insert mcg into mcg\_tree only after rxe\_mcast\_add() succeeds

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **Published:** 2026-10-06T08:46:46.743Z
- **Modified:** 2026-10-19T10:18:38.803Z

## Who should check

- Anyone running Linux \>= a926a903b7dc39a8a949150258c09290998dd812, \< ddb43ac0926d4a931bc9b7744b93627f627457e5; \>= a926a903b7dc39a8a949150258c09290998dd812, \< c79a789aa15180a1543b5db49c343d12e3ec214d; \>= a926a903b7dc39a8a949150258c09290998dd812, \< faae1fb4ccf8205806a8802c008798dabeb0205b; \>= a926a903b7dc39a8a949150258c09290998dd812, \< 02c0a2fa69c16248a7432af8a6d64ab2a73a5283; \>= a926a903b7dc39a8a949150258c09290998dd812, \< d4fc4e37f8a143b0fe83b42c8fb48cf542154fee; \>= a926a903b7dc39a8a949150258c09290998dd812, \< 1caceeb2d74bbe88223aea55eb8626b4c5f076fd
- Anyone running Linux 5.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: insert mcg into mcg\_tree only after rxe\_mcast\_add() succeeds

rxe\_get\_mcg() publishes a newly allocated multicast group in
rxe-\>mcg\_tree before programming the backing Ethernet multicast address
with rxe\_mcast\_add(), which runs outside mcg\_lock. A local userspace
RDMA client reaches this path with ATTACH\_MCAST on a UD QP; if
rxe\_mcast\_add() then returns an error (for example -ENODEV when the
backing netdev has been removed, or a propagated dev\_mc\_add() error),
the unwind frees the published group without removing it from the tree.
A later lookup of the same MGID dereferences the freed struct rxe\_mcg
from \_\_rxe\_lookup\_mcg().

Fix this by keeping the new mcg private until rxe\_mcast\_add() succeeds.
Split the tree publication into \_\_rxe\_publish\_mcg(), call rxe\_mcast\_add()
before taking the tree reference, and free the still-private mcg on
failure. Because the group is never visible in mcg\_tree until the
multicast address is programmed, no concurrent caller can look it up or
attach a QP to a group that is about to be torn down, so the error path
needs no conditional unwind. If another caller publishes the same MGID
while the address is being programmed, the post-add re-check under
mcg\_lock finds the winner; this caller then drops its private object and
balances its own rxe\_mcast\_add() with rxe\_mcast\_del() before returning
the winner.

Reproduced by forcing the rxe\_mcast\_add() error return under KASAN:
without the change the next attach to the same MGID reports a
slab-use-after-free in \_\_rxe\_lookup\_mcg(); with it the forced failure
returns cleanly. A no-injection attach/detach regression, including a
two-QP shared join/leave and re-attach, stays KASAN- and leak-clean.

## Affected and fixed versions

- Linux: \>= a926a903b7dc39a8a949150258c09290998dd812, \< ddb43ac0926d4a931bc9b7744b93627f627457e5; \>= a926a903b7dc39a8a949150258c09290998dd812, \< c79a789aa15180a1543b5db49c343d12e3ec214d; \>= a926a903b7dc39a8a949150258c09290998dd812, \< faae1fb4ccf8205806a8802c008798dabeb0205b; \>= a926a903b7dc39a8a949150258c09290998dd812, \< 02c0a2fa69c16248a7432af8a6d64ab2a73a5283; \>= a926a903b7dc39a8a949150258c09290998dd812, \< d4fc4e37f8a143b0fe83b42c8fb48cf542154fee; \>= a926a903b7dc39a8a949150258c09290998dd812, \< 1caceeb2d74bbe88223aea55eb8626b4c5f076fd (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 1caceeb2d74bbe88223aea55eb8626b4c5f076fd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98360. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98360.md
Affected: Linux >= a926a903b7dc39a8a949150258c09290998dd812, < ddb43ac0926d4a931bc9b7744b93627f627457e5; >= a926a903b7dc39a8a949150258c09290998dd812, < c79a789aa15180a1543b5db49c343d12e3ec214d; >= a926a903b7dc39a8a949150258c09290998dd812, < faae1fb4ccf8205806a8802c008798dabeb0205b; >= a926a903b7dc39a8a949150…
Fixed in: Linux 02c0a2fa69c16248a7432af8a6d64ab2a73a5283, Linux 1caceeb2d74bbe88223aea55eb8626b4c5f076fd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98360 being exploited?

There is no confirmed exploitation: CVE-2026-98360 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98360?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-98360?

Linux \>= a926a903b7dc39a8a949150258c09290998dd812, \< ddb43ac0926d4a931bc9b7744b93627f627457e5; \>= a926a903b7dc39a8a949150258c09290998dd812, \< c79a789aa15180a1543b5db49c343d12e3ec214d; \>= a926a903b7dc39a8a949150258c09290998dd812, \< faae1fb4ccf8205806a8802c008798dabeb0205b; \>= a926a903b7dc39a8a949150258c09290998dd812, \< 02c0a2fa69c16248a7432af8a6d64ab2a73a5283; \>= a926a903b7dc39a8a949150258c09290998dd812, \< d4fc4e37f8a143b0fe83b42c8fb48cf542154fee; \>= a926a903b7dc39a8a949150258c09290998dd812, \< 1caceeb2d74bbe88223aea55eb8626b4c5f076fd; Linux 5.18.

### Is there a fix for CVE-2026-98360?

Yes. Fixed in Linux 02c0a2fa69c16248a7432af8a6d64ab2a73a5283, Linux 1caceeb2d74bbe88223aea55eb8626b4c5f076fd. Upgrade Linux to 1caceeb2d74bbe88223aea55eb8626b4c5f076fd or later.

### How do I check if I'm affected by CVE-2026-98360?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ddb43ac0926d4a931bc9b7744b93627f627457e5>
- other: <https://git.kernel.org/stable/c/c79a789aa15180a1543b5db49c343d12e3ec214d>
- other: <https://git.kernel.org/stable/c/faae1fb4ccf8205806a8802c008798dabeb0205b>
- other: <https://git.kernel.org/stable/c/02c0a2fa69c16248a7432af8a6d64ab2a73a5283>
- other: <https://git.kernel.org/stable/c/d4fc4e37f8a143b0fe83b42c8fb48cf542154fee>
- other: <https://git.kernel.org/stable/c/1caceeb2d74bbe88223aea55eb8626b4c5f076fd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98360>

HTML: <https://flawdb.com/CVE-2026-98360> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98360>
