CVE-2022-49368·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry() The "fsp->location" variable comes from user via ethtool_get_rxnfc(). Check that it is valid to prevent an out of bounds read.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.4
- Published
- 2025-02-26
Affected versions
From: 5.18
Until: 5.18.4
Fixed in: 5.18.4
How to fix this CVE
Update your Linux kernel to version 5.18.4 or later to patch an out-of-bounds memory read vulnerability in the MediaTek Ethernet driver's hardware LRO filter entry retrieval function. This vulnerability allows a local attacker with standard user privileges to read sensitive kernel memory by crafting malicious ethtool requests. Prioritize this update for systems running kernel versions 5.18.0 through 5.18.3.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r — kernel must be 5.18.4 or later to be patched
- Verify MediaTek driver presence: lsmod | grep mtk_eth_soc — if present, the vulnerable code path is loaded
- Check ethtool capabilities on MTK NICs: ethtool -n eth0 rx-flow-hash tcp4 — confirms ethtool RxNFC is active
- Confirm patch status: grep -i mtk_hwlro_get_fdir_entry /boot/config-$(uname -r) — should show the validation code is present
FAQ
What is CVE-2022-49368?
CVE-2022-49368 is a kernel memory disclosure flaw in the MediaTek Ethernet driver where user-supplied ethtool filter entry indices are not validated before memory access, enabling local unprivileged users to read out-of-bounds kernel memory.
Is CVE-2022-49368 being actively exploited?
No, this vulnerability is not listed on CISA's KEV catalog and has no known public exploits, though the low barrier to exploitation (local user, standard ethtool interface) warrants prompt patching.
What versions of Kernel are affected by CVE-2022-49368?
Kernel versions 5.18.0 through 5.18.3 are vulnerable. Version 5.18.4 and later contain the remediation.
How do I check if my server is vulnerable to CVE-2022-49368?
Run uname -r and compare the output; if it shows 5.18.0 through 5.18.3 and lsmod | grep mtk_eth_soc returns a module, your system is vulnerable.
Does Defensia detect CVE-2022-49368?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-49368 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b238f75b65ed4462ef4cdfa718cac0ac7fce3b8
- https://git.kernel.org/stable/c/2bd1faedb74dc2a2be3972abcd4239b75a3e7b00
- https://git.kernel.org/stable/c/4cde554c70d7397cfa2e4116bacb4accdfb6fd48
- https://git.kernel.org/stable/c/5ba81f82607ead85fe36f50869fc4f5661359ab8
- https://git.kernel.org/stable/c/657e7174603f0aab2cdedc64ac81edffd2a87afe
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49368. Free for 1 server.
Get started free