cbcvebase.
CVE-2024-39480
published 2024-07-05

CVE-2024-39480: In the Linux kernel, the following vulnerability has been resolved: kdb: Fix buffer overflow during tab-complete Currently, when the user attempts symbol…

PriorityP341high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.26%
17.0th percentile
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.

Affected

33 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.94-1 (bookworm)linux 6.1.94-1 (bookworm)
linuxlinux
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < fb824a99e148ff272a53d71d84122728b5f00992fb824a99e148ff272a53d71d84122728b5f00992
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < ddd2972d8e2dee3b33e8121669d55def59f0be8addd2972d8e2dee3b33e8121669d55def59f0be8a
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < cfdc2fa4db57503bc6d3817240547c8ddc55fa96cfdc2fa4db57503bc6d3817240547c8ddc55fa96
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < f636a40834d22e5e3fc748f060211879c056cd33f636a40834d22e5e3fc748f060211879c056cd33
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < 33d9c814652b971461d1e30bead6792851c209e733d9c814652b971461d1e30bead6792851c209e7
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < 107e825cc448b7834b31e8b1b3cf0f57426d46d5107e825cc448b7834b31e8b1b3cf0f57426d46d5
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < f694da720dcf795dc3eb97bf76d220213f76aaa7f694da720dcf795dc3eb97bf76d220213f76aaa7
linuxlinux>= 5d5314d6795f3c1c0f415348ff8c51f7de042b77 < e9730744bf3af04cda23799029342aa3cddbc454e9730744bf3af04cda23799029342aa3cddbc454
linuxlinux_kernel>= 0 < 5.10.221-15.10.221-1
linuxlinux_kernel>= 0 < 6.1.94-16.1.94-1
linuxlinux_kernel>= 0 < 6.9.7-16.9.7-1
linuxlinux_kernel>= 0 < 6.9.7-16.9.7-1
linuxlinux_kernel>= 0 < 5.4.0-192.2125.4.0-192.212
linuxlinux_kernel>= 0 < 5.15.0-121.1315.15.0-121.131
linuxlinux_kernel>= 0 < 6.8.0-44.446.8.0-44.44
linuxlinux_kernel>= 0 < 4.15.0-229.2414.15.0-229.241
linuxlinux_kernel>= 4.19 < 4.19.3164.19.316
linuxlinux_kernel>= 5.10 < 5.10.2195.10.219
linuxlinux_kernel>= 5.15 < 5.15.1615.15.161
linuxlinux_kernel>= 5.4 < 5.4.2785.4.278
linuxlinux_kernel>= 6.1 < 6.1.946.1.94
linuxlinux_kernel>= 6.6 < 6.6.346.6.34
linuxlinux_kernel>= 6.9 < 6.9.56.9.5

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.