VDB

CVE-2024-39480

CVE-2024-39480 PUBLISHED CVSS 8.4 HIGH

kdb: Fix buffer overflow during tab-complete

Reported by linux · Published July 5, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
perfAmazon Linux4.14.349-266.564.amzn2
linux_kernellinux6.9.5, 6.6.34, 6.1.94, 5.15.161, 5.10.219, 5.4.278, 4.19.316

Risk scores

CVSS 3.1
8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77
LinuxLinux2.6.35, 0, 4.19.316
amazon:2perf0
linuxlinux_kernel2.6.35, 2.6.35, 2.6.35
amazon:2kernel-tools-devel0
amazon:2kernel0
LinuxLinux5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77
amazon:2python-perf0
amazon:2kernel-tools0
amazon:2kernel-headers0
amazon:2kernel-devel0
linuxlinux_kernel6.9.5, 5.10.219, 6.6.34
amazon:2kernel-livepatch-4.14.349-266.5640

Timeline

  • Jul 4, 2024 CVE Published
  • Jul 5, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 8, 2026 Security Advisory (93 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (90 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-39480
vulnetix vdb fixes CVE-2024-39480

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-39480/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›