CVE-2025-22110 netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error
An uninitialized variable in the Linux kernel netfilter module can cause a memory allocation error, leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-22110?
CVE-2025-22110 is a critical vulnerability in Linux kernel, published on 16 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error
It is possible that ctx in nfqnl_build_packet_message() could be used before it is properly initialize, which is only initialized by nfqnl_get_sk_secctx().
This patch corrects this problem by initializing the lsmctx to a safe value when it is declared.
This is similar to the commit 35fcac7a7c25 ("audit: Initialize lsmctx to avoid memory allocation error").
Weakness: CWE-908
Which versions are affected by CVE-2025-22110?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-22110?
Apply the vendor's patch.
Is CVE-2025-22110 being exploited?
There is no known exploitation of CVE-2025-22110 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-22110, GHSA-96f3-qv87-v4w6, ROOT-OS-DEBIAN-13-CVE-2025-22110, UBUNTU-CVE-2025-22110.