CVE-2022-49805 net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
A missing null check in the lan966x network driver can cause a kernel crash via null pointer dereference, leading to denial of service.
- 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-49805?
CVE-2022-49805 is a medium-severity vulnerability in Linux kernel, published on 1 May 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: lan966x: Fix potential null-ptr-deref in lan966x_stats_init()
lan966x_stats_init() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen:
lan966x_stats_init() create_singlethread_workqueue() # failed, lan966x->stats_queue is NULL queue_delayed_work() queue_delayed_work_on() __queue_delayed_work() # warning here, but continue __queue_work() # access wq->flags, null-ptr-deref
Check the ret value and return -ENOMEM if it is NULL.
Weakness: CWE-476
Which versions are affected by CVE-2022-49805?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49805?
Apply the vendor's patch.
Is CVE-2022-49805 being exploited?
There is no known exploitation of CVE-2022-49805 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49805, GHSA-9633-355p-9wpx, UBUNTU-CVE-2022-49805.