The lzxpress.c compression code in Samba does not implement strong bounds checking.
Found by Andrew Bartlett using the fuzz_lzxpress tool written by Michael Hanselmann against Google's oss-fuzz.
Examples of the missing checks can be seen here in another derivative of the same codebase:
To be clear, I'm not convinced that a client-side 11 (or so) byte over-read triggered by a server that we are calling GetNCChanges on (so will very likely accept passwords from) is worth a security release, but I want to file an embargoed bug for now and we can clear this later.
While this is an unfortunate flaw, the only code paths to this are those for DRS replication, where in all but quite fancifal use cases it can be expected that we are going to trust the DC for secrets, so a small memory over-read will be the least of our concerns.
Therefore this will not warrant a CVE.
The CVS score would look to me like:
I plan to take the patch metze proposed on the list and/or craft my own and fix this normally next week unless there are objections.
do you think this is worth a CVE or should we just fix it? We could at leaste fix it with the next security release. There is always one around the corner ;-)
(In reply to Andreas Schneider from comment #3)
Thanks Andreas and Huzaifa. I do really value a second opinion here!
(In reply to Andrew Bartlett from comment #4)
I still don't think this is a CVE, given this has to be a triggered by malicious Domain Controller accessed over authenticated and protected transport (ie, no MITM can do this).
(In reply to Andrew Bartlett from comment #5)
Agree, and if you connect to a malicious domain controller, there is a lot more damage the domain controller can do, then just this bug for instance.
(In reply to Huzaifa Sidhpurwala from comment #6)
Thanks, removing embargo