Brushing is allowed during fasting, however, he/she must be careful of swallowing. Also, it is Karahath (Undesirable) to brush after noon without reason.