In the Linux kernel, the following vulnerability has been resolved:

kdb: Fix buffer overflow during tab-complete

Currently, when the user attempts symbol completion with the Tab key, kdb
will use strncpy() to insert the completed symbol into the command buffer.
Unfortunately it passes the size of the source buffer rather than the
destination to strncpy() with predictably horrible results. Most obviously
if the command buffer is already full but cp, the cursor position, is in
the middle of the buffer, then we will write past the end of the supplied
buffer.

Fix this by replacing the dubious strncpy() calls with memmove()/memcpy()
calls plus explicit boundary checks to make sure we have enough space
before we start moving characters around.
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00033}

epss

{'score': 0.00034}


Wed, 06 Nov 2024 08:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:linux:linux_kernel:-:*:*:*:*:*:*:*
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2025-05-04T09:16:41.644Z

Reserved: 2024-06-25T14:23:23.746Z

Link: CVE-2024-39480

cve-icon Vulnrichment

Updated: 2024-08-02T04:26:15.655Z

cve-icon NVD

Status : Modified

Published: 2024-07-05T07:15:10.590

Modified: 2024-11-21T09:27:46.630

Link: CVE-2024-39480

cve-icon Redhat

Severity : Low

Publid Date: 2024-07-05T00:00:00Z

Links: CVE-2024-39480 - Bugzilla

cve-icon OpenCVE Enrichment

No data.