CVE-2025-21659 netdev: prevent accessing NAPI instances from another namespace
Attackers can access NAPI instances from another network namespace, bypassing isolation and potentially reading sensitive data.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21659?
CVE-2025-21659 is a high-severity missing authorization vulnerability in Linux kernel, published on 21 Jan 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:
netdev: prevent accessing NAPI instances from another namespace
The NAPI IDs were not fully exposed to user space prior to the netlink API, so they were never namespaced. The netlink API must ensure that at the very least NAPI instance belongs to the same netns as the owner of the genl sock.
napi_by_id() can become static now, but it needs to move because of dev_get_by_napi_id().
Which versions are affected by CVE-2025-21659?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21659?
Apply the vendor's patch.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2025-21659 being exploited?
There is no known exploitation of CVE-2025-21659 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21659, DEBIAN-CVE-2025-21659, GHSA-mg35-fw68-x22w, UBUNTU-CVE-2025-21659.