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
debian/libbson-xs-perlto a version that resolves this vulnerability.Fixed in 0.8.4-2+deb12u1 - Upgrade
Upgrade
debian/mongo-c-driverto a version that resolves this vulnerability.Fixed in 1.23.1-1+deb12u1 - Upgrade
Upgrade
debian/mongo-c-driverto a version that resolves this vulnerability.Fixed in 1.26.2-1 - Upgrade
Upgrade
debian/mongo-c-driverto a version that resolves this vulnerability.Fixed in 1.23.1-1+deb12u3Fixed in 1.30.4-1+deb13u3Fixed in 2.5.7-1 - 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.