Editor's note: This story has been updated throughout.

A new poll suggests there is at least one fellow Republican who could unseat U.S. Sen. Ted Cruz in 2018: Rick Perry.

The former Texas governor would beat Cruz by 9 percentage points, according to the forthcoming survey from the Democratic-leaning firm Public Policy Polling. Set to be released later today, the poll found Perry would get 46 percent of the vote and Cruz 37 percent, with 18 percent saying they are not sure whom they would support.

Perry is the only challenger that PPP tested who would defeat Cruz. The poll indicates he would trounce two other Republicans talked about as potential opponents, Lt. Gov. Dan Patrick by 22 points and U.S. Rep. Michael McCaul by 32 points. He would also beat two Democrats, U.S. Housing Secretary Julián Castro and former gubernatorial candidate Wendy Davis, both by 12 points.

In general, the poll shows Texas Republicans want Cruz to be their candidate for Senate again in 2018 — but not overwhelmingly. Fifty percent said they would like Cruz to be the nominee, while 43 percent said would like someone else to carry the banner.

The discussion about Cruz's 2018 prospects comes as his popularity at home continues to take a hit following his unsuccessful presidential campaign. Thirty-nine percent of likely voters told PPP they approve of the job Cruz is doing, while 48 percent said they do not and 13 percent were unsure.

Furthermore, a majority of Texas Republicans said they did not prefer Cruz as their presidential nominee. Fifty-two percent expressed a preference for Donald Trump, who vanquished Cruz in the primaries, and 38 percent for Cruz. The junior senator from Texas won the state's Republican presidential primary with 44 percent of the vote.

Cruz's re-election campaign dismissed the poll as meaningless.

"Polls more than two years away from an election are of no significant consequence and serve little more than to generate headlines to fill a news cycle," Cruz spokeswoman Catherine Frazier said in a statement. "Cruz is fully focused on his service to Texans and will continue to keep the promises he made to them, defending the Texas commonsense values of jobs, freedom, and security that have made our state strong."

Beyond Cruz, the poll found that Gov. Greg Abbott remains the most popular Republican in Texas, with a net approval rating of +24. The survey suggests he would wallop Castro or Davis if either challenged him in 2018, beating them by 29 and 25 points, respectively.

Another standout finding from the poll is that despite Texas' proud pro-gun tradition, voters strongly support some new regulations on the purchase of firearms. Eighty-nine percent say every person who wants to buy a gun should undergo a criminal background check, while 83 percent back legislation that prohibit people on the terrorist watch list from purchasing a firearm. PPP found a much narrower margin when it asked voters whether they supported a nationwide ban on the sale of assault weapons — 48 percent said yes and 43 percent no.

The margin of error for the PPP survey is plus or minus 3.2 percent. From Aug. 12-14, the firm surveyed 944 likely voters in Texas using a combination of phone and internet interviews.