Aller au contenu
8.4 Élevée

CVE-2024-39480 In the Linux kernel, the following vulnerability has been resolved: kdb: Fix buffer overflow during tab-complete…

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.

Produits et versions touchés

Produit Versions touchées Corrigé en
Linux 6.10 premières → < 6.10 6.10
Linux 6.9 premières → < 6.9.5 6.9.5
Linux 6.6 premières → < 6.6.34 6.6.34
Linux 6.1 premières → < 6.1.94 6.1.94
Linux 5.15 premières → < 5.15.161 5.15.161
Linux 5.10 premières → < 5.10.219 5.10.219
Linux 5.4 premières → < 5.4.278 5.4.278
Linux 4.19 premières → < 4.19.316 4.19.316
Linux 2.6.35 Pas de correctif indiqué
Afficher l’autre branche
Produit Versions touchées Corrigé en
linux_kernel Versions non publiées

Références

Chronologie

  1. Publiée
  2. Dernière modification
Les 18283 CVE de Linux →
Suivre cette CVE