Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67AB92AF00 for ; Sat, 4 Oct 2025 15:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591028; cv=none; b=f2Da1BnisvDv/2clnlXAWfp0j2ao+LQl0jRmhj1ejgggADjkarQqI7RgTKKmJPpaXW24GH1XIvueYdDqQKrq5KgqsQOxFMxfp9h/a/S+3cHUQaaHGSsPB4HXnHciEBEUHP8SiqRgWJtgHCZACxTYxVrO+oFtZcTKL4PTCdbSLBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591028; c=relaxed/simple; bh=sGzRcJsXTB76XZxWQKjUON1Qqpin0Ofz3LNmodpApUg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AynYmGcFrAiP5Tg86NO4fHjOaeb8RVWrt40n7mRdEt1Nw0A5dczEt+fPo+/3Z8eKcJaklV5xj0siJPR8027FX6JwRgoIMYDANKk4zkNXLFiPjdzp3RENwpf4Gnblk/tCHDWC5zKkgChIhvnMJYdo/bBtw5xYVT7jnD4RCpPkNdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rM8C4N25; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rM8C4N25" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C8A9C4CEF1; Sat, 4 Oct 2025 15:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591027; bh=sGzRcJsXTB76XZxWQKjUON1Qqpin0Ofz3LNmodpApUg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rM8C4N25M9gsRiJLqQQZIFoo6CAtc9adPt5PINoko5hnAl0JeEK0SJTJvm3jk1JdM Vkq/69A/Dm0p6ziXNJmpWu+sL7lsP8jdRgGWV1WQcshZXl7qRnpwOeW0iedxHnTTwN 3wkkr9PdcxMJC8KO2abEP0+7roOdZopmDCj0p0aM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50472: IB/mad: Don't call to function that might sleep while in atomic context Date: Sat, 4 Oct 2025 17:16:31 +0200 Message-ID: <2025100437-CVE-2022-50472-5d91@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3999; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ouwNJG7wZOobtKS8sSUTuh3f68PBpwPLLnvFRR0YCjA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrUJ3c18oLTrmIlO+/2TOSzemmqeq4UcebalwmHb89 qRLrMKhHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARgSUM86N3rVy5uPBHu+Xv AwI/jaYfXuVewckwP8XZa9XE6oPLE/+xuvH9iN5/qOl+IQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: IB/mad: Don't call to function that might sleep while in atomic context Tracepoints are not allowed to sleep, as such the following splat is generated due to call to ib_query_pkey() in atomic context. WARNING: CPU: 0 PID: 1888000 at kernel/trace/ring_buffer.c:2492 rb_commit+0xc1/0x220 CPU: 0 PID: 1888000 Comm: kworker/u9:0 Kdump: loaded Tainted: G OE --------- - - 4.18.0-305.3.1.el8.x86_64 #1 Hardware name: Red Hat KVM, BIOS 1.13.0-2.module_el8.3.0+555+a55c8938 04/01/2014 Workqueue: ib-comp-unb-wq ib_cq_poll_work [ib_core] RIP: 0010:rb_commit+0xc1/0x220 RSP: 0000:ffffa8ac80f9bca0 EFLAGS: 00010202 RAX: ffff8951c7c01300 RBX: ffff8951c7c14a00 RCX: 0000000000000246 RDX: ffff8951c707c000 RSI: ffff8951c707c57c RDI: ffff8951c7c14a00 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffff8951c7c01300 R11: 0000000000000001 R12: 0000000000000246 R13: 0000000000000000 R14: ffffffff964c70c0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8951fbc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f20e8f39010 CR3: 000000002ca10005 CR4: 0000000000170ef0 Call Trace: ring_buffer_unlock_commit+0x1d/0xa0 trace_buffer_unlock_commit_regs+0x3b/0x1b0 trace_event_buffer_commit+0x67/0x1d0 trace_event_raw_event_ib_mad_recv_done_handler+0x11c/0x160 [ib_core] ib_mad_recv_done+0x48b/0xc10 [ib_core] ? trace_event_raw_event_cq_poll+0x6f/0xb0 [ib_core] __ib_process_cq+0x91/0x1c0 [ib_core] ib_cq_poll_work+0x26/0x80 [ib_core] process_one_work+0x1a7/0x360 ? create_worker+0x1a0/0x1a0 worker_thread+0x30/0x390 ? create_worker+0x1a0/0x1a0 kthread+0x116/0x130 ? kthread_flush_work_fn+0x10/0x10 ret_from_fork+0x35/0x40 ---[ end trace 78ba8509d3830a16 ]--- The Linux kernel CVE team has assigned CVE-2022-50472 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 821bf1de45a1a084e2e11b1a2308777434194bfe and fixed in 5.15.86 with commit 47e31b86edff36f2d26cbc88ce695d98ff804178 Issue introduced in 5.2 with commit 821bf1de45a1a084e2e11b1a2308777434194bfe and fixed in 6.0.16 with commit cea70a572c0cb9728d728cfebe7d5bd485e97513 Issue introduced in 5.2 with commit 821bf1de45a1a084e2e11b1a2308777434194bfe and fixed in 6.1.2 with commit fa8a2f3be78e4585996bcf4c15e4504441a4c7a0 Issue introduced in 5.2 with commit 821bf1de45a1a084e2e11b1a2308777434194bfe and fixed in 6.2 with commit 5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3 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-2022-50472 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/core/mad.c include/trace/events/ib_mad.h 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/47e31b86edff36f2d26cbc88ce695d98ff804178 https://git.kernel.org/stable/c/cea70a572c0cb9728d728cfebe7d5bd485e97513 https://git.kernel.org/stable/c/fa8a2f3be78e4585996bcf4c15e4504441a4c7a0 https://git.kernel.org/stable/c/5c20311d76cbaeb7ed2ecf9c8b8322f8fc4a7ae3