Catalyzes the initial reaction in intramitochondrial fatty acid synthesis, by activating malonate and methylmalonate, but not acetate, into their respective CoA thioester (PubMed:21841779, PubMed:21846720). May have some preference toward very-long-chain substrates (PubMed:17762044).