Bug:
The fault which causes a software to work in an unintended way.

Defect:
The fault or problem which is caused after the release of the software to end-users.