Skip to contentSkip to conversation

CVE-2025-38533: net: libwx: fix the using of Rx buffer DMA

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 16, 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 the using of Rx buffer DMA

The wx_rx_buffer structure contained two DMA address fields: 'dma' and 'page_dma'. However, only 'page_dma' was actually initialized and used to program the Rx descriptor. But 'dma' was uninitialized and used in some paths.

This could lead to undefined behavior, including DMA errors or use-after-free, if the uninitialized 'dma' was used. Althrough such error has not yet occurred, it is worth fixing in the code.

The Linux kernel CVE team has assigned CVE-2025-38533 to this issue.

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

	Issue introduced in 6.3 with commit 3c47e8ae113a68da47987750d9896e325d0aeedd and fixed in 6.6.100 with commit 027701180a7bcb64c42eab291133ef0c87b5b6c5
	Issue introduced in 6.3 with commit 3c47e8ae113a68da47987750d9896e325d0aeedd and fixed in 6.12.40 with commit ba7c793f96c1c2b944bb6f423d7243f3afc30fe9
	Issue introduced in 6.3 with commit 3c47e8ae113a68da47987750d9896e325d0aeedd and fixed in 6.15.8 with commit 05c37b574997892a40a0e9b9b88a481566b2367d
	Issue introduced in 6.3 with commit 3c47e8ae113a68da47987750d9896e325d0aeedd and fixed in 6.16 with commit 5fd77cc6bd9b368431a815a780e407b7781bcca0

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-2025-38533

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 drivers/net/ethernet/wangxun/libwx/wx_type.h

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/027701180a7bcb64c42eab291133ef0c87b5b6c5
	https://git.kernel.org/stable/c/ba7c793f96c1c2b944bb6f423d7243f3afc30fe9
	https://git.kernel.org/stable/c/05c37b574997892a40a0e9b9b88a481566b2367d
	https://git.kernel.org/stable/c/5fd77cc6bd9b368431a815a780e407b7781bcca0