"I'm so happy to be here and work with the manager again," Chamakh said. "I'm happy and proud to work with him here.
"Cardiff are a side that should be on top and I think we can improve going forward," he said.
"I'm looking forward to meeting with my new team-mates and getting started. I can't wait to score for my new team."
Warnock added: "We've signed Marouane on a short-term deal until January to assess his fitness.
"He's a versatile player with pedigree and somebody who impressed me during my time at Crystal Palace."