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 3478B15AAC9 for ; Mon, 25 Mar 2024 09:08:22 +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=1711357703; cv=none; b=gjKzRBrCQcpZKaA78Q3CSi+LOkppTB7VEev7hgV4IN+laorn0v9+c3+7ha+TFILfbcqvAPn/psOc4F8GWrJkmL8Q/1cOGTgnqNtNk9bOtm3BP4qgUDZDUfnsi1IA+TB2IhHNBio574bewk+cKQqsvFblml1sE6CJNcnxrBTObAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357703; c=relaxed/simple; bh=wUAw6SMyzWs0IxiqzxlEvxzrMJ1biCx66Sc0TSddaLA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tvAOYCJ/rl9OOY+ava8IB+nEj9IJkF20YYFMS1fY+4FtvXmF8LHaOt8f4krHdl5ezc2Lo2i+U0od5JTPyCGoIBkSSiZETUrB1NN50HVVifukvtMuUI59kJTzBCu4R081s2jtT9bUJF7w4Umx1Ddav+8DZrkBnXeSqhFIwe9+91I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f+XYFXwi; 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="f+XYFXwi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FD3FC433F1; Mon, 25 Mar 2024 09:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357702; bh=wUAw6SMyzWs0IxiqzxlEvxzrMJ1biCx66Sc0TSddaLA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f+XYFXwiHC8h6DP285rKAMAH0QHMbozfDIj2TuDe82UNgcb5e2aXi6TSr1XADoKgq yLWBBbdW8AwbQ4XapF7J8gXQYKKo7f8Z3Ku0Cs7yr3V6Q48Qn8UMcmQPONJcvU3mby 8Am4Aijav1YfKxVqi6lBjajPDszx373QsEheLL2U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47149: net: fujitsu: fix potential null-ptr-deref Date: Mon, 25 Mar 2024 10:08:06 +0100 Message-ID: <2024032500-CVE-2021-47149-b998@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=2435; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wUAw6SMyzWs0IxiqzxlEvxzrMJ1biCx66Sc0TSddaLA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdh9636nlpO6Pv8UiGnbgmJTvktL/ETK3t2/vuWkXU qQa9+tGRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkrirD/NJe/ullJ7bfXtmo uXvOqplf5t21yGOY77poI+dr9rPVbtMeneDQuR0ytybiBAA= 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: fujitsu: fix potential null-ptr-deref In fmvj18x_get_hwinfo(), if ioremap fails there will be NULL pointer deref. To fix this, check the return value of ioremap and return -1 to the caller in case of failure. The Linux kernel CVE team has assigned CVE-2021-47149 to this issue. Affected and fixed versions =========================== Fixed in 4.4.271 with commit b92170e209f7 Fixed in 4.9.271 with commit 6dbf1101594f Fixed in 4.14.235 with commit c4f1c23edbe9 Fixed in 4.19.193 with commit 7883d3895d0f Fixed in 5.4.124 with commit 22049c3d40f0 Fixed in 5.10.42 with commit 71723a796ab7 Fixed in 5.12.9 with commit f14bf57a0877 Fixed in 5.13 with commit 52202be1cd99 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-2021-47149 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/net/ethernet/fujitsu/fmvj18x_cs.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/b92170e209f7746ed72eaac98f2c2f4b9af734e6 https://git.kernel.org/stable/c/6dbf1101594f7c76990b63c35b5a40205a914b6b https://git.kernel.org/stable/c/c4f1c23edbe921ab2ecd6140d700e756cd44c5f7 https://git.kernel.org/stable/c/7883d3895d0fbb0ba9bff0f8665f99974b45210f https://git.kernel.org/stable/c/22049c3d40f08facd1867548716a484dad6b3251 https://git.kernel.org/stable/c/71723a796ab7881f491d663c6cd94b29be5fba50 https://git.kernel.org/stable/c/f14bf57a08779a5dee9936f63ada0149ea89c5e6 https://git.kernel.org/stable/c/52202be1cd996cde6e8969a128dc27ee45a7cb5e