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-142828: net/rds: ib: don't enable IRQs in rds_ib_conn_free()
Date: Thu,  3 Dec 2026 04:21:25 +0100	[thread overview]
Message-ID: <2026120318-CVE-2026-142828-dfbd@gregkh> (raw)

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

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

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

net/rds: ib: don't enable IRQs in rds_ib_conn_free()

__rds_conn_create() calls trans->conn_free() with rds_conn_lock held
and IRQs disabled when it loses the race to insert a connection.
rds_ib_conn_free() takes the device list lock with spin_lock_irq() and
releases it with spin_unlock_irq(), so IRQs are turned on while
rds_conn_lock is still held:

  raw_local_irq_restore() called with IRQs enabled
  WARNING: kernel/locking/irqflag-debug.c:10 at warn_bogus_irq_restore+0xc/0x20
   _raw_spin_unlock_irqrestore+0x67/0x80
   __rds_conn_create+0x1de5/0x2290
   rds_conn_create_outgoing+0x43/0x60
   rds_sendmsg+0xfca/0x20e0
   __sys_sendto+0x408/0x5a0

It needs an RDS socket bound to an address on an RDMA device (e.g. rxe)
and two concurrent sendto() calls to the same new destination.

The TCP and loopback ->conn_free() callbacks already use irqsave, so
do the same here.

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


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

	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 5.10.275 with commit 1fb977e7e1dc932129902a606f9f2e0c459714c7
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 5.15.226 with commit ee22f05d7cbfac29e9d54de5f5f3df7dc0762319
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 6.1.193 with commit f88adc86694d00dc497d27f2e67cb5d23a1a8af3
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 6.6.163 with commit 6a847c72dca79866fdcf8aed60458cd2abe1aeeb
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 6.12.117 with commit 9a99127122a216e79073259baa32681f299f5b2f
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 6.18.63 with commit 80ee045485b98533c5732f417df19229e3794928
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 7.3.4 with commit cae22ada1f145191866678c675eb511edc4ef4b5
	Issue introduced in 2.6.30 with commit 745cbccac3fe8cead529a1b3358e1e86a1505bfa and fixed in 7.4-rc1 with commit f6fa1d60ec3ceb7e6c26aa91eadfef34f94014e1

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-142828
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:
	net/rds/ib_cm.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/1fb977e7e1dc932129902a606f9f2e0c459714c7
	https://git.kernel.org/stable/c/ee22f05d7cbfac29e9d54de5f5f3df7dc0762319
	https://git.kernel.org/stable/c/f88adc86694d00dc497d27f2e67cb5d23a1a8af3
	https://git.kernel.org/stable/c/6a847c72dca79866fdcf8aed60458cd2abe1aeeb
	https://git.kernel.org/stable/c/9a99127122a216e79073259baa32681f299f5b2f
	https://git.kernel.org/stable/c/80ee045485b98533c5732f417df19229e3794928
	https://git.kernel.org/stable/c/cae22ada1f145191866678c675eb511edc4ef4b5
	https://git.kernel.org/stable/c/f6fa1d60ec3ceb7e6c26aa91eadfef34f94014e1

                 reply	other threads:[~2026-12-03  3:24 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=2026120318-CVE-2026-142828-dfbd@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.