If the matrices $A$ and $B$ are positive semidefinite, is the scalar field $$ X \mapsto \mbox{tr} \left( X A X^T B \right) $$ always convex? I get an error when I put this in CVX even though I double-checked that $A$ and $B$ do not have negative eigenvalues.
Related: Is the function $X \mapsto \mbox{trace} \left( X X^T \right)$ convex?
If $B$ is positive semi-definite, it is equal to $CC^t,$ so your expression is equal to $\mathrm{trace}((C^t X) A (C^t X)^t).$ This is basically just the Frobenius norm of the vector $C^t X,$ which is a linear function of $X,$ and is convex (strictly if $A, B$ are positive definite, not strictly otherwise).