CVE-2025-21641 mptcp: sysctl: blackhole timeout: avoid using current->nsproxy
A null pointer dereference in the Linux kernel MPTCP subsystem can cause a system crash when a task exits.
- 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-2025-21641?
CVE-2025-21641 is a medium-severity vulnerability in Linux kernel, published on 19 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:
mptcp: sysctl: blackhole timeout: avoid using current->nsproxy
As mentioned in the previous commit, using the 'net' structure via 'current' is not recommended for different reasons:
- Inconsistency: getting info from the reader's/writer's netns vs only from the opener's netns.
- current->nsproxy can be NULL in some cases, resulting in an 'Oops' (null-ptr-deref), e.g. when the current task is exiting, as spotted by syzbot [1] using acct(2).
The 'pernet' structure can be obtained from the table->data using container_of().
Weakness: CWE-476
Which versions are affected by CVE-2025-21641?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21641?
Apply the vendor's patch.
Is CVE-2025-21641 being exploited?
There is no known exploitation of CVE-2025-21641 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21641, DEBIAN-CVE-2025-21641, GHSA-74ff-8pv9-crm9, UBUNTU-CVE-2025-21641.