Skip to contentSkip to conversation

CVE-2023-54231: net: libwx: fix memory leak in wx_setup_rx_resources

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net: libwx: fix memory leak in wx_setup_rx_resources

When wx_alloc_page_pool() failed in wx_setup_rx_resources(), it doesn't release DMA buffer. Add dma_free_coherent() in the error path to release the DMA buffer.

The Linux kernel CVE team has assigned CVE-2023-54231 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.3 with commit 850b971110b20cbcc2367516fefe78e84fec7d79 and fixed in 6.3.2 with commit 2371e1ecd445baf793a74db00ea6b2a2bc13c4c0
	Issue introduced in 6.3 with commit 850b971110b20cbcc2367516fefe78e84fec7d79 and fixed in 6.4 with commit e315e7b83a22043bffee450437d7089ef373cbf6

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-2023-54231

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/wangxun/libwx/wx_lib.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/2371e1ecd445baf793a74db00ea6b2a2bc13c4c0
	https://git.kernel.org/stable/c/e315e7b83a22043bffee450437d7089ef373cbf6