NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s nfs_sysfs_link_rpc_client() can potentially overflow a 64-byte name buffer when handling a client program name of unknown length. The input does not specify how an attacker could trigger the issue or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions for this NFS issue; affected versions were not provided.