All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-cve-announce@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@kernel.org>
Subject: CVE-2026-139592: RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
Date: Mon, 30 Nov 2026 14:40:01 +0100	[thread overview]
Message-ID: <2026113003-CVE-2026-139592-5274@gregkh> (raw)

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

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

RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it

create_resource_common() inserted the resource into the radix tree
before its initialization was complete. A firmware EQE in that window
finds a zero refcount_t and calls refcount_inc() on it; the refcount API
treats this as a use-after-free, saturates the counter, and permanently
breaks the resource's lifecycle tracking.

Move the initialization before the radix_tree_insert().

The Linux kernel CVE team has assigned CVE-2026-139592 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 5.10.275 with commit d3d3ad4d0aa3aa3a204651ae47efa65afa45daae
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 5.15.226 with commit a2fe324cdb430cd23d41948488b65a8529fb9ee1
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.1.193 with commit 69bcd39f042aab1b8b794c50f3affd038cee5056
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.6.163 with commit e147bdda7834ed4188c84c5ead9f417faf8fa698
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.12.119 with commit 3dfebc28751fde6f3be0ddc1c1bcb22b96a72360
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.18.65 with commit bca1076b86026bc6445fd97a1c5c1b86210c510e
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 7.3.6 with commit 674005307775811354545959b2d614b9095deb59
	Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 7.4-rc1 with commit 829a0e65deff3f826a7870a52404aeaf1a3fec3f

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-139592
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/infiniband/hw/mlx5/qpc.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/d3d3ad4d0aa3aa3a204651ae47efa65afa45daae
	https://git.kernel.org/stable/c/a2fe324cdb430cd23d41948488b65a8529fb9ee1
	https://git.kernel.org/stable/c/69bcd39f042aab1b8b794c50f3affd038cee5056
	https://git.kernel.org/stable/c/e147bdda7834ed4188c84c5ead9f417faf8fa698
	https://git.kernel.org/stable/c/3dfebc28751fde6f3be0ddc1c1bcb22b96a72360
	https://git.kernel.org/stable/c/bca1076b86026bc6445fd97a1c5c1b86210c510e
	https://git.kernel.org/stable/c/674005307775811354545959b2d614b9095deb59
	https://git.kernel.org/stable/c/829a0e65deff3f826a7870a52404aeaf1a3fec3f

                 reply	other threads:[~2026-11-30 14:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026113003-CVE-2026-139592-5274@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=cve@kernel.org \
    --cc=gregkh@kernel.org \
    --cc=linux-cve-announce@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.