As I recall from several years ago (when treating woodworm in old furniture - where it was called furniture beetle) the woodworm beetle emerges & lays it's eggs in the spring - so any woodworm in your ash should not infect other wood until next spring when the adults emerge to breed. Of course, if the ash is touching the other wood, the odd stray woodworm larvae may just nibble it's way from the ash & into other wood.
Having said all that, I've often found ash logs with worm holes just like yours in the bark - and no holes in the wood underneath, so I'm not sure they are woodworm in the traditional sense. I've not had a problem with the wood from such affected logs.
tekno.mage