CVE-2024-26889
JSON

5.5medium

Bluetooth: hci_core: Fix possible buffer overflow

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.28% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: Fix possible buffer overflow struct hci_dev_info has a fixed size name[8] field so in the event that hdev->name is bigger than that strcpy would attempt to write past its size, so this fixes this problem by switching to use strscpy.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 194ab82c1ea187512ff2f822124bd05b63fc9f76 before 6d5a9d4a7bcbb7534ce45a18a52e7bd23e69d8ac, from b48595f5b1c6e81e06e164e7d2b7a30b1776161e before 54a03e4ac1a41edf8a5087bd59f8241b0de96d3d, from ffb060b136dd75a033ced0fc0aed2882c02e8b56 before d47e6c1932cee02954ea588c9f09fd5ecefeadfc, from bbec1724519ecd9c468d1186a8f30b7567175bfb before 2e845867b4e279eff0a19ade253390470e07e8a1, from a55d53ad5c86aee3f6da50ee73626008997673fa before 0477ac14251d0ba813f311bb5db79eb07d99bfcc, from dcda165706b9fbfd685898d46a6749d7d397e0c0 before a41c8efe659caed0e21422876bbb6b73c15b5244, from dcda165706b9fbfd685898d46a6749d7d397e0c0 before 8c28598a2c29201d2ba7fc37539a7d41c264fb10, from dcda165706b9fbfd685898d46a6749d7d397e0c0 before 2edce8e9a99dd5e4404259d52e754fdc97fb42c2 and 11 more
Not affected: before 6.6, from 4.19.311 up to 4.19.*, from 5.4.273 up to 5.4.*, from 5.10.214 up to 5.10.*, from 5.15.153 up to 5.15.*, from 6.1.191 up to 6.1.*
CVE List
linux linux_kernelfrom 4.14.328 before 4.15, from 4.19.297 before 4.19.311, from 5.4.259 before 5.4.273, from 5.10.199 before 5.10.214, from 5.15.137 before 5.15.153, from 6.1.60 before 6.1.83, from 6.5.9 before 6.6.23, from 6.7 before 6.7.11 and 1 moreNVD
debian debian_linux10.0NVD

Classification

CWE-120

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: Fix possible buffer overflow struct hci_dev_info has a fixed size name[8] field so in the event that hdev->name is bigger than that strcpy would attempt to write past its size, so this fixes this problem by switching to use strscpy.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: Bluetooth: hci_core: soluciona un posible desbordamiento del búfer struct hci_dev_info tiene un campo de nombre de tamaño fijo[8], por lo que en caso de que hdev->name sea mayor que strcpy intentaría escribir más allá su tamaño, por lo que esto soluciona este problema cambiando al uso de strscpy.

References

https://git.kernel.org/stable/c/6d5a9d4a7bcbb7534ce45a18a52e7bd23e69d8acpatch
https://git.kernel.org/stable/c/54a03e4ac1a41edf8a5087bd59f8241b0de96d3dpatch
https://git.kernel.org/stable/c/d47e6c1932cee02954ea588c9f09fd5ecefeadfcpatch
https://git.kernel.org/stable/c/2e845867b4e279eff0a19ade253390470e07e8a1patch
https://git.kernel.org/stable/c/0477ac14251d0ba813f311bb5db79eb07d99bfcc
https://git.kernel.org/stable/c/a41c8efe659caed0e21422876bbb6b73c15b5244patch
https://git.kernel.org/stable/c/8c28598a2c29201d2ba7fc37539a7d41c264fb10patch
https://git.kernel.org/stable/c/2edce8e9a99dd5e4404259d52e754fdc97fb42c2patch
https://git.kernel.org/stable/c/81137162bfaa7278785b24c1fd2e9e74f082e8e4patch
https://git.kernel.org/stable/c/68644bf5ec6baaff40fc39b3529c874bfda709bdpatch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlmailing-list, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-26889 changed 2026-10-30CVE Terms of Use
NVDCVE-2024-26889 changed 2026-10-30Public domain