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 7DCBF1FDD for ; Tue, 21 May 2024 15:25:38 +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=1716305138; cv=none; b=NCZYQREQkx7TrO0zvSG2cWT2o/LlURuUQDuKnOS+MFIRhuu55hSqw+ARfZH24qc9RNGr22qrgxtwrN+xlUCeIp40LzyfXXK+q9gBba4ZOGpntBj/gEWRrKHsJxGGIVygy6EIeecpsFhLre4mxAcIdR3c9JUluniN1QpQYkzPln8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305138; c=relaxed/simple; bh=UrblAb8o2qgVN9LX6PNUufRwVFoQu6v6GFQKABGj6Ck=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GT1tqU8joc4RDC3EgLoo52KQgiRFA3YssRRf4K6fp63jH6cmd0DtwvaBsXxJN8qOIGkFTUw7tuqfRmUVSYNGeQd4v0Ngokintja8dIdHaR9kUoCnqyttkGB0FSW5zHG2RYGz46Q2KhckEkN5LuhXcKI4os7hHXarZbGsC7d3g/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0iQFj5Ss; 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="0iQFj5Ss" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A98BFC2BD11; Tue, 21 May 2024 15:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305138; bh=UrblAb8o2qgVN9LX6PNUufRwVFoQu6v6GFQKABGj6Ck=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0iQFj5SspwMRzq1Byqdl5PVw75TtNBhBb06+yXsazmEH07aSU/uJObIUUh+CtzH19 Oh/doVCRcBamzhjgi2Y45Qry6LsSAkDSeRWdG+EX0+4yx/WkfXwZYkz3y1NYA7pW9u 0q6JatLjd/KVUbatw33IlD4Q0UThW3q0kyqb5A4U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52744: RDMA/irdma: Fix potential NULL-ptr-dereference Date: Tue, 21 May 2024 17:23:21 +0200 Message-ID: <2024052103-CVE-2023-52744-1e58@gregkh> X-Mailer: git-send-email 2.45.1 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=2064; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UrblAb8o2qgVN9LX6PNUufRwVFoQu6v6GFQKABGj6Ck=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+e8LnnXB0+z1b4O2NrIVMj32313d+E+V3uKvPenym6 hYRw/K9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR8DaGBddSBNxTpb9K/RWO DDCVZHJ4dLLjJcN8tzKfbWc6VlRvWbDv4vP39+KeG92zBgA= 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 potential NULL-ptr-dereference in_dev_get() can return NULL which will cause a failure once idev is dereferenced in in_dev_for_each_ifa_rtnl(). This patch adds a check for NULL value in idev beforehand. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2023-52744 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 146b9756f14c and fixed in 5.15.94 with commit 8f5fe1cd8e6a Issue introduced in 5.14 with commit 146b9756f14c and fixed in 6.1.12 with commit 360682fe7df2 Issue introduced in 5.14 with commit 146b9756f14c and fixed in 6.2 with commit 5d9745cead1f 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-2023-52744 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/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/8f5fe1cd8e6a97f94840b55f59ed08cbc397086f https://git.kernel.org/stable/c/360682fe7df262d94fae54f737c487bec0f9190d https://git.kernel.org/stable/c/5d9745cead1f121974322b94ceadfb4d1e67960e