CVE-2026-46176

RDMA/mlx5: Fix error path fall-through in mlx5_ib_dev_res_srq_init()

HIGH
7.8
CVSS Score
Published: May 28, 2026 at 09:36 AM UTC
Updated: October 19, 2026 at 08:18 PM UTC
2 products affected across 2 vendorsLinux KernelEnterprise Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix error path fall-through in mlx5_ib_dev_res_srq_init() mlx5_ib_dev_res_srq_init() allocates two SRQs, s0 and s1. When ib_create_srq() fails for s1, the error branch destroys s0 but falls through and unconditionally assigns the freed s0 and the ERR_PTR s1 to devr->s0 and devr->s1. This leads to several problems: the lock-free fast path checks "if (devr->s1) return 0;" and treats the ERR_PTR as already initialised; users in mlx5_ib_create_qp() dereference the freed SRQ or ERR_PTR via to_msrq(devr->s0)->msrq.srqn; and mlx5_ib_dev_res_cleanup() dereferences the ERR_PTR and double-frees s0 on teardown. Fix by adding the same `goto unlock` in the s1 failure path.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.11 ≤ v < 6.12.886.13 ≤ v < 6.18.306.19 ≤ v < 7.0.76.6.64 ≤ v < 6.6.1405895e70f2e6e8dc67b551ca554d6fcde0a7f04676.6.647.17.1 rc17.1 rc2b6334d2356fc0922ed01457960f74923058a353a
Vendor states this is fixed in 6fd93142dd1d09000c3750af08270f5792523fe9 (fixed)
Vendor states this is fixed in a13c2ac4d480b734342c6fbf8249fc48afd675f3 (fixed)
Vendor states this is fixed in b087913ae88256df66620f7ba0a9776716aeef7e (fixed)
Vendor states this is fixed in bc2cf5935b4665172235341163315905197ae91d (fixed)
Vendor states this is fixed in c488df06bd552bb8b6e14fa0cfd5ad986c6e9525 (fixed)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.12.88 (unaffected)
Vendor states this is fixed in 6.18.30 (unaffected)
Vendor states this is fixed in 6.6.140 (unaffected)
Vendor states this is fixed in 7.0.7 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)
Vendor states this is fixed in 0:5.14.0-570.125.1.el9_6 (unaffected)
Vendor states this is fixed in 0:5.14.0-687.19.1.el9_8 (unaffected)
Vendor states this is fixed in 0:6.12.0-211.29.1.el10_2 (unaffected)
Vendor states this is fixed in 0:6.12.0-55.84.1.el10_0 (unaffected)
Vendor states this is fixed in 7 (unaffected)
Vendor states this is fixed in 8 (unaffected)
Vendor states this is fixed in 6 (unknown)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfoCWE-825

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card