Vulnerabilities

CVE-2024-39480

High 7.8 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2024-07-05
Last modified
2026-08-04
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 17 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Linux Linux Kernel ≥ 4.19, < 4.19.316 Affected
Linux Linux Kernel ≥ 5.10, < 5.10.219 Affected
Linux Linux Kernel ≥ 5.15, < 5.15.161 Affected
Linux Linux Kernel ≥ 5.4, < 5.4.278 Affected
Linux Linux Kernel ≥ 6.1, < 6.1.94 Affected
Linux Linux Kernel ≥ 6.6, < 6.6.34 Affected
Linux Linux Kernel ≥ 6.9, < 6.9.5 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities