Parshas Kedoshim · Passuk 19:14
Chabad.org — English translation + Rashi
Torah Temimah on Vayikra 19:14 · Shavuos 36a
You shall not curse a deaf person — One who curses his fellow transgresses a negative commandment, as it is written: You shall not curse a deaf person. Toras Kohanim teaches that one who curses the dead is exempt.
Classical derasha (TT)
Cursing a living fellow Jew violates a Torah prohibition; cursing the dead does not incur the same liability.