Darktable has several modules for that:
This actually worked very well on my last Nightsky pictures.
I couldn't see a difference in the picture regardless if it was turned on or off.
The lens correction module also offers sliders for "TCA red" and "TCA blue". I haven't tried it yet as it couldn't find data for my lens.