/usr/lib/libwtdbofirebird.so.40 is in libwtdbofirebird40 3.3.6+dfsg-1.1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/libwtdbofirebird.so.3.3.6
/usr/lib/libwtdbofirebird.so.3.3.6