Description
A missing lower-bound validation in the bson_new_from_buffer() function of libbson allows an integer underflow when processing BSON data with a zero-length prefix. The function reads a 32-bit document length from the input buffer but does not verify that the value is at least 5 (the minimum valid BSON document size) before using it in an array index calculation. When the length field is zero, the expression used to check the document's null terminator wraps to UINT32_MAX, causing a heap out-of-bounds read that crashes the process. An unauthorized party who can supply crafted BSON input to an application using this API can cause a denial of service.
Mitigation
Minimal update. May introduce new vulnerabilities or breaking changes.
|
 debian 13 | | =1.30.4-1 || =1.30.4-1+deb13u1 || =1.30.4-1+deb13u2 || =1.30.4-1+deb13u3 || =2.0.2-1 || =2.1.0-1 || =2.1.1-1 || =2.1.2-1 || =2.2.0-1 || =2.2.1-1 || =2.2.2-1 || =2.2.3-1 || =2.2.4-1 || =2.3.0-1 || =2.3.1-1 || =2.3.2-1 || =2.3.3-1 || =2.4.0-1 || =2.5.0-1 || =2.5.1-1 || =2.5.2-1 || =2.5.3-1 || =2.5.5-1 | - |
 debian 14 | | =1.30.4-1 || =2.0.2-1 || =2.1.0-1 || =2.1.1-1 || =2.1.2-1 || =2.2.0-1 || =2.2.1-1 || =2.2.2-1 || =2.2.3-1 || =2.2.4-1 || =2.3.0-1 || =2.3.1-1 || =2.3.2-1 || =2.3.3-1 || >=0 <2.4.0-1 | 2.4.0-1 |
 debian 12 | | =1.23.1-1 || =1.23.1-1+deb12u1 || =1.23.1-1+deb12u2 || =1.23.1-1+deb12u3 || =1.24.1-1 || =1.24.2-1 || =1.24.3-1 || =1.24.4-1 || =1.25.0-1 || =1.25.1-1 || =1.25.2-1 || =1.25.4-1 || =1.25.4-1.1~exp1 || =1.26.0-1 || =1.26.0-1.1 || =1.26.0-1.1~exp1 || =1.26.1-1 || =1.26.2-1 || =1.27.0-1 || =1.27.1-1 || =1.27.2-1 || =1.27.3-1 || =1.27.4-1 || =1.27.5-1 || =1.27.6-1 || =1.28.0-1 || =1.28.1-1 || =1.29.0-1 || =1.29.1-1 || =1.29.2-1 || =1.30.0-1 || =1.30.1-1 || =1.30.2-1 || =1.30.3-1 || =1.30.4-1 || =2.0.2-1 || =2.1.0-1 || =2.1.1-1 || =2.1.2-1 || =2.2.0-1 || =2.2.1-1 || =2.2.2-1 || =2.2.3-1 || =2.2.4-1 || =2.3.0-1 || =2.3.1-1 || =2.3.2-1 || =2.3.3-1 || =2.4.0-1 || =2.5.0-1 || =2.5.1-1 || =2.5.2-1 || =2.5.3-1 || =2.5.5-1 | - |