2084AI 安全观察

CVE

CVE-2024-39480

CVE-2024-39480HIGH 7.8EPSS 20%

CNA 原文 · 原文(英文)

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.

受影响版本

Linux kernel 的全部漏洞 →

  • ≥ 6.9, < 6.9.5修复版本 6.9.5
  • ≥ 6.6, < 6.6.34修复版本 6.6.34
  • ≥ 6.1, < 6.1.94修复版本 6.1.94
  • ≥ 5.15, < 5.15.161修复版本 5.15.161
  • ≥ 5.10, < 5.10.219修复版本 5.10.219
  • ≥ 5.4, < 5.4.278修复版本 5.4.278
  • ≥ 4.19, < 4.19.316修复版本 4.19.316

发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。

公告与补丁

数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。