CVE-2021-41229
Memory leak in BlueZ
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
Attack profile
How easy it is to exploit
- Attack vector
- Adjacent network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.3
Memory leak in BlueZ
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
- Record
CVE-2021-41229- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2021-28288
4.3
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
- Record
EUVD-2021-28288- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
NVD
4.3
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
- Record
CVE-2021-41229- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 3.3 Low
AV:A/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-400, CWE-401
- Updated
- 2026-11-02
OSV
6.5
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
- Record
CVE-2021-41229- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-41229
6.5
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
- Record
DEBIAN-CVE-2021-41229- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2022-1763
6.5
bluez security update
This package provides all utilities for use in Bluetooth applications. The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
Security Fix(es):
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.(CVE-2021-41229)
- Record
OESA-2022-1763- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSVRHSA-2022:2081
4.3
Red Hat Security Advisory: bluez security update
- Record
RHSA-2022:2081- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVRLSA-2022:2081
4.3
Low: bluez security update
The bluez packages contain the following utilities for use in Bluetooth applications: hcitool, hciattach, hciconfig, bluetoothd, l2ping, start scripts (Rocky Enterprise Software Foundation), and pcmcia configuration files.
Security Fix(es):
- bluez: memory leak in the SDP protocol (CVE-2021-41229)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.6 Release Notes linked from the References section.
- Record
RLSA-2022:2081- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-41229
4.3
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash.
- Record
UBUNTU-CVE-2021-41229- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2022:2081 No score
Low: bluez security update
The bluez packages contain the following utilities for use in Bluetooth applications: hcitool, hciattach, hciconfig, bluetoothd, l2ping, start scripts (AlmaLinux), and pcmcia configuration files.
Security Fix(es):
- bluez: memory leak in the SDP protocol (CVE-2021-41229)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2022:2081- Updated
- 2026-11-02
OSVMGASA-2021-0532 No score
Updated bluez packages fix security vulnerability
BlueZ is a Bluetooth protocol stack for Linux. In affected versions a vulnerability exists in sdp_cstate_alloc_buf which allocates memory which will always be hung in the singly linked list of cstates and will not be freed. This will cause a memory leak over time. The data can be a very large object, which can be caused by an attacker continuously sending sdp packets and this may cause the service of the target device to crash. (CVE-2021-41229)
An issue was discovered in gatt-database.c in BlueZ 5.61. A use-after-free can occur when a client disconnects during D-Bus processing of a WriteValue call. (CVE-2021-43400)
- Record
MGASA-2021-0532- Updated
- 2026-11-02
OSVSUSE-SU-2023:3238-1 No score
Security update for bluez
This update for bluez fixes the following issues:
- CVE-2021-41229: Fix leaking buffers stored in cstates cache. (bsc#1192760)
- Record
SUSE-SU-2023:3238-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:3240-1 No score
Security update for bluez
This update for bluez fixes the following issues:
- CVE-2021-41229: Fix leaking buffers stored in cstates cache. (bsc#1192760)
- Record
SUSE-SU-2023:3240-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:3689-1 No score
Security update for bluez
This update for bluez fixes the following issues:
- CVE-2021-41229: Fixed leaking buffers stored in cstates cache (bsc#1192760).
- Record
SUSE-SU-2023:3689-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:0166-1 No score
Security update for bluez
This update for bluez fixes the following issues:
- CVE-2021-41229: Fix leaking buffers stored in cstates cache (bsc#1192760).
- CVE-2023-50229: Fixed an out of bounds write in the primary version counter for the Phone Book Access Profile implementation (bsc#1218300).
- CVE-2023-50230: Fixed an out of bounds write in the secondary version counter for the Phone Book Access Profile implementation (bsc#1218301).
- Record
SUSE-SU-2024:0166-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:0167-1 No score
Security update for bluez
This update for bluez fixes the following issues:
- CVE-2021-41229: Fix leaking buffers stored in cstates cache (bsc#1192760).
- CVE-2023-50229: Fixed an out of bounds write in the primary version counter for the Phone Book Access Profile implementation (bsc#1218300).
- CVE-2023-50230: Fixed an out of bounds write in the secondary version counter for the Phone Book Access Profile implementation (bsc#1218301).
- Record
SUSE-SU-2024:0167-1- Updated
- 2026-11-02
OSVUSN-5155-1 No score
bluez vulnerabilities
It was discovered that BlueZ incorrectly handled the Discoverable status when a device is powered down. This could result in devices being powered up discoverable, contrary to expectations. This issue only affected Ubuntu 20.04 LTS, Ubuntu 21.04, and Ubuntu 21.10. (CVE-2021-3658)
It was discovered that BlueZ incorrectly handled certain memory operations. A remote attacker could possibly use this issue to cause BlueZ to consume resources, leading to a denial of service. (CVE-2021-41229)
It was discovered that the BlueZ gatt server incorrectly handled disconnects. A remote attacker could possibly use this issue to cause BlueZ to crash, leading to a denial of service. (CVE-2021-43400)
- Record
USN-5155-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
bluezAlmaLinux:8 |
before 5.56-3.el8 | 5.56-3.el8 |
bluez-cupsAlmaLinux:8 |
before 5.56-3.el8 | 5.56-3.el8 |
bluez-hid2hciAlmaLinux:8 |
before 5.56-3.el8 | 5.56-3.el8 |
bluez-libsAlmaLinux:8 |
before 5.56-3.el8 | 5.56-3.el8 |
bluez-libs-develAlmaLinux:8 |
before 5.56-3.el8 | 5.56-3.el8 |
bluez-obexdAlmaLinux:8 |
before 5.56-3.el8 | 5.56-3.el8 |
bluezDebian:12 |
before 5.62-2 | 5.62-2 |
bluezDebian:13 |
before 5.62-2 | 5.62-2 |
bluezDebian:14 |
before 5.62-2 | 5.62-2 |
bluezDebian:9 From an advisory covering 3 CVEs |
before 5.43-2+deb9u5, plus listed versions 5.43-25.43-2+deb9u15.43-2+deb9u25.43-2+deb9u2~deb8u15.43-2+deb9u35.43-2+deb9u4 |
5.43-2+deb9u5 |
Show 57 moreShow less
| Package | Affected | Fixed |
|---|---|---|
bluezDebian:10 From an advisory covering 7 CVEs |
before 5.50-1.2~deb10u3, plus listed versions 5.50-15.50-1.15.50-1.2~deb10u15.50-1.2~deb10u2 |
5.50-1.2~deb10u3 |
bluezDebian:11 From an advisory covering 9 CVEs |
before 5.55-3.1+deb11u2, plus listed versions 5.55-3.15.55-3.1+deb11u1 |
5.55-3.1+deb11u2 |
bluezMageia:8 From an advisory covering 2 CVEs |
before 5.55-3.3.mga8 | 5.55-3.3.mga8 |
bluezopenEuler:20.03-LTS-SP1 |
before 5.54-10.oe1 | 5.54-10.oe1 |
bluezopenEuler:20.03-LTS-SP3 |
before 5.54-10.oe1 | 5.54-10.oe1 |
bluezopenEuler:22.03-LTS |
before 5.54-14.oe2203 | 5.54-14.oe2203 |
bluez-cupsRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-cups-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-hid2hci-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-libs-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-obexd-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluezRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-cups-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-debugsourceRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-hid2hciRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-hid2hci-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-libsRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-libs-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-obexdRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-obexd-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-cups-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-debugsourceRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-hid2hci-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-libs-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-libs-develRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluez-obexd-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluezRocky Linux:8 |
before 0:5.56-3.el8 | 0:5.56-3.el8 |
bluezSUSE:Linux Enterprise Micro 5.3 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezSUSE:Linux Enterprise Micro 5.4 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezSUSE:Linux Enterprise Module for Basesystem 15 SP4 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezSUSE:Linux Enterprise Module for Desktop Applications 15 SP4 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezSUSE:Linux Enterprise Workstation Extension 15 SP4 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezopenSUSE:Leap Micro 5.3 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezopenSUSE:Leap Micro 5.4 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezopenSUSE:Leap 15.4 |
before 5.62-150400.4.16.1 | 5.62-150400.4.16.1 |
bluezSUSE:Manager Proxy 4.2 |
before 5.55-150300.3.25.1 | 5.55-150300.3.25.1 |
bluezSUSE:Manager Server 4.2 |
before 5.55-150300.3.25.1 | 5.55-150300.3.25.1 |
bluezSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 5.13-5.42.2 | 5.13-5.42.2 |
bluezSUSE:Linux Enterprise Server 12 SP5 |
before 5.13-5.42.2 | 5.13-5.42.2 |
bluezSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 5.13-5.42.2 | 5.13-5.42.2 |
bluezSUSE:Linux Enterprise Workstation Extension 12 SP5 |
before 5.13-5.42.2 | 5.13-5.42.2 |
bluezSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS From an advisory covering 3 CVEs |
before 5.48-150000.5.54.1 | 5.48-150000.5.54.1 |
bluezSUSE:Linux Enterprise Server 15 SP1-LTSS From an advisory covering 3 CVEs |
before 5.48-150000.5.54.1 | 5.48-150000.5.54.1 |
bluezSUSE:Linux Enterprise Server for SAP Applications 15 SP1 From an advisory covering 3 CVEs |
before 5.48-150000.5.54.1 | 5.48-150000.5.54.1 |
bluezSUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS From an advisory covering 3 CVEs |
before 5.48-150200.13.30.1 | 5.48-150200.13.30.1 |
bluezSUSE:Linux Enterprise Server 15 SP2-LTSS From an advisory covering 3 CVEs |
before 5.48-150200.13.30.1 | 5.48-150200.13.30.1 |
bluezSUSE:Linux Enterprise Server for SAP Applications 15 SP2 From an advisory covering 3 CVEs |
before 5.48-150200.13.30.1 | 5.48-150200.13.30.1 |
bluezUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 5.35-0ubuntu25.36-0ubuntu15.37-0ubuntu55.37-0ubuntu5.15.37-0ubuntu5.3 Show 6 moreShow less5.37-0ubuntu5.3+esm15.37-0ubuntu5.3+esm25.37-0ubuntu5.3+esm35.37-0ubuntu5.3+esm45.37-0ubuntu5.3+esm55.37-0ubuntu5.3+esm6 |
None known |
bluezUbuntu:18.04:LTS |
before 5.48-0ubuntu3.6, plus listed versions 5.46-0ubuntu35.46-0ubuntu45.48-0ubuntu35.48-0ubuntu3.15.48-0ubuntu3.25.48-0ubuntu3.35.48-0ubuntu3.45.48-0ubuntu3.5 |
5.48-0ubuntu3.6 |
bluezUbuntu:20.04:LTS |
before 5.53-0ubuntu3.4, plus listed versions 5.50-0ubuntu45.51-0ubuntu15.51-0ubuntu25.52-0ubuntu15.52-0ubuntu2 Show 6 moreShow less5.53-0ubuntu15.53-0ubuntu25.53-0ubuntu35.53-0ubuntu3.15.53-0ubuntu3.25.53-0ubuntu3.3 |
5.53-0ubuntu3.4 |
bluezUbuntu:22.04:LTS |
before 5.62-0ubuntu2, plus listed versions 5.60-0ubuntu25.62-0ubuntu1 |
5.62-0ubuntu2 |
bluezUbuntu:18.04:LTS From an advisory covering 3 CVEs |
before 5.48-0ubuntu3.6, plus listed versions 5.46-0ubuntu35.46-0ubuntu45.48-0ubuntu35.48-0ubuntu3.15.48-0ubuntu3.25.48-0ubuntu3.35.48-0ubuntu3.45.48-0ubuntu3.5 |
5.48-0ubuntu3.6 |
bluezUbuntu:20.04:LTS From an advisory covering 3 CVEs |
before 5.53-0ubuntu3.4, plus listed versions 5.50-0ubuntu45.51-0ubuntu15.51-0ubuntu25.52-0ubuntu15.52-0ubuntu2 Show 6 moreShow less5.53-0ubuntu15.53-0ubuntu25.53-0ubuntu35.53-0ubuntu3.15.53-0ubuntu3.25.53-0ubuntu3.3 |
5.53-0ubuntu3.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-41229 is a medium vulnerability (CVSS 4.3) in Bluez, published November 12, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.18%, the 67th percentile. Fixed in bluez 5.56-3.el8.
References
github.com/bluez/bluez/security/advisories/GHSA-3fqg-r8j5-f5xq
lists.debian.org/debian-lts-announce/2021/11/msg00022.html
security.netapp.com/advisory/ntap-20211203-0004
lists.debian.org/debian-lts-announce/2022/10/msg00026.html
lists.debian.org/debian-lts-announce/2024/09/msg00022.html
errata.almalinux.org/8/ALSA-2022-2081.html
Show 29 moreShow less
vulners.com/cve/CVE-2021-41229
security-tracker.debian.org/tracker/CVE-2021-41229
advisories.mageia.org/MGASA-2021-0532.html
bugs.mageia.org/show_bug.cgi?id=29694
ubuntu.com/security/notices/USN-5155-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1763
nvd.nist.gov/vuln/detail/CVE-2021-41229
access.redhat.com/errata/RHSA-2022:2081
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.6_release_notes
bugzilla.redhat.com/show_bug.cgi?id=2025034
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_2081.json
access.redhat.com/security/cve/CVE-2021-41229
cve.org/CVERecord?id=CVE-2021-41229
errata.rockylinux.org/RLSA-2022:2081
suse.com/support/update/announcement/2023/suse-su-20233238-1
bugzilla.suse.com/1192760
suse.com/security/cve/CVE-2021-41229
suse.com/support/update/announcement/2023/suse-su-20233240-1
suse.com/support/update/announcement/2023/suse-su-20233689-1
suse.com/support/update/announcement/2024/suse-su-20240166-1
bugzilla.suse.com/1218300
bugzilla.suse.com/1218301
suse.com/security/cve/CVE-2023-50229
suse.com/security/cve/CVE-2023-50230
suse.com/support/update/announcement/2024/suse-su-20240167-1
ubuntu.com/security/CVE-2021-41229
ubuntu.com/security/CVE-2021-3658
ubuntu.com/security/CVE-2021-43400