This invention provides compounds of formula (I):wherein R1, R2, X, p, q, m, n, and Ring C have values as described in the specification, useful as inhibitors of HDAC6. The invention also provides pharmaceutical compositions comprising the compounds of the invention and methods of using the compositions in the treatment of proliferative, inflammatory, infectious, neurological or cardiovascular diseases or disorders.