| 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-49184: net: sparx5: switchdev: fix possible NULL pointer dereference |
| |
| 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 |