Rewrite it as a system of linear equations $(C^T\otimes B+C\otimes B^T)\operatorname{vec}(X)=\operatorname{vec}(D)$ (see Wikipedia entries on Kronecker product and vectorisation for the meanings of the symbols $\otimes$ and $\operatorname{vec}$) and solve it.
Rewrite it as a system of linear equations $(C^T\otimes B+C\otimes B^T)\operatorname{vec}(X)=\operatorname{vec}(D)$ (see Wikipedia entries on Kronecker product and vectorisation for the meanings of the symbols $\otimes$ and $\operatorname{vec}$) and solve it.