CVE-2024-39480

High

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.

Package Linux Kernel
Published 2024-07-05
Last modified 2024-11-21
CVSS version 3.1
Patch available
Awaiting data

CVSS 3.1 score

7.8

out of 10
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness type

CWE-120

CVE-2024-39480 is classified as CWE-120

See CWE-120 on MITRE CWE for full details on this weakness type.

References

The following references provide additional information about CVE-2024-39480 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.

Frequently asked questions

  • What is CVE-2024-39480?

    CVE-2024-39480 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 . CVE-2024-39480 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2024-39480?

    CVE-2024-39480 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H .

  • Is there a patch available for CVE-2024-39480?

    No patch is currently available for CVE-2024-39480. Monitor the NIST NVD and your Linux distribution's security advisories for updates.

  • Is CVE-2024-39480 actively exploited?

    No — CVE-2024-39480 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.