As long as you address the ownership of the trademark and make it clear that you are not affiliated with the trademark owner, there shouldn't be a problem. Also, make sure you capitalize their trademarked names or brands. For example: Crisco oil or Fanta soda or Microsoft Office. Below is an example of a disclaimer you could/should include to ensure that you are not trying to infringe on their trademark.
Product names, logos, brands, and other trademarks featured or referred to within this manuscript are the property of their respective trademark holders.
These trademark holders are not affiliated with the author or any of the author's representatives. They do not sponsor or endorse the contents, materials, or processes discussed within this book.