Cyber Posture

CVE-2024-54456

High

Published: 27 February 2025

Published
27 February 2025
Modified
23 October 2025
KEV Added
Patch
CVSS Score 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0002 4.8th percentile
Risk Priority 16 60% EPSS · 20% KEV · 20% CVSS

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.

Security Summary

CVE-2024-54456 is a potential buffer overflow vulnerability in the Linux kernel's NFS implementation, specifically within the nfs_sysfs_link_rpc_client() function. The issue arises because a fixed-size char[64] buffer named 'name' is populated using strcat(), where the size of the input string clnt->cl_program->name is unknown, leading to possible overflow. This has been classified under CWE-787 (Out-of-bounds Write) with a CVSS v3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

A local attacker with low privileges can exploit this vulnerability without user interaction. Successful exploitation could result in high impacts to confidentiality, integrity, and availability, potentially allowing arbitrary code execution, data corruption, or system crashes due to the buffer overflow.

Mitigation involves applying the relevant Linux kernel patches, as detailed in the stable commit references. These commits replace the unsafe strcat() calls with strscpy() and strncat() to ensure bounds-safe string operations and prevent overflows. Security practitioners should update affected kernel versions accordingly.

Details

CWE(s)
CWE-787

Affected Products

linux
linux kernel
6.5 — 6.6.79 · 6.7 — 6.12.16 · 6.13 — 6.13.4

References