CVE-2024-6381

NameCVE-2024-6381
DescriptionThe 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
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4160-1, DLA-4175-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libbson-xs-perl (PTS)bullseye0.8.4-1vulnerable
bullseye (security)0.8.4-1+deb11u1fixed
bookworm0.8.4-2+deb12u1fixed
mongo-c-driver (PTS)bullseye1.17.6-1vulnerable
bullseye (security)1.17.6-1+deb11u1fixed
bookworm1.23.1-1+deb12u1fixed
trixie1.30.3-1fixed
sid1.30.4-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libbson-xs-perlsourcebullseye0.8.4-1+deb11u1DLA-4160-1
libbson-xs-perlsourcebookworm0.8.4-2+deb12u1
libbson-xs-perlsource(unstable)(unfixed)
mongo-c-driversourcebullseye1.17.6-1+deb11u1DLA-4175-1
mongo-c-driversourcebookworm1.23.1-1+deb12u1
mongo-c-driversource(unstable)1.26.2-1

Notes

https://jira.mongodb.org/browse/CDRIVER-5622
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/361c2e669be1c41f9638530b3867f316e96692bb (1.27.0)
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/effd95c34ad421df94eec7c69236f0e4172552d0 (1.26.2)

Search for package or bug name: Reporting problems