CVE-2024-54456 NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client()
A buffer overflow in the Linux kernel's NFS sysfs interface allows attackers to potentially execute arbitrary code or cause a denial of service.
- 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-54456?
CVE-2024-54456 is a high-severity memory corruption 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:
NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client()
name is char[64] where the size of clnt->cl_program->name remains unknown. Invoking strcat() directly will also lead to potential buffer overflow. Change them to strscpy() and strncat() to fix potential issues.
Weakness: CWE-787
Which versions are affected by CVE-2024-54456?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-54456?
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-54456 being exploited?
There is no known exploitation of CVE-2024-54456 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-54456, DEBIAN-CVE-2024-54456, GHSA-cf23-xh47-rxhj, ROOT-OS-DEBIAN-11-CVE-2024-54456, ROOT-OS-DEBIAN-12-CVE-2024-54456, ROOT-OS-UBUNTU-2204-CVE-2024-54456 and 2 more.