A 20-something hothead savagely attacked an elderly man on a golf course when the old-timer hit his ball too close to his — and then fled the scene in a golf cart, according to cops and the victim’s son.

The 75-year-old victim was playing with two pals at the Legends Golf Course in Glendale, Arizona, on May 26 when he struck his golf ball close to another man on the seventh tee.

The suspect — described as a white male in 20s — then attacked the man when he went to retrieve his ball. The victim’s friends found the younger man on top of him, pummeling him repeatedly in the head, police announced Thursday.

As the victim’s party approached, the suspect fled in a golf cart with another man who is considered a person of interest in the ongoing investigation.

KSAZ identified the victim as Bashir Mahmud, who started working at the golf course after retiring in Arizona, his son told the station.

“He didn’t see it coming,” Munir Mahmud said. “He knocked him down, pinned him to the ground and just hit him six or seven times to the head, so he kind of just went blank.”

The unprovoked attack left Mahmud hospitalized in critical condition with a brain injury at one point — and he’s still getting physical therapy and dealing with cognitive issues, according to his son.

“To know my father, you just know that he’s not right,” Mahmud Munir said. “He’s having a hard time writing checks, signing his name, things like that … Whoever did it needs to just come forward and turn themselves in because it’s only making it worse for them later on.”

The suspect, who was last seen wearing a black shirt and gray shorts, was described as about 6 feet 3 inches tall and 240 pounds with short, black hair.

Cops said the person of interest is a white man in his 20s who is about 5 feet 10 inches tall and 160 pounds. He was last seen in a blue shirt and tan shorts.

Anyone with information about the aggravated assault is asked to call Glendale police at (623) 930-3000.