Salesforce co-CEO Marc Benioff said that the technology industry has a trust problem, and companies better fix it or they're going to lose talent.

"If trust is not your highest value, and you see it in our technology industry right now, your employees and executives are going to walk out," Benioff told CNBC's Jim Cramer on "Power Lunch" on Tuesday. "You'd better decide now that trust is your highest value, because in this new world when everything is changing, people want to know they can trust you."

The interview took place during Salesforce's annual Dreamforce conference in San Francisco. While Benioff didn't mention any specific companies, the implications are obvious.

His remarks come at a time of deep turbulence in technology, even as tech stocks are rallying and the companies are capturing a bigger piece of the economy. Executives from Facebook, Google and Twitter have been called to testify in multiple congressional hearings of late to discuss their roles in enabling Russian meddling in the the 2016 presidential election and other ways their platforms have been used to spread false information.

Facebook, in particular, has seen an exodus of high-ranking employees, including the announced departure this week of Instagram founders Kevin Systrom and Mike Krieger, who said they would be leaving six years after the Facebook acquisition.

More of Cramer's conversation with Benioff aired on CNBC's "Mad Money" on Tuesday, when did specifically talk about Facebook.

"They are in a crisis of trust. Facebook is still in that crisis of trust. And so you see those actions by customers, consumers and executives," Benioff said.