CVE-2022-49182 net: hns3: add vlan list lock to protect vlan list
A race condition in the Linux kernel's HNS3 network driver can lead to a use-after-free error, potentially allowing attackers to execute code or cause a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49182?
CVE-2022-49182 is a high-severity use after free vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-416
Which versions are affected by CVE-2022-49182?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49182?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-49182 being exploited?
There is no known exploitation of CVE-2022-49182 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49182, GHSA-pf5c-w647-wm56, ROOT-OS-DEBIAN-11-CVE-2022-49182, UBUNTU-CVE-2022-49182.