There used to be open source firmware for Samsung TVs called SamyGo, it would be great if it were ported to newer ones so the ads could be replaced with Kodi or similar.
this is merely a modification of the original software on the TV which is achieved by gaining root access on it which is currently not easily possible on more recent models.
I don't see any recent TV-specific CVEs for Samsung but it would be surprising if none exist.