In Vietnam, the USSR gave a considerable amount of equipment to Vietnam, they stationed 3,000 soldiers in Vietnam, and over a dozen of them were killed. The USSR told Vietnam where B-52s were heading so they could evacuate military leaders and get other military units out of the way. Soviet crews were firing SAMs at F-4 Phantoms and shooting them down, and Soviet pilots were flying planes.
When the Soviets went into Afghanistan, the mujahideen did not have the domestic capability to build Stinger missiles themselves...