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 1EB7E1ACED9 for ; Wed, 26 Feb 2025 01:59:14 +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=1740535154; cv=none; b=gr0L57jX3gUsKlDWpiCle5we0X4DqYcg44uKvc0CW6qRFkU/ME7m32bQejLh8x5Om1RAktqPZvH6yptpCHSGBBnLmBf5ah91zfDzD/00rrqGvcwjBKmDUynGvxmImJxZe64/WRhLCyuH8AC+HWc5/1zEpjGHXIkJ5CG4cwBa7eI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535154; c=relaxed/simple; bh=/kEs/qpKT5EKcrH62zMOpdSNX/6N59eeIGCY3+2+iBU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PBKBk7a9gYcuDGPnijAE9R1VrCpWCFAwYXF8OKigcENiDh41MX5T7uV6nb1eNHzyo3YgnRxiZ3030R4iHEg2uan1nUR/91p3J6yJ7aT8gCc4QxqgSpRbdrsnrGZvM4f3mveVO+6ebgv6u1LVRxjJxsgCXQmXTTgFJI1kqEtuXRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yxJnQbm/; 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="yxJnQbm/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8E82C4CEDD; Wed, 26 Feb 2025 01:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535154; bh=/kEs/qpKT5EKcrH62zMOpdSNX/6N59eeIGCY3+2+iBU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yxJnQbm/Cz6WyVifllsLaZLTk6cIoSFWTzVcaOtjt5Z8ViOSvQ9PSAbo9Rew1CZP8 BMtvfymPXv1zKsk65MkxGGg4Elh13QFt6gh47DWmDAMdNTAlkG+sfUreEqEl/plp8s n1ymlRGSPh2DEm0+/j72phASt3nwozsinT8RhA9g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49184: net: sparx5: switchdev: fix possible NULL pointer dereference Date: Wed, 26 Feb 2025 02:56:29 +0100 Message-ID: <2025022615-CVE-2022-49184-4de2@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=2441; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/kEs/qpKT5EKcrH62zMOpdSNX/6N59eeIGCY3+2+iBU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Stx5nyvlV4tceND4pWQVT9CW+8HMx1Vuldaum7z/b 464jkNlRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk4hmGOdwf0zg2nTiy8t2l Y6aBgqmHdtgLGTDMj5KVXPR581MDl3gj7o5wx9J/HfsWAgA= 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: sparx5: switchdev: fix possible NULL pointer dereference As the possible failure of the allocation, devm_kzalloc() may return NULL pointer. Therefore, it should be better to check the 'db' in order to prevent the dereference of NULL pointer. The Linux kernel CVE team has assigned CVE-2022-49184 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 10615907e9b51c9ae92f3a6ecabd01c482f20f32 and fixed in 5.15.33 with commit b375ea083fa649092cd016ac1f89a2d1fd8f8e8b Issue introduced in 5.15 with commit 10615907e9b51c9ae92f3a6ecabd01c482f20f32 and fixed in 5.16.19 with commit c346791877e6ce923bb21e34b30c6f99326aa5a8 Issue introduced in 5.15 with commit 10615907e9b51c9ae92f3a6ecabd01c482f20f32 and fixed in 5.17.2 with commit e7e1fff76c4c57688dc7d53a3b6212182d5628d0 Issue introduced in 5.15 with commit 10615907e9b51c9ae92f3a6ecabd01c482f20f32 and fixed in 5.18 with commit 0906f3a3df07835e37077d8971aac65347f2ed57 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-49184 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/microchip/sparx5/sparx5_fdma.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/b375ea083fa649092cd016ac1f89a2d1fd8f8e8b https://git.kernel.org/stable/c/c346791877e6ce923bb21e34b30c6f99326aa5a8 https://git.kernel.org/stable/c/e7e1fff76c4c57688dc7d53a3b6212182d5628d0 https://git.kernel.org/stable/c/0906f3a3df07835e37077d8971aac65347f2ed57