CVE-2025-21711 net/rose: prevent integer overflows in rose_setsockopt()
Integer overflows in the Linux kernel's ROSE protocol handler can lead to denial of service when processing large socket options.
- 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-21711?
CVE-2025-21711 is a medium-severity vulnerability in Linux kernel, published on 27 Feb 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/rose: prevent integer overflows in rose_setsockopt()
In case of possible unpredictably large arguments passed to rose_setsockopt() and multiplied by extra values on top of that, integer overflows may occur.
Do the safest minimum and fix these issues by checking the contents of 'opt' and returning -EINVAL if they are too large. Also, switch to unsigned int and remove useless check for negative 'opt' in ROSE_IDLE case.
Weakness: CWE-190
Which versions are affected by CVE-2025-21711?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21711?
Apply the vendor's patch.
Is CVE-2025-21711 being exploited?
There is no known exploitation of CVE-2025-21711 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-58005, BELL-CVE-2025-21711, DEBIAN-CVE-2025-21711, GHSA-p3f4-6ggh-xpgq, ROOT-OS-UBUNTU-2404-CVE-2025-21711, UBUNTU-CVE-2025-21711.