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 55A0613AA2E for ; Wed, 17 Apr 2024 10:10:55 +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=1713348655; cv=none; b=X7okVcekW4HBx42zcIktanRkMCU0ZSBE/InU0/bdkKTkh6xT4H1eK/BHUCbo45Cu4OPeTuRmqOhsOqHoiOv8bnt/yYcdWZPTu5oTISL16qU5vKs6I5jk5KIUT/wn5iAH+vsBLncJaSEAq2QkhVpr5OlYf/7v2kYZpAg1wpU5qNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713348655; c=relaxed/simple; bh=iw508kydjyy1nFs6pWRrE6BLFbdY8D45rgvbctSMFw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KsQ2ZHDq0PCRt9EAWD10AwJIJ0xcG6MY85zotw4XO4MYJYkHwCbhCky108bk+N+aCP1+NnzXAUMFpqG0my7fjBt1SgYTcyVsRGLitvEkvzxglCSxGRfdsFHx9F97/wrfSTWnoXdkK8dAUIxig8flp86aIB9hoZuAWxKg+SyY6vk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IzZNkUUX; 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="IzZNkUUX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86AF9C072AA; Wed, 17 Apr 2024 10:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713348654; bh=iw508kydjyy1nFs6pWRrE6BLFbdY8D45rgvbctSMFw0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IzZNkUUX4nrq/n9lOBXfOsD6Lw0AfeBzV4/MlUlN+hA4dIuFj4TkTZUVaIcrGGd0r 398+tq0IxUFPg3dS2QtXJaeezME5l+Sl9+Q/Q+Yhzzcc2fpsM1BQrVMVtcehHtrOzG PPLT+nVrPnyj4t3BX1fhR0FSUWEpRWEMG848ikjw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26838: RDMA/irdma: Fix KASAN issue with tasklet Date: Wed, 17 Apr 2024 12:10:20 +0200 Message-ID: <2024041715-CVE-2024-26838-2fdb@gregkh> X-Mailer: git-send-email 2.44.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=3323; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iw508kydjyy1nFs6pWRrE6BLFbdY8D45rgvbctSMFw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyC9iv5ez/xf5r0ottybZnVx2cf92nYuXCjo64nonLj +7dUrCRpSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmYufDsGD+p8wXS/jVnKX2 SXpZvn4q3d0s8YVhfnye5LTM91yJK+vDPwaFpX73+xQ4GQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: Fix KASAN issue with tasklet KASAN testing revealed the following issue assocated with freeing an IRQ. [50006.466686] Call Trace: [50006.466691] [50006.489538] dump_stack+0x5c/0x80 [50006.493475] print_address_description.constprop.6+0x1a/0x150 [50006.499872] ? irdma_sc_process_ceq+0x483/0x790 [irdma] [50006.505742] ? irdma_sc_process_ceq+0x483/0x790 [irdma] [50006.511644] kasan_report.cold.11+0x7f/0x118 [50006.516572] ? irdma_sc_process_ceq+0x483/0x790 [irdma] [50006.522473] irdma_sc_process_ceq+0x483/0x790 [irdma] [50006.528232] irdma_process_ceq+0xb2/0x400 [irdma] [50006.533601] ? irdma_hw_flush_wqes_callback+0x370/0x370 [irdma] [50006.540298] irdma_ceq_dpc+0x44/0x100 [irdma] [50006.545306] tasklet_action_common.isra.14+0x148/0x2c0 [50006.551096] __do_softirq+0x1d0/0xaf8 [50006.555396] irq_exit_rcu+0x219/0x260 [50006.559670] irq_exit+0xa/0x20 [50006.563320] smp_apic_timer_interrupt+0x1bf/0x690 [50006.568645] apic_timer_interrupt+0xf/0x20 [50006.573341] The issue is that a tasklet could be pending on another core racing the delete of the irq. Fix by insuring any scheduled tasklet is killed after deleting the irq. The Linux kernel CVE team has assigned CVE-2024-26838 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 44d9e52977a1 and fixed in 5.15.150 with commit 635d79aa477f Issue introduced in 5.14 with commit 44d9e52977a1 and fixed in 6.1.80 with commit b2e4a5266e3d Issue introduced in 5.14 with commit 44d9e52977a1 and fixed in 6.6.19 with commit c6f1ca235f68 Issue introduced in 5.14 with commit 44d9e52977a1 and fixed in 6.7.7 with commit 0ae8ad001397 Issue introduced in 5.14 with commit 44d9e52977a1 and fixed in 6.8 with commit bd97cea7b18a 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-2024-26838 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/irdma/hw.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/635d79aa477f9912e602feb5498bdd51fb9cb824 https://git.kernel.org/stable/c/b2e4a5266e3d133b4c7f0e43bf40d13ce14fd1aa https://git.kernel.org/stable/c/c6f1ca235f68b22b3e691b2ea87ac285e5946848 https://git.kernel.org/stable/c/0ae8ad0013978f7471f22bcf45b027393e87f5dc https://git.kernel.org/stable/c/bd97cea7b18a0a553773af806dfbfac27a7c4acb