CVE-2024-53681 nvmet: Don't overflow subsysnqn
A buffer overflow in the Linux kernel NVMe target allows attackers to potentially execute code or cause a denial of service via crafted discovery NQN strings.
- 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-2024-53681?
CVE-2024-53681 is a medium-severity memory corruption vulnerability in Linux kernel, published on 15 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:
nvmet: Don't overflow subsysnqn
nvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed size buffer, even though it is dynamically allocated to the size of the string.
Create a new string with kstrndup instead of using the old buffer.
Weakness: CWE-120
Which versions are affected by CVE-2024-53681?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-53681?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-53681 being exploited?
There is no known exploitation of CVE-2024-53681 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-53681, DEBIAN-CVE-2024-53681, GHSA-rj73-fpfj-jm4p, UBUNTU-CVE-2024-53681.