Good evening
I don't think its cancer.
Have you done shaving of hair around your private part, it could be
injury during shaving with resulting infection if no.
Have you ever had un protected sex? If yes
You need to see doctor for blood tests, for
STD,
HIV etc
If no take some antibiotics and pain killers