CVE-2024-39480 json
kdb: Fix buffer overflow during tab-complete
published 2024-07-05 2 y ago modified 2026-08-05 3 mo ago also EUVD-2024-38005
- cvss
- 8.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 19%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34, 6.9.5, 6.10
- linux Debian 12 6.1.94-1
- linux Debian 14, Debian 13 6.9.7-1
debian advisories DEBIAN-CVE-2024-39480
- linux Ubuntu 20.04 LTS 5.4.0-192.212
- linux Ubuntu 22.04 LTS 5.15.0-121.131
- linux Ubuntu 24.04 LTS 6.8.0-44.44
- linux-aws Ubuntu 20.04 LTS 5.4.0-1130.140
- linux-aws Ubuntu 22.04 LTS 5.15.0-1069.75
- linux-aws Ubuntu 24.04 LTS 6.8.0-1015.16
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1134.143
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1068.76
ubuntu advisories UBUNTU-CVE-2024-39480
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-livepatch-MICRO-6-0-RT_Update_5 Linux Micro 6.1, Linux Micro 6.0 1-1.1
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1.21.4
- kernel-livepatch-MICRO-6-0_Update_5 Linux Micro 6.1, Linux Micro 6.0 1-1.2
suse advisories SUSE-SU-2025:20166-1SUSE-SU-2025:20249-1SUSE-SU-2025:20165-1SUSE-SU-2025:20248-1SUSE-SU-2025:0289-1SUSE-SU-2025:0154-1
- git.kernel.org/stable/c/fb824a99e148ff272a53d71d84122728b5f00992 commit
- git.kernel.org/stable/c/ddd2972d8e2dee3b33e8121669d55def59f0be8a commit
- git.kernel.org/stable/c/cfdc2fa4db57503bc6d3817240547c8ddc55fa96 commit
- git.kernel.org/stable/c/f636a40834d22e5e3fc748f060211879c056cd33 commit
- git.kernel.org/stable/c/33d9c814652b971461d1e30bead6792851c209e7 commit
- git.kernel.org/stable/c/107e825cc448b7834b31e8b1b3cf0f57426d46d5 commit
- git.kernel.org/stable/c/f694da720dcf795dc3eb97bf76d220213f76aaa7 commit
- git.kernel.org/stable/c/e9730744bf3af04cda23799029342aa3cddbc454 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-39480 updated cvss 4.4
kernel: kdb: Fix buffer overflow during tab-complete
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-226-15 updated cvss 7.8
Siemens SINEC OS
-
Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) < 3.1 Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < 3.1affected: fixed in V3.1 support.industry.siemens.com
-
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 familynot affected
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 19% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
- linux linux_kernel
Classification
- Weakness
- Technology feeds
References
-
git.kernel.org
/stable/c/fb824a99e148ff272a53d71d84122728b5f00992
mailing-list, patch
-
git.kernel.org
/stable/c/ddd2972d8e2dee3b33e8121669d55def59f0be8a
mailing-list, patch
-
git.kernel.org
/stable/c/cfdc2fa4db57503bc6d3817240547c8ddc55fa96
mailing-list, patch
-
git.kernel.org
/stable/c/f636a40834d22e5e3fc748f060211879c056cd33
mailing-list, patch
-
git.kernel.org
/stable/c/33d9c814652b971461d1e30bead6792851c209e7
mailing-list, patch
-
git.kernel.org
/stable/c/107e825cc448b7834b31e8b1b3cf0f57426d46d5
mailing-list, patch
-
git.kernel.org
/stable/c/f694da720dcf795dc3eb97bf76d220213f76aaa7
mailing-list, patch
-
git.kernel.org
/stable/c/e9730744bf3af04cda23799029342aa3cddbc454
mailing-list, patch
Sources
- CVE List CVE-2024-39480
- NVD CVE-2024-39480
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.