# CVE-2024-6381: libbson-xs-perl: The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the functi...

CVE-2024-6381 is fixed in 6 products on 1 platform, first by libbson-1.0-0 1.16.1-1ubuntu0.1~esm1, released July 2, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-6381
- Priority: Routine
- CVSS: 5.3 (medium)
- EPSS: 0.0039
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 2, 2024

## Description

The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libbson-1.0-0 Ubuntu 20.04 LTS (focal) | 1.16.1-1ubuntu0.1~esm1 | [libbson-1.0-0 1.16.1-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libbson-1.0-0-1.16.1-1ubuntu0.1-esm1.md) | Jul 2, 2024 |
| Linux | libbson-1.0-0 Ubuntu 22.04.1 LTS (jammy) | 1.21.0-1ubuntu0.1~esm1 | [libbson-1.0-0 1.21.0-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libbson-1.0-0-1.21.0-1ubuntu0.1-esm1.md) | Jul 2, 2024 |
| Linux | libbson-1.0-0t64 Ubuntu 24.04.5 LTS (noble) | 1.26.0-1.1ubuntu2+esm1 | [libbson-1.0-0t64 1.26.0-1.1ubuntu2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libbson-1.0-0t64-1.26.0-1.1ubuntu2-esm1.md) | Mar 18, 2025 |
| Linux | libbson-xs-perl Debian 12.15 (bookworm) | 0.8.4-2+deb12u1 | [DEBIAN-CVE-2024-6381](https://patchblox.com/security/data/fix/linux/debian-cve-2024-6381.md) | Jul 2, 2024 |
| Linux | libmongoc-1.0-0 Ubuntu 20.04 LTS (focal) | 1.16.1-1ubuntu0.1~esm1 | [libmongoc-1.0-0 1.16.1-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libmongoc-1.0-0-1.16.1-1ubuntu0.1-esm1.md) | Jul 2, 2024 |
| Linux | libmongoc-1.0-0 Ubuntu 22.04.1 LTS (jammy) | 1.21.0-1ubuntu0.1~esm1 | [libmongoc-1.0-0 1.21.0-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libmongoc-1.0-0-1.21.0-1ubuntu0.1-esm1.md) | Jul 2, 2024 |
| Linux | libmongoc-1.0-0t64 Ubuntu 24.04.5 LTS (noble) | 1.26.0-1.1ubuntu2+esm1 | [libmongoc-1.0-0t64 1.26.0-1.1ubuntu2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libmongoc-1.0-0t64-1.26.0-1.1ubuntu2-esm1.md) | Mar 18, 2025 |
| Linux | mongo-c-driver Debian 12.15 (bookworm) | 1.23.1-1+deb12u1 | [DEBIAN-CVE-2024-6381](https://patchblox.com/security/data/fix/linux/debian-cve-2024-6381.md) | Jul 2, 2024 |
| Linux | mongo-c-driver Debian 13.5 (trixie) | 1.26.2-1 | [DEBIAN-CVE-2024-6381](https://patchblox.com/security/data/fix/linux/debian-cve-2024-6381.md) | Jul 2, 2024 |
| Linux | mongo-c-driver Debian 14 | 1.26.2-1 | [DEBIAN-CVE-2024-6381](https://patchblox.com/security/data/fix/linux/debian-cve-2024-6381.md) | Jul 2, 2024 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
