Start by talking to the CS dept and math dept advisor at ucsb. They are going to be familiar not just with what ucsb requires for a 2nd degree and for grad admission, but what other colleges look for. I think you’ll find they are willing to help you as much as they can.
What I think they’ll tell you is the 2nd bachelor’s is not the way to go, nor is leaving school and going to a CC. Instead raise your gpa as much as you can (so taking winter quarter off is probably a mistake), get the Comm degree, and look for a program where you can get a MS. For example I know that CSU has something called “conditionally classified” in which you are accepted as a grad student to the university but not officially admitted to the MS program. This is usually a much easier bar than getting into the official program. While in this status you can take missing prereqs for your MS. However I think you need a higher GPA than 2.4 to even get accepted as a grad student to CSU and I expect other colleges are also going to have a gpa requirement.
It may be better (and cheaper) to start by taking lower-division courses you are missing at a CC after finishing at ucsb, that is a detail to work out. And among those details is whether colleges will consider lower-division courses in calculating your GPA after you have a BA degree; it is going to vary by college.
I do feel compelled to ask why a CS degree? It’s one thing if coding is something you have enjoyed and have been doing on your own, or taken a class and found you really “got” it. But I get a sense of desperation here, of striking out at the “hot” field the way a few years ago posters were always asking about how they could get a job on Wall Street or go to a top law school. I hope I’m wrong, that you have strong reasons to believe CS is a fit for you.