Type 2 DM impairs the memory phenotypes and functional profiles of Mtb-specific CD4+ and CD8+ T cells, potentially indicating underlying immunopathology towards increased active TB disease risk. Here, CD8A is linked to tuberculosis.