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
Yes

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.

Affected versions

Linux kernel versions 2.6.35 and later are affected. Fixed in 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34, 6.9.5, 6.10 and their respective stable series.

Affected from
≥ 2.6.35
Fixed in
✓ 4.19.316 4.19.x ✓ 5.4.278 5.4.x ✓ 5.10.219 5.10.x ✓ 5.15.161 5.15.x ✓ 6.1.94 6.1.x ✓ 6.6.34 6.6.x ✓ 6.9.5 6.9.x ✓ 6.10

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 . It affects Linux kernel versions from 2.6.35 onward and has been patched in 4.19.316, 5.4.278, 5.10.219 and others. 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?

    Yes. CVE-2024-39480 has been patched. Fixed versions include 4.19.316, 5.4.278, 5.10.219 and others. If you are running Linux kernel 2.6.35 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • 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.