Is this termite damage and if so how do I repair it?
The last couple pictures appear to be wood boring insect damage (termites or carpenter ants). I'd spray the area with pesticide, setup bait traps in a perimeter around the home, and in this location, sister or replace the stud with a pressure treated 2x4.