Significant differences in VCAM‐1 and TNF‐α levels were observed; however, these biomarkers did not mediate the effect of T2DM and prediabetes on cognitive functions. This evidence concerns the gene TNF and type 2 diabetes mellitus.