I don't see why this couldn't be done if you have a code driven Selenium test suite. You would need to implement a method run on test failure that adds a bug to Bugzilla using their HTTP REST API.
For the first step, if you are using Java, see this answer on taking a screenshot when selenium fails and the referenced blog post. You need to similarily create a new rule, except this time to add a bug to Bugzilla (and hopefully any useful information, logging, that would help you make it useful).
Then here's an answer and link to the Bugzilla REST API Docs on how to file a bug.