CVE-2026-46142: net: libwx: fix VF illegal register access
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: libwx: fix VF illegal register access
Register WX_CFG_PORT_ST is a PF restricted register. When a VF is initialized, attempting to read this register triggers an illegal register access, which lead to a system hang.
When the device is VF, the bus function ID can be obtained directly from the PCI_FUNC(pdev->devfn).
The Linux kernel CVE team has assigned CVE-2026-46142 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6.117 with commit d4187ec2641061748480cdc944fd07653fad50d5 and fixed in 6.6.140 with commit d3bd8040497968f6f5470018724ef7b0df92f707 Issue introduced in 6.12.58 with commit f0b3ecdbb5bbee8ca6b2892aba3988c8a3ce858e and fixed in 6.12.88 with commit f6e656f7cea16b638675a2ab7d7e4cf2516c5eb0 Issue introduced in 6.18 with commit a04ea57aae375bdda1cb57034d8bcbb351e1f973 and fixed in 6.18.30 with commit 33c5bb50b9c40e8451e6aec4487a31d794b98d92 Issue introduced in 6.18 with commit a04ea57aae375bdda1cb57034d8bcbb351e1f973 and fixed in 7.0.7 with commit 68a007a701bc06fa426507c551ef12514f2e721d Issue introduced in 6.18 with commit a04ea57aae375bdda1cb57034d8bcbb351e1f973 and fixed in 7.1-rc3 with commit 694de316f607fe2473d52ca0707e3918e72c1562 Issue introduced in 6.17.8 with commit 93e52b75f11a8f39b22993ae315b5b9a6b2668a3
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-2026-46142
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_hw.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/d3bd8040497968f6f5470018724ef7b0df92f707 https://git.kernel.org/stable/c/f6e656f7cea16b638675a2ab7d7e4cf2516c5eb0 https://git.kernel.org/stable/c/33c5bb50b9c40e8451e6aec4487a31d794b98d92 https://git.kernel.org/stable/c/68a007a701bc06fa426507c551ef12514f2e721d https://git.kernel.org/stable/c/694de316f607fe2473d52ca0707e3918e72c1562