Skip to main content
Network Thinking Solutions Logo

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 completion with the Tab key, kdb will use strncpy() to insert the completed symbol into the command buffer.

All CVEs
CVE-2024-39480Published 7/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.

Vendor advisory
CVSS8.4High

Overview

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.

Published
7/5/2024
Last modified
8/4/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 4.19, < 4.19.316

Verify advisory

Source
linux kernel
linux
≥ 5.4, < 5.4.278

Verify advisory

Source
linux kernel
linux
≥ 5.10, < 5.10.219

Verify advisory

Source
linux kernel
linux
≥ 5.15, < 5.15.161

Verify advisory

Source
linux kernel
linux
≥ 6.1, < 6.1.94

Verify advisory

Source
linux kernel
linux
≥ 6.6, < 6.6.34

Verify advisory

Source
linux kernel
linux
≥ 6.9, < 6.9.5

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < fb824a99e148ff272a53d71d84122728b5f00992

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < ddd2972d8e2dee3b33e8121669d55def59f0be8a

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < cfdc2fa4db57503bc6d3817240547c8ddc55fa96

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < f636a40834d22e5e3fc748f060211879c056cd33

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < 33d9c814652b971461d1e30bead6792851c209e7

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < 107e825cc448b7834b31e8b1b3cf0f57426d46d5

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < f694da720dcf795dc3eb97bf76d220213f76aaa7

Verify advisory

Source
Linux
Linux
≥ 5d5314d6795f3c1c0f415348ff8c51f7de042b77, < e9730744bf3af04cda23799029342aa3cddbc454

Verify advisory

Source
Linux
Linux
2.6.35

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < fb824a99e148

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < ddd2972d8e2d

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < cfdc2fa4db57

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < f636a40834d2

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < 33d9c814652b

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < 107e825cc448

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < f694da720dcf

Verify advisory

Source
linux_kernel
linux
≥ 1da177e4c3f4, < e9730744bf3a

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 8.4. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.