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 A716619F12A for ; Wed, 26 Feb 2025 01:57:46 +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=1740535066; cv=none; b=IJSH2wyN2vDfvjtimaL/OBCTFqKNE42y6v/3W/icklMyJflOqgvqfz6HIS3V/walpz/N4C/rAu9D8DNBJ8BigBFYm0+QB6BHD2eKklHuvZ3qaTk5Uui3fe3UDOGiNUPWRKriKiT/vfXi2S7sZtJdABEN3MxvdrWTKfsuI32cT24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535066; c=relaxed/simple; bh=ErhL5xoJZsYJ7oP4t9P5ONLy9jfAp64QYNEtUbJV34A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KZLYwzM2BvwxU+Lxx+72KbZbldZDJ05kROBP7lW6r6Bit/y5FHWjI0jPTgB6Iaf9hnHzQqi2jRzPRtAMLbeHCA3Ppzegu1YkacTgSYvmfni5o7xIh/Vw1ka/emKkLSmQpG/Sf5PMfa6Vuy0VWvXGnOpjf/R2bbn2VAVGhlrMXew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V27bjygB; 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="V27bjygB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76FF1C4CEDD; Wed, 26 Feb 2025 01:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535066; bh=ErhL5xoJZsYJ7oP4t9P5ONLy9jfAp64QYNEtUbJV34A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V27bjygBCyhy7Uo3FLu4IydBn6VHnEUzxV0FeBZhcqehdq8N8u8eDKkomvN+13sEN 43yOVqewF9yD3VPIknXO/UG6O68UZVhhVpdxnRqRt0p1yh1mlyDaPW4dbUWl862DJq JhJldrLkVEMy49vvHvdy2UXdt+ixwdMPJWUAO9BE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49060: net/smc: Fix NULL pointer dereference in smc_pnet_find_ib() Date: Wed, 26 Feb 2025 02:54:25 +0100 Message-ID: <2025022653-CVE-2022-49060-6210@gregkh> X-Mailer: git-send-email 2.48.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=2598; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ErhL5xoJZsYJ7oP4t9P5ONLy9jfAp64QYNEtUbJV34A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SgxNX3/73rNwxWf3qCjXFYU6/w4rGG+f9WJeqzt/b 2uc5qmHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRI9UMC5Z1b65RltCctfW3 +oJDjMWCUe2ClxhmMXvfzna6XLLrWcyUA3UGVm7hh8IkAA== 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: net/smc: Fix NULL pointer dereference in smc_pnet_find_ib() dev_name() was called with dev.parent as argument but without to NULL-check it before. Solve this by checking the pointer before the call to dev_name(). The Linux kernel CVE team has assigned CVE-2022-49060 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit af5f60c7e3d593c2fa31b9a62c16eae75f074de3 and fixed in 5.4.190 with commit a05f5e26cb8bb4d07e0595545fcad1bb406f0085 Issue introduced in 5.1 with commit af5f60c7e3d593c2fa31b9a62c16eae75f074de3 and fixed in 5.10.112 with commit 35b91e49bc80ca944a8679c3b139ddaf2f8eea0f Issue introduced in 5.1 with commit af5f60c7e3d593c2fa31b9a62c16eae75f074de3 and fixed in 5.15.35 with commit 3a523807f01455fe9a0c1a433f27cd4411ee400f Issue introduced in 5.1 with commit af5f60c7e3d593c2fa31b9a62c16eae75f074de3 and fixed in 5.17.4 with commit 22025513ced3d599ee8b24169141c95cf2467a4a Issue introduced in 5.1 with commit af5f60c7e3d593c2fa31b9a62c16eae75f074de3 and fixed in 5.18 with commit d22f4f977236f97e01255a80bca2ea93a8094fc8 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-49060 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/smc/smc_pnet.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/a05f5e26cb8bb4d07e0595545fcad1bb406f0085 https://git.kernel.org/stable/c/35b91e49bc80ca944a8679c3b139ddaf2f8eea0f https://git.kernel.org/stable/c/3a523807f01455fe9a0c1a433f27cd4411ee400f https://git.kernel.org/stable/c/22025513ced3d599ee8b24169141c95cf2467a4a https://git.kernel.org/stable/c/d22f4f977236f97e01255a80bca2ea93a8094fc8