Condoms (latex or rubber) does not protect you 100% of the times from getting infected with HIV or any other Sexually Transmitted Infections.
There are cases when the condoms tear off for various reasons and the body fluids are exchanged. Such occasions give rise for transmission of infections.