Dropping QE collection with nonexistent state collections & NULL error pointer causes segmentation fault

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.23.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      Dropping a QE-encrypted collection using mongoc_collection_drop(coll, NULL) results in a segmentation fault if any of the associated state collections (eg. ESC, ECC, and ECOC) do not exist. The cause is a NULL dereference on the error pointer in drop_with_opts_with_encryptedFields() when checking whether the attempt to drop the state collection failed with a MONGOC_SERVER_ERR_NS_NOT_FOUND.

      Environment

      libmongoc v1.22.1, compiled with -DENABLE_CLIENT_SIDE_ENCRYPTION=ON

            Assignee:
            Kevin Albertson
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: