CVE-2025-21635 rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy
A null pointer dereference in the Linux kernel RDS TCP sysctl handler can cause a system crash when accessed by an exiting task.
- 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-21635?
CVE-2025-21635 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:
rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy
As mentioned in a previous commit of this series, 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 per-netns structure can be obtained from the table->data using container_of(), then the 'net' one can be retrieved from the listen socket (if available).
Weakness: CWE-476
Which versions are affected by CVE-2025-21635?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21635?
Apply the vendor's patch.
Is CVE-2025-21635 being exploited?
There is no known exploitation of CVE-2025-21635 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-57534, AZL-57546, BELL-CVE-2025-21635, DEBIAN-CVE-2025-21635, GHSA-pf46-57mf-cmph, ROOT-OS-DEBIAN-11-CVE-2025-21635 and 3 more.