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.
Metrics
Affected Vendors & Products
References
History
Wed, 06 Nov 2024 08:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
CPEs | cpe:2.3:a:linux:linux_kernel:-:*:*:*:*:*:*:* | |
Metrics |
ssvc
|
MITRE
Status: PUBLISHED
Assigner: Linux
Published: 2024-07-05T06:55:09.241Z
Updated: 2024-12-19T09:06:59.602Z
Reserved: 2024-06-25T14:23:23.746Z
Link: CVE-2024-39480
Vulnrichment
Updated: 2024-08-02T04:26:15.655Z
NVD
Status : Modified
Published: 2024-07-05T07:15:10.590
Modified: 2024-11-21T09:27:46.630
Link: CVE-2024-39480
Redhat