CVE-2024-39480

Aliases:UBUNTU-CVE-2024-39480DEBIAN-CVE-2024-39480
Advisory lineage Upstream: 0 Downstream: 34
Modified
Published: 05 Jul 2024, 06:55
Last modified:05 Aug 2026, 11:33

Vulnerability Summary

Overall Risk (default)
medium
34/100
CVSS Score
8.4 HIGH
v3.1 (cve.org)
EPSS Score
0.27% LOW
0% probability +0.25%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

05 Jul 2024, 06:55
Published
Vulnerability first disclosed
05 Aug 2026, 11:33
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.27% Percentile: 20%

Techniques & Countermeasures

  • CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

    The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.

  • CWE-121Stack-based Buffer Overflow

    A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Affected Systems

  • debianlinux

    < 5.10.221-1 | < 6.1.94-1 | < 6.9.7-1 | < 6.9.7-1

  • ubuntulinux

    all | < 4.15.0-229.241 | < 5.4.0-192.212 | < 5.15.0-121.131 | < 6.8.0-44.44

  • ubuntulinux-allwinner-5.19

    all

  • ubuntulinux-aws

    all | < 4.15.0-1173.186 | < 5.4.0-1130.140 | < 5.15.0-1069.75 | < 6.8.0-1015.16

  • ubuntulinux-aws-5.0

    all

  • ubuntulinux-aws-5.11

    all

  • ubuntulinux-aws-5.13

    all

  • ubuntulinux-aws-5.15

    < 5.15.0-1069.75~20.04.1

  • ubuntulinux-aws-5.19

    all

  • ubuntulinux-aws-5.3

    all

  • ubuntulinux-aws-5.4

    < 5.4.0-1130.140~18.04.1

  • ubuntulinux-aws-5.8

    all

  • ubuntulinux-aws-6.2

    all

  • ubuntulinux-aws-6.5

    all

  • ubuntulinux-aws-6.8

    < 6.8.0-1015.16~22.04.1

  • ubuntulinux-aws-fips

    < 4.15.0-2111.117 | all | < 5.4.0-1130.140+fips1 | < 5.15.0-1069.75+fips1

  • ubuntulinux-aws-hwe

    < 4.15.0-1173.186~16.04.1

  • ubuntulinux-azure

    < 4.15.0-1181.196~14.04.1 | < 4.15.0-1181.196~16.04.1 | all | < 5.4.0-1135.142 | < 5.15.0-1072.81 | < 6.8.0-1014.16

  • ubuntulinux-azure-4.15

    < 4.15.0-1181.196

  • ubuntulinux-azure-5.11

    all

  • ubuntulinux-azure-5.13

    all

  • ubuntulinux-azure-5.15

    < 5.15.0-1072.81~20.04.1

  • ubuntulinux-azure-5.19

    all

  • ubuntulinux-azure-5.3

    all

  • ubuntulinux-azure-5.4

    < 5.4.0-1135.142~18.04.1

  • ubuntulinux-azure-5.8

    all

  • ubuntulinux-azure-6.2

    all

  • ubuntulinux-azure-6.5

    all

  • ubuntulinux-azure-6.8

    < 6.8.0-1014.16~22.04.1

  • ubuntulinux-azure-edge

    all

  • ubuntulinux-azure-fde

    all | < 5.15.0-1072.81.1

  • ubuntulinux-azure-fde-5.19

    all

  • ubuntulinux-azure-fde-6.2

    all

  • ubuntulinux-azure-fips

    < 4.15.0-2090.96 | all | < 5.4.0-1135.142+fips1 | < 5.15.0-1072.81+fips1

  • ubuntulinux-bluefield

    all | < 5.4.0-1090.97 | < 5.15.0-1052.54

  • ubuntulinux-fips

    all | < 4.15.0-1127.138 | < 5.4.0-1104.114 | < 5.15.0-121.131+fips1 | < 6.8.0-78.78+fips1

  • ubuntulinux-gcp

    < 4.15.0-1166.183~16.04.1 | all | < 5.4.0-1134.143 | < 5.15.0-1068.76 | < 6.8.0-1014.16

  • ubuntulinux-gcp-4.15

    < 4.15.0-1166.183

  • ubuntulinux-gcp-5.11

    all

  • ubuntulinux-gcp-5.13

    all

  • ubuntulinux-gcp-5.15

    < 5.15.0-1068.76~20.04.1

  • ubuntulinux-gcp-5.19

    all

  • ubuntulinux-gcp-5.3

    all

  • ubuntulinux-gcp-5.4

    < 5.4.0-1134.143~18.04.1

  • ubuntulinux-gcp-5.8

    all

  • ubuntulinux-gcp-6.2

    all

  • ubuntulinux-gcp-6.5

    all

  • ubuntulinux-gcp-6.8

    < 6.8.0-1014.16~22.04.1

  • ubuntulinux-gcp-fips

    < 4.15.0-2074.79 | all | < 5.4.0-1134.143+fips1 | < 5.15.0-1068.76+fips1

  • ubuntulinux-gke

    all | < 5.15.0-1066.72 | < 6.8.0-1010.13

Showing first 50 affected entries in server-rendered view.

References (33)