Debian Patches

Status for mongo-c-driver/1.30.4-1+deb13u5

Patch Description Author Forwarded Bugs Origin Last update
0001_local_mathjax.diff (Debian packaging) Fix lintian warning by using local mathjax package instead of CDN Kyle Kloberdanz <kyle.kloberdanz@mongodb.com> not-needed
CVE-2025-12119.patch CDRIVER-6112 fix ownership transfer of `mongoc_write_command_t` (#2132) (#2137)

* add regression test
* do not memcpy `bson_t` struct in array
* `memcpy` does not correctly transfer ownership of `bson_t`. Instead: heap allocate `bson_t`.
* warn against using `bson_t` in `mongoc_array_t`
Kevin Albertson <kevin.albertson@mongodb.com> no 2025-10-06
0002_CVE-2026-6231.patch [CDRIVER-6017] BSON Validation Refactor (#2026) (Cherry-pick for 1.30.x) (#2031)

* [CDRIVER-6017] BSON Validation Refactor (#2026)

* New BSON validation routine rewrite

The new `bson_validate` implementation does not
make use of the error-prone `bson_visit` APIs. Instead, it is written
as a simple recursive validator. The new validator respects requests
for UTF-8 validation properly.

* Stop validating at 1000 depth, preventing stack overflow
* Replace most BSON validation tests with generated ones

The existing test cases used BSON files, and didn't have
any commentary on what they were actually testing. New test cases are
generated from a Python shorthand and contain the tested bytes inline,
with a distinct test case for each actual validation scenario.

* Disable UTF-8 validation by default on CRUD APIs
* Document and tweak the value of BSON_VALIDATE_CORRUPT
* Add test cases related to the overlong null encoding
* Tweak JS scope validation to permit more obj keys
* Add a NEWS entry for validation changes.
* Allow `-private.h` headers to not include the prelude header
vector-of-bool <vectorofbool@gmail.com> no 2025-06-09
0003_CVE-2026-6231.patch [CDRIVER-6017] Reduce `BSON_VALIDATION_MAX_NESTING_DEPTH` to 500 (#2035)

To fix stack overflow encountered on MSVC on r1.30 branch. Likely caused by default over-alignment of `bson_t` and `bson_iter_t` removed in 2.0.
Kevin Albertson <kevin.albertson@mongodb.com> no 2025-06-09
0004_CVE-2026-4359.patch CDRIVER-6251 fix handling of HTTP response (#2233) (#2234) (#2254)

(cherry picked from commit b93ebe6b99e614b49a24316c7a295eb3f08af603)
Remi Collet <remi@remirepo.net> no 2026-03-19
0005_CDRIVER-6281.patch CDRIVER-6281 improve handling of corrupt GridFS files (#2263)
* add regression test for 0 chunk size

* check chunkSize on read

* propagate error in `mongoc_gridfs_file_list_next`

* add regression test for too-small chunk

* fix too-small chunk read
Kevin Albertson <kevin.albertson@mongodb.com> no 2026-04-03
0006_CVE-2025-14911.patch CDRIVER-6125 fix GridFS chunk size handling (#2146) (#2150)
* validate chunk size from server document
* test negative and zero length
* check for negative length
* Not strictly needed. But gives an earlier error.
Kevin Albertson <kevin.albertson@mongodb.com> no 2025-10-16
0007_CVE-2025-14911.patch CDRIVER-6125 replace `_mongoc_set_error` with `bson_set_error` Kevin Albertson <kevin.albertson@mongodb.com> no 2026-04-07
0008_CVE-2026-6691.patch CDRIVER-6134 check SASL username length
Cherry-pick b4984965877d559862e225beba09cb4e9d4a56a6 and d9c26f49e75d3de746a690db9c81ff5b4f6e21b0 and reformat.
Kevin Albertson <kevin.albertson@mongodb.com> no 2025-10-24
0009_CVE-2026-81524.patch CDRIVER-6424 validate db and collection names Kevin Albertson <kevin.albertson@mongodb.com> no 2026-08-14
0010_CVE-2026-84965.patch CDRIVER-6405 fix unsafe calls to bson_next_power_of_two Kevin Albertson <kevin.albertson@mongodb.com> no 2026-07-31
0011_CVE-2026-84963.patch CDRIVER-6407 check vlen before int cast in JSON parser Kevin Albertson <kevin.albertson@mongodb.com> no 2026-09-02
0012_CVE-2026-84964.patch CDRIVER-6409 fix OCSP double free Connor MacDonald <connor.macdonald@mongodb.com> no 2026-08-12
0013_CVE-2026-84969.patch CDRIVER-6410 fix length used to copy truncated base64 Kevin Albertson <kevin.albertson@mongodb.com> no 2026-09-02
0014_CVE-2026-88035.patch CDRIVER-6416 check size during SASL username canonicalization Connor MacDonald <connor.macdonald@mongodb.com> no 2026-08-17
0015_CVE-2026-88036.patch CDRIVER-6427 use exact match for file ID in GridFS delete methods Kevin Albertson <kevin.albertson@mongodb.com> no 2026-09-09
0016_CVE-2026-93394.patch CDRIVER-6315 fix missing `goto FAIL` along error handling path (#2308) (#2414)

(cherry picked from commit 6b27da3e0384170ac0efc75321556bd37a2ae03f)
Kevin Albertson <kevin.albertson@mongodb.com> no 2026-09-14
0017_CVE-2026-96746.patch CDRIVER-6404 check and resize poll set Kevin Albertson <kevin.albertson@mongodb.com> no 2026-09-23
0018_CVE-2026-106428.patch CDRIVER-6370 add tests and fixes for SCRAM parser (#2350) (#2475)

* Add test cases for SCRAM step 2 parse errors

* Add test cases for SCRAM step 3 parse errors

* Add clarifying comments for ptr increments

Backported from 9655909e15c83149c0fc68e53f38e696bbd23569
Kevin Albertson <kevin.albertson@mongodb.com> no 2026-10-07
0019_CVE-2026-106431.patch fix empty document off-by-one writes mdb-ad <198671546+mdb-ad@users.noreply.github.com> no 2026-09-23
0020_CVE-2026-106438.patch ignore leading zeros for significant digit count mdb-ad <198671546+mdb-ad@users.noreply.github.com> no 2026-09-25
0021_CVE-2026-106437.patch enforce minimum size of 5 in bson_reserve_buffer mdb-ad <198671546+mdb-ad@users.noreply.github.com> no 2026-09-25
0022_CVE-2026-120955.patch CDRIVER-6494 error if gridfs download_stream is null Sabrina Chang <sabrina.chang@mongodb.com> no 2026-11-02
0023_CVE-2026-120678.patch CDRIVER-6521 fix possible leaks on decompression failure Kevin Albertson <kevin.albertson@mongodb.com> no 2026-11-02
0024_CVE-2026-120684.patch CDRIVER-6508 zero-fill gap in gridfs page writes Kevin Albertson <kevin.albertson@mongodb.com> no 2026-11-02
0025_CDRIVER-6401.patch CDRIVER-6401 fix handling of cursor namespace when no dot separator (#2450) Kevin Albertson <kevin.albertson@mongodb.com> no 2026-11-02
0026_CVE-2026-120956.patch CDRIVER-6501 reject an embedded NUL in a cursor reply namespace Sabrina Chang <sabrina.chang@mongodb.com> no 2026-11-02
0027_CDRIVER-6523.patch CDRIVER-6523 report writeConcernError consistently Kevin Albertson <kevin.albertson@mongodb.com> no 2026-11-03

All known versions for source package 'mongo-c-driver'

Links