blob: 15ec3adf924a715bd77d00aa9df33b4d7ed62773 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2022-49060: net/smc: Fix NULL pointer dereference in smc_pnet_find_ib()
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