A federal grand jury is investigating whether a former Pentagon intelligence analyst had a role in passing military secrets to Libya via ex-CIA agent Edwin P. Wilson, sources familiar with the investigation said yesterday.

The sources identified the analyst as Waldo H. Dubberstein, 75, of Alexandria, former head of a Defense Intelligence Agency unit involved in preparing intelligence estimates. A Pentagon spokesman said Dubberstein, who as an expert in his field was allowed to stay on past regular retirement age, retired last summer.

Assistant U.S. Attorney Theodore S. Greenberg, who has been leading the grand jury investigation in Alexandria for several months, refused last night to confirm or deny a broadcast news report that the investigation of Dubberstein concerned secrets about Egyptian military preparedness during the late 1970s.

Dubberstein could not be reached immediately for comment. His lawyer, Louis Koutoulakos of Arlington, declined to discuss the allegations.

Dubberstein's wife said last night her husband is an expert on the Mideast who spent his career in the government. "The only satisfaction he's ever gotten in his life was writing reports on Iran, Israel, Egypt, Libya," she said. The investigation, she said, "is horrendously difficult for him. It's a tragedy, a real tragedy."

Wilson, 54, has been convicted twice in recent months on arms and explosives smuggling charges growing out of his alleged illegal dealings with Libyan ruler Muammar Qaddafi from 1976 to 1982. Federal prosecutors have asserted that Wilson profited handsomely from contracts to supply Libya with guns, ammunition and expertise in training terrorists.

Wilson, a former career intelligence officer, was acquitted of murder conspiracy charges in the District.

Wilson, who was arrested last year in New York, has been sentenced to a total of 32 years in prison. He has recently been held at a U.S. prison in Otisville, N.Y., awaiting another trial in New York on charges of conspiracy to murder several witnesses and two Washington-based federal prosecutors.