All reports
Medium

kernel: NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-54456

Probability of exploitation in the next 30 days: 0.23%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel's Network File System (NFS) client subsystem. A local authenticated user with privileges to configure Remote Procedure Call (RPC) clients or initiate NFS mounts could trigger a Denial of Service (DoS) or memory corruption. This issue arises because the sysfs interface copies RPC program names into a fixed-size buffer without bounds checking. An attacker supplying an oversized name could cause a buffer overflow, resulting in a system crash.