[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025050146-CVE-2022-49857-39d0@gregkh>
Date: Thu, 1 May 2025 16:10:47 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-49857: net: marvell: prestera: fix memory leak in prestera_rxtx_switch_init()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: marvell: prestera: fix memory leak in prestera_rxtx_switch_init()
When prestera_sdma_switch_init() failed, the memory pointed to by
sw->rxtx isn't released. Fix it. Only be compiled, not be tested.
The Linux kernel CVE team has assigned CVE-2022-49857 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 501ef3066c89d7f9045315e1be58749cf9e6814d and fixed in 5.10.155 with commit 5333cf1b7f6861912aff6263978d4781f9858e47
Issue introduced in 5.10 with commit 501ef3066c89d7f9045315e1be58749cf9e6814d and fixed in 5.15.79 with commit 409731df6310a33f4d0a3ef594d2410cdcd637f2
Issue introduced in 5.10 with commit 501ef3066c89d7f9045315e1be58749cf9e6814d and fixed in 6.0.9 with commit 31e5084ac6876e52dbb0a1cc4fc18b6c79979f31
Issue introduced in 5.10 with commit 501ef3066c89d7f9045315e1be58749cf9e6814d and fixed in 6.1 with commit 519b58bbfa825f042fcf80261cc18e1e35f85ffd
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-49857
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/marvell/prestera/prestera_rxtx.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/5333cf1b7f6861912aff6263978d4781f9858e47
https://git.kernel.org/stable/c/409731df6310a33f4d0a3ef594d2410cdcd637f2
https://git.kernel.org/stable/c/31e5084ac6876e52dbb0a1cc4fc18b6c79979f31
https://git.kernel.org/stable/c/519b58bbfa825f042fcf80261cc18e1e35f85ffd
Powered by blists - more mailing lists