From mboxrd@z Thu Jan 1 00:00:00 1970 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 6B607215F49 for ; Wed, 26 Feb 2025 02:13: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=1740536026; cv=none; b=aMdAqAl4uNaIWh4QFLf5M1uFIxFayGeQ9i1NmfUULo+2N14Lnl74gbLkyb82nMFo88zPy8ivu45csdHMYNGgmHVHM650UdN/1EMOBueGo62ZQgYfZEczOpt2WFRuoul5QjdYpp4PcHkUW4UcpDKggXIP0pvSfTKVXcCnxAA96KI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536026; c=relaxed/simple; bh=+43baX4lJ6p2K1mAne3kbLCdt+obOXFb4cVDsGWbSAs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vl5RECyV1IzZrpJzmkqSiazKRrC8yniK/2S4jsui9kS0JBk75VtnHsIFuUCRHZNtvNUbdNA//2Vv49OF/aFBcFr5iQkq1Gn/rwo81Uo63IDKAy0dfCaEAjA8CBva3XR4bIi+iaq8zdhDHQ1UwR1o/4AIGRs1Qs49dSkRPOQfy2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vghYtN5U; 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="vghYtN5U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42A2CC4CEDD; Wed, 26 Feb 2025 02:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536026; bh=+43baX4lJ6p2K1mAne3kbLCdt+obOXFb4cVDsGWbSAs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vghYtN5UHNb6RokWCgQI4dB4HD7/1V9k1mb2VI1PSHHWPdyDVfV2N4fK+Je9Ysalf q4KEXrwayJ8rYBuA8uGSPFPl97r68J87xjh7gPZgK1ncO2cDOGiqEUiJsqiLoMHI+n w9srApdCtlNXkXXiRT2riFVciStI4Y44pi8MAbyo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49392: serial: 8250_aspeed_vuart: Fix potential NULL dereference in aspeed_vuart_probe Date: Wed, 26 Feb 2025 03:11:06 +0100 Message-ID: <2025022649-CVE-2022-49392-59db@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=2395; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+43baX4lJ6p2K1mAne3kbLCdt+obOXFb4cVDsGWbSAs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yt/mMOmpPN157kR6+fOyBXdNn1clyC5xnrC0zGR6m pvoHvfGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIbQDDgh2xjqybg/k2SlrU LtE+9/O537TGMoYFk7uuK2/m2+/w60dm4oVT7XwKe2KeAwA= 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: serial: 8250_aspeed_vuart: Fix potential NULL dereference in aspeed_vuart_probe platform_get_resource() may fail and return NULL, so we should better check it's return value to avoid a NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2022-49392 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 54da3e381c2b55289b220601f403f17df7b20597 and fixed in 5.15.47 with commit 923d34ce069e8e51a4d003caa6b66a8cd6ecd0ed Issue introduced in 5.14 with commit 54da3e381c2b55289b220601f403f17df7b20597 and fixed in 5.17.15 with commit 90a6b6fc52bfdcfe9698454bf5bea26112abbcd1 Issue introduced in 5.14 with commit 54da3e381c2b55289b220601f403f17df7b20597 and fixed in 5.18.4 with commit d5f1275f101e0e8a172d300d897f5a12e87e3485 Issue introduced in 5.14 with commit 54da3e381c2b55289b220601f403f17df7b20597 and fixed in 5.19 with commit 0e0fd55719fa081de6f9e5d9e6cef48efb04d34a 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-49392 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/tty/serial/8250/8250_aspeed_vuart.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/923d34ce069e8e51a4d003caa6b66a8cd6ecd0ed https://git.kernel.org/stable/c/90a6b6fc52bfdcfe9698454bf5bea26112abbcd1 https://git.kernel.org/stable/c/d5f1275f101e0e8a172d300d897f5a12e87e3485 https://git.kernel.org/stable/c/0e0fd55719fa081de6f9e5d9e6cef48efb04d34a