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 86670BE46 for ; Sat, 16 Aug 2025 11:14: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=1755342854; cv=none; b=cXiup0GPsTsdqGZ0Np4m1FoLGQnRkdCTMWgltlfU9eUR3LhqNwiGy6gVKP1EUmTalcYtYUrvsm7C/YBKKWGmxBL+Q9v1CmHjq6Oo5YnIbPEYrK0KM4nCvAI/FPplXrRCySyl7yw4Z7S4qASdeOAVedsnnZWIGWFfEDbV8OVZiF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755342854; c=relaxed/simple; bh=qbu83Fshz2G+cj8dQWLjkKzix3dM7lhkSNYJIs6d/cQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NTeMfxn+lz94UItRoqeeLh1F/anfgU7ctYoF8LURG9BaT0VZGwRRZMmMvnnk3zBh4zYdnZVpo8HajmAssWv3oEvK4Fg7pKzUDhyosdQWlxfuUrfP/4wjeWu89ftD3F1ZxuIk69RKRCnzRTVpSYfoMp5iYeps+6+b232HtlYLglU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cMo2hKL0; 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="cMo2hKL0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DA08C4CEEF; Sat, 16 Aug 2025 11:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755342854; bh=qbu83Fshz2G+cj8dQWLjkKzix3dM7lhkSNYJIs6d/cQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cMo2hKL0eGoCXDrAb9ueFpb4EZHzzS7PUt7pzzsroBURuAjNwJpvREzIsgWuCfEfU XLdtyrgu/ONw1b7XyyIBH/WrqGcqrShzAvMOBZPfmq7H8AiASURPaayS7ZDnVVK26E oRTtlYrP20xENZaGZdnS9cVk67sK+XFuzVubboYI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38533: net: libwx: fix the using of Rx buffer DMA Date: Sat, 16 Aug 2025 13:14:04 +0200 Message-ID: <2025081656-CVE-2025-38533-6002@gregkh> X-Mailer: git-send-email 2.50.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=2692; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IHLgeNPonNBDaTy0dGV12adifRQwJuzRovebLi69l8w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkL0r9osbBO2/Jlk12/WN5e+7v1u0JXTVpul9gr9n2Gw Qf51lCjjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIPzvDbDZbvs6Kc2178x1X HjQ5o5Y52TWajWHBEeHlnfVfXp3kNlR42bGpcalis1UXAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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