Hi, this is not a risk for HIV. HIV is only transmitted from having unprotected vaginal or anal sex or sharing IV needles to inject drugs. Air and saliva inactivate the virus. So, two penis heads rubbing (whether briefly or a long time) is exposed to air and there is no risk.