CVE-2022-49182·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: hns3: add vlan list lock to protect vlan list When adding port base VLAN, vf VLAN need to remove from HW and modify the vlan state in vf VLAN list as false. If the periodicity task is freeing the same node, it may cause "use after free" error. This patch adds a vlan list lock to protect the vlan list.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.17.2
- Published
- 2025-02-26
Affected versions
From: 5.17
Until: 5.17.2
Fixed in: 5.17.2
How to fix this CVE
Update your Linux kernel to version 5.17.2 or later to patch a critical race condition in the HNS3 network driver that could lead to memory corruption. This vulnerability affects systems running kernel versions 5.17 through 5.17.1 where concurrent VLAN operations lack proper synchronization, potentially allowing local privilege escalation. Apply the kernel update immediately and reboot your system to complete the remediation.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running: uname -r | grep -E '^5\.17\.[0-1]' — if output matches, you are vulnerable
- Step 2: Verify if HNS3 network driver is in use: ethtool -i $(ip link show | grep 'state UP' | awk '{print $2}' | cut -d: -f1) | grep -i hns3 — if present, the vulnerable code path is active
- Step 3: Search kernel logs for VLAN-related memory errors: dmesg | grep -iE '(use.?after.?free|vlan|hns3)' — look for suspicious patterns around VLAN operations
- Step 4: After patching, confirm the fix with: uname -r | grep -v -E '^5\.17\.[0-1]' — should return a kernel version >= 5.17.2
FAQ
What is CVE-2022-49182?
CVE-2022-49182 is a use-after-free vulnerability in the Linux kernel's HNS3 network driver caused by missing synchronization when managing VLAN lists during concurrent port-based VLAN configuration and periodic cleanup tasks, allowing local attackers to corrupt kernel memory and escalate privileges.
Is CVE-2022-49182 being actively exploited?
No, there are no reports of active exploitation or public exploits for CVE-2022-49182 as of now, though it remains a high-severity vulnerability that should be patched promptly.
What versions of Kernel are affected by CVE-2022-49182?
Linux kernel versions 5.17.0 through 5.17.1 are vulnerable; kernel 5.17.2 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2022-49182?
Run 'uname -r' and check if the output shows a kernel version between 5.17.0 and 5.17.1; additionally verify HNS3 driver presence with 'lspci | grep -i huawei' or 'ethtool -i <interface> | grep driver'.
Does Defensia detect CVE-2022-49182?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2022-49182 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49182. Free for 1 server.
Get started free