CVE-2026-125635

NameCVE-2026-125635
DescriptionA **missing authorization** check has been found in the ldb_match_bitmask() function in ldb_match.c of the LDAP matching module in the **libldb library of Samba.** The directory marks an attribute the caller is not allowed to read, and the bitwise comparison uses that value anyway. A low-privileged network attacker or user who can list a directory object searches for one bit of an integer attribute on that object. The directory includes the object when that bit is set, and it removes the attribute from the answer. Repeating the search for each bit discloses the integer. A value that is not an integer, including a password or a key stored as bytes, is not returned as a number.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
samba (PTS)bookworm, bookworm (security)2:4.17.12+dfsg-0+deb12u4vulnerable
trixie2:4.22.11+dfsg-0+deb13u1vulnerable
trixie (security)2:4.22.10+dfsg-0+deb13u2vulnerable
forky2:4.25.1+dfsg-1vulnerable
sid2:4.25.2+dfsg-1vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
sambasource(unstable)(unfixed)

Notes

[trixie] - samba <no-dsa> (Minor issue)
https://bugzilla.redhat.com/show_bug.cgi?id=2585960
https://bugzilla.samba.org/show_bug.cgi?id=16214
https://gitlab.com/samba-team/samba/-/merge_requests/4811
Fixed by: https://gitlab.com/samba-team/samba/-/commit/8def60abd4e56b00dbbab4b414727c853ebb2164

Search for package or bug name: Reporting problems