CVE-2024-39480
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 4.14.349-266.564.amzn2 |
| linux_kernel | linux | 6.9.5, 6.6.34, 6.1.94, 5.15.161, 5.10.219, 5.4.278, 4.19.316 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77 |
| Linux | Linux | 2.6.35, 0, 4.19.316 |
| amazon:2 | perf | 0 |
| linux | linux_kernel | 2.6.35, 2.6.35, 2.6.35 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2 | kernel | 0 |
| Linux | Linux | 5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77, 5d5314d6795f3c1c0f415348ff8c51f7de042b77 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2 | kernel-devel | 0 |
| linux | linux_kernel | 6.9.5, 5.10.219, 6.6.34 |
| amazon:2 | kernel-livepatch-4.14.349-266.564 | 0 |
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