CVE-2024-6381: MongoDB C Driver bson_strfreev may be susceptible to integer overflow
The bsonstrfreev 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
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
libbsonto a version that resolves this vulnerability.Fixed in 1.26.2
Event History
Frequently Asked Questions
What is the severity of CVE-2024-6381?
CVE-2024-6381 has a high severity rating due to the risk of memory corruption from integer overflow.
How do I fix CVE-2024-6381?
To fix CVE-2024-6381, update the MongoDB C driver library to version 1.26.2 or later.
Which versions of libbson are affected by CVE-2024-6381?
All versions of libbson prior to 1.26.2 are affected by CVE-2024-6381.
What is the impact of CVE-2024-6381?
The impact of CVE-2024-6381 includes potential memory corruption due to improper handling of memory free operations.
Is CVE-2024-6381 related to any specific function?
Yes, CVE-2024-6381 specifically affects the bson_strfreev function in the MongoDB C driver library.